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!')
}
 
 

结果:   SyntaxError: Expected ')'

posted @ 2015-11-19 18:30  萌萌涛  阅读(103)  评论(1编辑  收藏  举报