LiJell's 성장기

Conditional 본문

카테고리 없음

Conditional

All_is_LiJell 2022. 5. 17. 18:12
반응형
// 요즘은 prompt 잘 안씀
// parseInt is a converter: string to number
const age = parseInt(prompt("How old are you?"));

if (isNaN(age)){
    console.log("Please write a number");
} else {
    console.log("Thank you for writing your age")
}


반응형
Comments