由于一些奇怪的原因,当我运行最简单的代码行时,JsHint在Atom Editor中抛出Uncaught TypeError: undefined is not a function
..
function myName (name) {
name = 'brent';
return name;
}
console.log(myName());
任何建议!
甚至在使用console.log();
function myName(name) {
name = 'brent';
return name;
}
myName();