JavaScript Ternary Operator
is a shorthand way of writing an if-else statement
it was used to make simple conditions simpler and more readable
for more complex conditions it is recommended to use traditional if-else
syntax
the ? is equal to if and : is equal to else
const age =...
wishba.hashnode.dev2 min read