Move it On Back (Not understanding the difference)


#1

Hi,
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?
Thanks


#2

word is varibale not string
to grab the first letter of the word.you 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:


#3

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


#4

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