Question #76714

Trying to code this but not working what am I missing
Using the logical operator for AND, fill in the if statement to check if even and odd are greater than 19.

let odd = 7;
let even = 20;
let greaterThan;
if(){
greaterThan = true;
} else {
greaterThan = false;
}

Expert's answer

let odd = 7;
let even = 20;
let greaterThan;
if(odd >19 && even>19){
greaterThan = true;
} else {
greaterThan = false;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS