Mark As Completed Discussion

Try this exercise. Is this statement true or false?

The letter 'p' will not be printed in the execution of following code block.

SNIPPET
1var text = "Loops"
2var i = 0
3while (i < text.length){
4  if (text[i] == "o"){
5      i += 1
6      continue
7  }
8  console.log(text[i])
9  i += 1
10}

Press true if you believe the statement is correct, or false otherwise.