ternary operator

 // var a = 100;

// var b;

// (a==b)?b = "true" : b = "false";


// console.log(b)


var a = 10;


console.log("you can", (a<18)? "not drive" : "drive");

Comments

Popular posts from this blog

practice test of Arithmetic Operations: