single return of ternary operator
05:08 11 Jan 2013

I wonder if possible to write ternary operator for single return. I tried google online, but couldn't find an answer. or it doesnot called ternary operator??

Thank you very much for your advice.

If(A == 1) execute_function(); into A == 1 ? execute_function() //???Possible???

javascript ternary-operator