11
A very basic Javascript question, in a ternary condition how can I have action only in an if without the need of Else?
Example
(test) ? test1() : test2();
If you don’t want anything to happen to Else, how would it look?
I tried, do as in PHP more did not work:
(!test) ?: test1();