I need help on JavaScript #5 (else if statements)


#1

Hey. I have been stuck on this problem for a long time, and it keeps saying I did something wrong. It is asking me to "Set moonPhase to mostly full and run your code" Every time I put that in, it say "invalid moonphase". Please Help me with this!!!!!

Learn with JavaScript #5: else if Statements


#2

Is your own code saying invalid moonphase? If so you'd compare what you set that variable to, with the conditions for printing the expected output, right?


#3

yeah, but i found the problem. I had to change the moonPhase at the top in the variable itself.


#4

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