let smart = "YES";
let age = 19;
if (age < 21 && smart == "YES") {
   alert("John is allowed");
}