how to compare to boolean value in javascript code example Example: single if statement js true false condition ? exprIfTrue : exprIfFalse