Quiz
Explore ReasonML's conditional expressions through a quiz that reinforces understanding of if-else, switch, and ternary operators. Prepare to apply these concepts in upcoming functional programming lessons.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
What will be returned by the following code?
let num = 35;
if (num < 100 && num >= 10) {
if(num > 30) {
if(num < 40) {
Js.log("a");
} else {
Js.log("b");
}
}
else {
Js.log("c");
}
}
else {
Js.log("d");
};
A.
a
B.
b
C.
c
D.
d
1 / 4
Be sure to check out ...