when I receive user's age, but I don't change it to number, I can understand if my client's age is 18 or not...
var isAge = prompt("How old are you?");
alert(typeof isAge) //string
if (isAge >= 18) {
alert("you can enter the site")
} else
alert("you cant enter the site")
//it knows if the str in below 18 or not