I'm sorry, but there is an error in javascript code about ternary operator
let age = 17
if(age >= 18){
console.log(" You are old enough to vote");
}else{
console.log("Come back when you are 18");
}
// Ternary Operator
if age >= 18 ? console.log(" You are old enough to vote") : console.log("Come back when you are 18");
// here we don't need if identifier, just remove it