JS
challenger
Home
JavaScript Practice
JavaScript arrays
Calculate the sum of an array of numbers
Calculate the sum of an array of numbers
Write a function that takes an array of numbers as argument. It should return the sum of the numbers.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console