Regarding the ternary (? :) operator in JavaScript, I would like to know how it is evaluated by a typical browser\'s JavaScript interpreter:
? :
Alternative A:<
The "alternative A":
(1)? functionOne(): functionTwo()
If you put a simple alert message on both functions, only functionOne will display its message.
function functionOne(){ alert("one"); } function functionTwo(){ alert("two"); }