JS碰到一个坑啊,跳不过去
confirm('I\'m ready!')
var age = prompt('What\'s your age');
if (age is less than 13){
console.log('You are allowed to play,but you take no responsibility')
}
else
{
console.log('You can play!')
}
var age = prompt('What\'s your age');
if (age is less than 13){
console.log('You are allowed to play,but you take no responsibility')
}
else
{
console.log('You can play!')
}
结果: SyntaxError: Expected ')'