Skip to main content
added 29 characters in body
Source Link
bugwheels94
  • 32.1k
  • 3
  • 43
  • 62

You are missing one line before the for loop

var array=[]; //initialize the variable 

So completely

addToArray = function (num1, num2) { var array=[]; for (var i = num1; i < num2 + 1 ; i++) { array.push(i); } return array; } 

You are missing one line before the for loop

var array=[]; 

So completely

addToArray = function (num1, num2) { var array=[]; for (var i = num1; i < num2 + 1 ; i++) { array.push(i); } return array; } 

You are missing one line before the for loop

var array=[]; //initialize the variable 

So completely

addToArray = function (num1, num2) { var array=[]; for (var i = num1; i < num2 + 1 ; i++) { array.push(i); } return array; } 
Source Link
bugwheels94
  • 32.1k
  • 3
  • 43
  • 62

You are missing one line before the for loop

var array=[]; 

So completely

addToArray = function (num1, num2) { var array=[]; for (var i = num1; i < num2 + 1 ; i++) { array.push(i); } return array; }