Question from the Javascript - Fundamentals test

Archived

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: KahinaStatus: Archived(New question!)(Update)Question passed 35 times
-1
Community EvaluationsNo one has reviewed this question yet, be the first!