Type을 변경하는 방법
ParseInt()함수 사용
<script>
if(condition){
// conditition === true
} else {
// condition === false
}
</script>
<script>
if(isNaN(age) || age < 0){
console.log("plz write a real positive num")
} else if(age < 18) {
console.log ("too young age")
} else if(age >= 18 && age <= 50) {
console.log ("drink")
} else if (age > 50 && age <= 80) {
console.log("stop drink")
}
else if (age > 80) {
console.log("can't drink")
}
</script>
OR AND operate, && ||
= < <= === !===