IF statement

 let age=14;

if(age>=18){
    console.log("U can vote");
}
if(age<18){
    console.log("U cannot vote");
}

let name="abhi";
if(name=="abhi"){
    console.log("welcome");
}

Comments

Popular posts from this blog

Callback Hell

TODO list with DOM

Refactoring callback hell code