confirm("are you ready to play")
var age = prompt("What's your age");
if(age is less than 13) {
console.log("You are allowed to play but I take no responsibility")
} else {
console.log("You will feel honored to play this game!")
}
爲什麼這是意想不到的標識符?語法錯誤意外標識符有什麼問題?
這不是Java – chokdee
我希望你沒寫'小於'。 – Maroun