Consider a variation on the code in Figure 15.5, in which the string concatenation inside the while

Question:

Consider a variation on the code in Figure 15.5, in which the string concatenation inside the while loop is reversed:

str = foobar; i = str.search(/[aeiou]/); while (i != -1) {str = str.substring(0, i) + '*' + str.substring(i+1, str.length); i = str.search(/[aeiou]/);}

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: