Pregunta de entrevista de Walmart

During phone interview basic JavaScript questions were asked and asked to write a function that sums up an array of numbers, the length of the array is not fixed. I believe the whole intention was to find if one know the concept of 'arguments'

Respuesta de la entrevista

Anónimo

14 de dic de 2015

use 'arguments' and iterate over it.