5/6 Error: not defined


#1

Hi there,
I'm having some trouble with the code. What is wrong with it?

Here is the code I wrote:
var user = prompt("What is your favorite hobby?").toUpperCase();

switch(user){

case 'PAINTING':
if(PAINTING === "LOL"){
console.log("OMG, you're an artist!!");
} else{
console.log("OWWWW");
}
break;

case 'LOMO':
    if(PAINTING || CODING){
    console.log("Wow, That is awesome");
    } else{
      console.log("HAHAHHA");  
    }
break;

case 'CODING':
    if(CODING && LOMO){
    console.log("Just like me! fun huh?");
} else{
    console.log("Too bad:(");
}
    break;

default:
console.log("input is not correct");

}


#2

What user input (words) are you trying to match ? You seem to have got your input text in a knot.
When you compare input, your input on the right hand side is compared to a pre-defined word on the left hand side.
In the first case, you ask for a hobby and compare the input to LOL ??