if (name === "Billy"){
alert("hi Billy");
} else if ( name === "Susy"){
alert("hi Susy");
} else{
alert("I don't know you");
}
if (name === "Billy" || name === "Ann"){
alert("Hi Billy or Ann!");
}
Nothing happened.
This code doesn't make sense.
We should define firstName and lastName.
if(!(name === "Bob")){
alert("Hi Bob");
}
!(name === "Bob") means name isn't Bob.