Move it On Back (Not understanding the difference)


I'm on Move it On Back.
Ive set up the code, but the success of the lesson dependent on the word I type into the console.
For example, i type in "what" and I pass.
But if I type in "bad", it's incorrect.

Im not understanding why that is.
Can anyone explain?


word is varibale not string
to grab the first letter of the should write like

word[0] // not "word"[0]

This is the main problem.
For your second case fortunately it'll be the same result as you wrote what as a string.

i hope you've undertand :slight_smile:


ooooh, thank you, i got it now! :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.