Question: Loop through the characters in the string oldProverb and assign numAppearances with the number of times 'e' appears in the string. var oldProverb = A
Loop through the characters in the string oldProverb and assign numAppearances with the number of times 'e' appears in the string.
var oldProverb = "A picture is worth a thousand words."; // 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." var 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
