freecodecamp.cn icon indicating copy to clipboard operation
freecodecamp.cn copied to clipboard

Can not cross!!!

Open tairenzhen opened this issue 10 years ago • 2 comments

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;



tairenzhen avatar Nov 23 '16 02:11 tairenzhen

去掉最后一行

discountry avatar Dec 19 '16 10:12 discountry

//setup 后面代码改为 var lastNameLength=0; var lastName="Lovelace"; //Only change code below this line.

lastNameLength=lastName.length;

这样就可以了

xieyangfight avatar Jul 17 '17 09:07 xieyangfight