Syntax is my enemy


#1

unexpected token : again. dont know what's wrong.


// Write your code below!
var bluh = prompt("Can you choose a number?")
switch(bluh) {
    case '1':
        console.log("Huh, okay."):
        break;
    
    case '2': 
        console.log("Alright."); 
        break;
    
    case '3': 
        console.log("Okay.");
        break;
    
    case '69':
        console.log("You found the scret input!");
        break;
        
    default: 
        console.log: ("can you choose a number listed?");
        break;
}


#2

console.log("Huh, okay."): // remove : from here

console.log: ("can you choose a number listed?"); //same remove :

dont use : after console.log


#3

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