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


#1

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!


#2

Hi try to remove the ; after the if condition.

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

#3

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!


#4

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