Question: All arrays, that may not look like it is defined, is suppose to be able to be interchangeable and already have a set array to

All arrays, that may not look like it is defined, is suppose to be able to be interchangeable and already have a set array to check from.

My code says that it's not able to add all numbers in the array, "numbers". I have to use a loop to iterate and add of keys to one variable, "sum".All arrays, that may not look like it is defined, is suppose

Instructions Tests Array Iterating 1 function sumArray(numbers) { // YOUR CODE BELOW HERE // Create a function called sumArray var sum = 0; 1 parameter: numbers - an Array of Numbers returns: the sum of all numbers in the Array var currentNumber; for (i = 0; i returns 6 sumArray ([5, 10, 15]) //==> returns 30 22 23 Submit Run 24 Auto-Run FF Reset

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It seems that your code is not working as expected because of a small mistake Heres the issue 1 In t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!