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?
X_0day_sam
浏览 2726回答 3
3回答
码农2号
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");
}