一个switch循环 说是SyntaxError: Unexpected token {

nineteen73 nineteen73 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
var getReview = function (movie) {

switch(movie){
case(Matrix){
return"good trip out";
}
case(Princess Bride){
return"awesome date night movie";
}
case(Welcome to America){
return"Amjad's favorite";
}
case(Remember the Titans){
return"love the sports";
}
case(Why do I look like ) {
return"The Ryan and Zach story";
}

case(Fighting Kangaroos in the wild){
return "Token Australian movie for Leng";

}
fault{
return"I don't know!";
}

}
};

getReview(Princess Bride);
SyntaxError: Unexpected token {
不知道哪里错了,各位给看看吧
...全文

相关推荐

评论 14
收藏 已收藏
分享
返回顶部
nineteen73
JavaScript 87,984 成员 224,681 内容