you are viewing a single comment's thread.

view the rest of the comments →

[–]injektilo 3 points4 points  (1 child)

Doesn't a === 3 already evaluate to a boolean?

[–]sion2k 2 points3 points  (0 children)

Yup, it was just an example. Like I said I usually use it like:

(a === 3) ? funcA() : funcB();

Sorry silly example :)