SpiceQA
Questions
Tags
Users
Badges
Using ternary operator in JavaScript to invoke two functions
Swamy_g_44916
0
Created Oct 31, 2009
Edited Oct 31, 2009
Viewed 11060
Follow
Can this be done in JavaScript?
type == 1 ? function1() : function2();
ternary-operator
javascript
20
0
Add comment
+
Share
2 Answers
Related