Ternary Operator In JavaScript

 //Ternary Operation


let age = 19

let a = age > 18 ? "You Can Drive" : "You Can't Drive"

console.log(a)

Comments

Popular posts from this blog

Create,Read,Drop,Insert One and many, Ordered,Unordered insert in mongoDB

Comparison in Javascript

Mysql practice random