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!‘)
}
结果: SyntaxError: Expected ‘)‘
JS碰到一个坑啊,跳不过去
原文:http://www.cnblogs.com/penglt/p/4978736.html