var age =prompt("What is your age?");
if (age === 21) {
console.log("Happy 21st Birthday!");
}
When I write 21 in the prompt, it gives me an undefined, if I replace the === with == then it will work. Why? 21 is the same type and value as the 21 I write in the prompt