Question: Loop through the characters in the string wiseSaying and assign numAppearances with the number of times 'o' appears in the string. let wiseSaying = You
Loop through the characters in the string wiseSaying and assign numAppearances with the number of times 'o' appears in the string.
let wiseSaying = "You can't make an omelet without breaking a few eggs."; // Code will be tested with "You can lead a horse to water, but you can't make him drink. If you want something done right, you have to do it yourself." let numAppearances = 0;
/* Your solution goes here */
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
