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;
}
1
Expert's answer
2018-04-30T07:59:08-0400
let odd = 7; let even = 20; let greaterThan; if(odd >19 && even>19){ greaterThan = true; } else { greaterThan = false; }
Comments
Leave a comment