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

Link to lesson -

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.


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

1 Like