SyntaxError: expected expression, got end of script
Oops, try again.
There was a problem with your syntax.

var user = prompt("What is your name?");
 var answer = prompt("Nice ta meet ya! You've been drafted to fight..something. Some folk say its a wyvern. Whether you believe those rumors or not if your choice. Anyways what are you most skilled in? SWORDS, BOW&ARROWS, or MAGYKS?");
 switch(user) {
    case 'SWORDS':
        console.log("Ya prefer it up close and personal eh? I like ya! Anyways head up to the Town Square and get a Enchantyed sword and shield.");
    case 'BOW&ARROWS':
        console.log("I hope ya have a good shot chap! Now go to the Town Square and get an Enchantyed bow with some arrows!");
    case 'MAGYK':
        console.log("A bit of Hocus Pocus, eh? Head upto the Town Square and get an Enchantyed Magyk cloak!");
        console.log("Whatcha gonna do chap?! run around naked singing the creature to the underworld?! Pick a role now!");

am I missing something or did I accidentally put in some extra? Please Help!


You need a corresponding curly bracket closing your switch statement.


Thanks! Lol it was so simple..xD


np, I'm glad to help :slight_smile:


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