What am I doing wrong ? JS


#1

https://www.codecademy.com/en/courses/learn-javascript/lessons/control-flow/exercises/else-if

For some reason, it only gives me the abillity to type else if once, did i do something wrong ?


#2

Remove the semicolon at the end of the first else if


ifElse.js
#3

Great thinking, @jibblyj! :rofl:

After you do that, also just try moving the second bracket from your first “else if” to the start of the second. This may not help, but your code will be more nicely organized and easier to debug.
(Also, you forgot an “o” in your console.log. This won’t help with the problem you posted this for, but your code won’t work well without it.)