. Realice un programa que acumule (sume) valores ingresados por teclado hasta ingresar el 9999 (no sumar dicho valor, indica que ha finalizado la carga). Imprimir el valor acumulado e informar si dicho valor es cero, mayor a cero o menor a cero.
ript function sum(a, b) { return a + b; } var sum = sum(1, 2); console.log(sum); A: You can use the following code to get the sum of the numbers in the array. var sum = 0; for (var i = 0; i < array.length; i++) { sum += array[i];