freecodecamp.cn
freecodecamp.cn copied to clipboard
Can not cross!!!
Challenge Find the Length of a String has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2859.0 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
// 举例
var firstNameLength = 0;
var firstName = "Ada";
firstNameLength = firstName.length;
// Setup
var lastNameLength = 0;
var lastName = "Lovelace";
lastNameLength = lastName.length;
// Only change code below this line.
lastNameLength = lastName;
去掉最后一行
//setup 后面代码改为 var lastNameLength=0; var lastName="Lovelace"; //Only change code below this line.
lastNameLength=lastName.length;
这样就可以了