freeCodeCamp/curriculum/challenges/arabic/02-javascript-algorithms-an.../basic-javascript/iterate-with-javascript-for...

926 B

id title challengeType videoUrl localeTitle
cf1111c1c11feddfaeb5bdef Iterate with JavaScript For Loops 1

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert(code.match(/for\s*\(/g).length > 1, "You should be using a <code>for</code> loop for this.");'
  - text: ''
    testString: 'assert.deepEqual(myArray, [1,2,3,4,5], "<code>myArray</code> should equal <code>[1,2,3,4,5]</code>.");'

Challenge Seed

// Example
var ourArray = [];

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

// Setup
var myArray = [];

// Only change code below this line.

After Test

console.info('after the test');

Solution

// solution required