All on your own


#1

It always prints out the default statement, regardless of what I type; What's the issue?

var location = prompt("What's your favorite place to visit?");

switch(location) { //actual switch
case 'lavalands': //needed input
console.log("I've never been there before!"); //result
break; //end
case 'glacier':
console.log("Fond of the cold lands, eh?");
break;
case 'woodlands':
console.log("I'm pretty keen on nature myself! We should take a walk some time.");
break;
default:
console.log("In all my years, I've never been there!");
break;
}

I mean, I've checked it a bunch of times and it all seems to be in place; I even passed, though I really want to know where I went wrong with the code.


#2

++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#3

You do not need a break; in the default code block. Try removing that and see if it resolves your issue, though it shouldn't be causing any issues as far as I know (though it is unnecessary).

If that doesn't work, Leonhard more than likely is right.