freeCodeCamp/curriculum/challenges/arabic/02-javascript-algorithms-an.../basic-javascript/iterate-odd-numbers-with-a-...

932 B

id title challengeType videoUrl localeTitle
56104e9e514f539506016a5c Iterate Odd Numbers With a For Loop 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,3,5,7,9], "<code>myArray</code> should equal <code>[1,3,5,7,9]</code>.");'

Challenge Seed

// Example
var ourArray = [];

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

// Setup
var myArray = [];

// Only change code below this line.

After Test

console.info('after the test');

Solution

// solution required