【发布时间】:2012-12-13 12:34:29
【问题描述】:
我尝试了很多方法...我做错了什么???我决心学习并真正理解这一点。
//On line 2, declare a variable myName and give it your name.
var myName = "Jeanne";
//On line 4, use console.log to print out the myName variable.
console.log ("Jeanne");
//On line 7, change the value of myName to be just the first 2 letters of your name.
myName.substring(0, 2);
//On line 9, use console.log to print out the myName variable;
console.log("Jeanne");
【问题讨论】:
-
我不断收到的错误是:TypeError: console.log is not a function,这也是我感到困惑的部分原因。
-
如果使用 IE:stackoverflow.com/questions/690251/…,stackoverflow.com/questions/5472938/…(如果您使用不同的浏览器/环境,请适当搜索。)
标签: javascript