How to use JavaScript Ternary Operator?
Author: Abdullah Numan
Introduction
This post is about the Ternary Operator in JavaScript. In this post, we'll discuss what the ternary operator is, how it is used, when to use it and discuss how it compares to other constructs such as if/else, if/el...
refine.hashnode.dev4 min read