I passed part 5/7 but the output is a number...Why?


I am a bit confused by the output of my code. The lesson says "Way to go!" but my output is a number. Is it supposed to be? Here is my code: (please bear with me for the embarrassing nonsensical 'text' portion...)

Thank you for your time!


Hi try to remove the ; after the if condition.

if (text[i] === "J"); <==


Oh, I can't believe I missed that -sorry for the trouble! Now there is no output; I assume that's normal since I didn't perform the console.log commands yet. Thank you & have a great day!


Your welcome I'm glad that I could help you.