Basic JavaScript: Multiple Identical Options in Switch Statements

I would like to use console.log() to see what the answer returns.
How do I do this?
Currently, I click “run the tests” and receive a message telling me I did the right thing, but I never actually see the result of the code I wrote.

Thanks!

function sequentialSizes(val) {
var answer = “”;
// Only change code below this line
switch (val) {
case 1:
case 2:
case 3:
answer = “Low”;
break;
case 4:
case 5:
case 6:
answer = “Mid”;
break;
case 7:
case 8:
case 9:
answer = “High”;
break;
}

// Only change code above this line
return answer;
}

// Change this value to test

sequentialSizes(3);


**Your browser information:**

User Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36</code>.

**Link to the challenge:**
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/multiple-identical-options-in-switch-statements

Your code will run automatically and the console.log will print in the same window where the tests errors are shown. If you want to re-run your console.log, then just change something in the code and wait. It would be better if console.log was also shown when we run our tests, but for now that doesn’t happen.

An alternative is to open your browser’s console, in chrome you can press F12.

I got it to work here. I needed to write console.log() within the function.

function chainToSwitch(val) {
var answer = “”;
// Only change code below this line
switch(val) {
case “bob”:
answer = “Marley”;
break;
case 42:
answer = “The Answer”;
break;
case 1:
answer = “There is no #1”;
break;
case 99:
answer = “Missed me by this much!”;
break;
case 7:
answer = “Ate Nine”;
break;
}
console.log(answer);
// Only change code above this line
return answer;
}

// Change this value to test
chainToSwitch(99);