Until recently, I called a ternary operator a conditional operator in JavaScript. But I just learned that this isn't correct. In this tutorial, I will explain how I learned this, and hopefully it teaches you something new. I have a video version on this topic you can watch as well to supplement your learning.

3m read timeFrom freecodecamp.org
Post cover image
Table of contents
How I Learned About the Ternary OperatorIt's True – a Ternary Operator is not a Conditional OperatorWrapping Up
6 Comments

Sort: