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 Evaluations
developer avatar
Clara
16/11/2022
Cette question ne veut rien dire...