# Answer to Question #76714 in AJAX | JavaScript | HTML | PHP for Kristy

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;

}

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;

}

let even = 20;

let greaterThan;

if(odd >19 && even>19){

greaterThan = true;

} else {

greaterThan = false;

}

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment