Tenary Operator
A Tenary Operator is an operator that provides a way to shorten a simple if else block in just one statement.
Consider this JS code
var x = 0;
if (x == 0)
{
alert('x is Zero');
} else {
alert('x is not Zero');
}
If you run this code on your browser,...
octagon.hashnode.dev2 min read