Quiz
Test your knowledge on conditionals with this 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
Question 1 of 40 attempted
Get hands-on with 1400+ tech skills courses.