var name = "Nicholas";
console.log("Hello" + name);
if (name.length >7) {
console.log("Wow,you have a REALLY long name");
}esle{
console.log("Your name isn't very long");
}
在浏览器运行总是错误,这是什么debug?
3 回答
码农2号
TA贡献151条经验 获得超48个赞
var name = "Nicholas"; console.log("Hello" + name); if (name.length >7) { console.log("Wow,you have a REALLY long name"); }else{ //注意else的拼写。 console.log("Your name isn't very long"); }
添加回答
举报
0/150
提交
取消