What is the conditional operator, and what is its purpose in javascript? code example
Example: examples of Conditional Operator js
var age = 19;
var canDrive = age > 16 ? 'yes' : 'no';
var age = 19;
var canDrive = age > 16 ? 'yes' : 'no';