Solution to "Intro to Javascript .9 Else If Statements"

Link to lesson - https://www.codecademy.com/courses/introduction-to-javascript/lessons/control-flow/exercises/else-if?action=resume_content_item

This is my code -

 let season = 'summer';

if (season === 'spring') {
  console.log('It\'s spring! The trees are budding!');
} else if (season === 'winter') {console.log(It\'s winter! Everything is covered in snow.')} 
 else {
  console.log('Invalid season.');
}

When I run it, I get the error “SyntaxError: Invalid or unexpected token”

Look closely at this line. Something is missing.

2 Likes

Thank you! I don’t know how I missed that.

1 Like