Question from the Javascript - Fundamentals test

Write a switch statement that checks if a person can go down a slide based on their weight and height.

Medium

What does the following code return?

let weight = 42;
let height = 1.50;
        switch (weight< 40)
        {
        case false :
            console.log("You can slide !");
         
        default : 
            if(height> 1.60) {
                console.log("You can go!");
            } else {
                console.log("Prohibition to go down the slide");
}
}
Author: KahinaStatus: Published(Update)Question passed 2808 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!