May you help me with my code


#1

What is wrong with this code:
Var exercise = prompt("How do you exercise?");
switch(exercise) {
    case 'walking':
        console.log("Keep walking.");
        break;
    case 'running':
        console.log("Keep running.");
        break;
    case 'playing':
        console.log("Keep playing.");
        break;
    default:
        console.log(exercise + " is that a exercise.");
}


#2

Var exercise  // v should be lowercase

dont forget javascript is case-sensitive


#3

thank you for your help


#4

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