Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, May 11, 2017

FreeCodeCamp Iterate With Javascript For Loops Sample Solution


// Example
var ourArray = [];

for (var i = 0; i < 5; i++) {
  ourArray.push(i);
}

// Setup
var myArray = [];

// Only change code below this line.
for (var i = 0; i < 5; i++) {
  myArray.push(i+1);
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts