Question from the Javascript - Fundamentals test

What case(s) will the following code display "Prohibition to go down the slide"?

Hard

With what case(s) will the following code display "Prohibition to go down the slide"?



let weight; 
let height; 
switch (weight > 40) {

        case true :
            console.log("You can slide");
        break;
        
        default : 
            if(height > 1.60) {
                console.log("You can slide");
            } else {
                console.log("Prohibition to go down the slide");
}
}
Author: Vincent CotroStatus: Published(Update)Question passed 824 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!