Werewolf.js


#1


https://www.codecademy.com/courses/learn-javascript/lessons/control-flow/exercises/comparison-operators-ii?action=lesson_resume


Expected Identifier and instead saw 'else'
Expected an assignment or function call and instead saw and expression
Missing semicolon


var moonPhase = 'full';

if (moonPhase === 'full'); {
  console.log('Howwwwlll!!');
} else {
  console.log('I swear I am not a werewolf...');
}


#2

Hi, @brycemerck ,

Does that semicolon belong in this line? ...

if (moonPhase === 'full'); {

#3

Thank you kind sirrrrrrrr


#4

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