JavaScript switch

I don’t know where I did wrong. Could you look at my code, please? Thank you!

Let CodingLanguages = 'C#';

switch (CodingLanguages) {
  case 'C#':
  console.log('C# opens a great deal of doors to a developer!');
  break;
  case 'Java':
  console.log('Java opens a lot of possibilities for a developer!');
  break;
  case 'SQL':
  console.log('The programming language for anyone wanting to be data-literate!');
  break;
  default:
  console.log('This is the time that anyone needs to learn coding.');
  break;
}

You capitalized the keyword let at the beginning of your code, might be the problem. Your code works if I change that.

1 Like