DEV Community

Discussion on: What’s the Ternary Operator in Javascript and How to Use it

Collapse
 
gaelgthomas profile image
Gaël Thomas

Thank you, Pierre!

I didn't test by myself, but after reading a few posts talking of that, there isn't much of a difference in performance one way or the other.

The main difference is the way to write a condition and readability.