Edit in JSFiddle

var verify = true;

//if statement used to represent all statement's
if(verify){console.log('verify is true');}

//Consider that an expression can go anywhere, while the statement above can't

//stored in a variable
var check = verify ? console.log('verify is true') : console.log('verify is false');

//passed to a function
console.log(verify ? 'verify is true' : 'verify is false');