Skip to content

Typo in code #3968

@beovulf

Description

@beovulf

Challenge Waypoint: Count Backwards With a For Loop has an issue.
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

Hi guys. The actual code you provided has some small typo. In the challenge description ourLoop i variable has 10 as starting point. In code instead ourLoop is started by 9. It's pretty weird because construction of ourLoop in code is actual solution to this challenge :)

My code:

ourArray = [];

for(var i = 9; i > 0; i -= 2){
  ourArray.push(i);
}

var myArray = [];

// Only change code below this line.
for (var i = 9; i>0; i-=2) {
  myArray.push(i);
}


// Only change code above this line.

if(typeof(myArray) !== "undefined"){(function(){return myArray;})();}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions