Ad
  • Default User Avatar

    I initally tried to use a switch statement, couldn't get the syntax right, and reverted back to if / else statements. Can you help me understand what the "true" means in brackets next to switch? I've done a quick course on javascript which included switch statements, but I've realised I don't understand what goes in there!