JS
challenger
Home
JavaScript Practice
JavaScript arrays
Sum up all array elements with values greater than
Sum up all array elements with values greater than
Write a function that takes an array (a) and a number (b) as arguments. Sum up all array elements with a value greater than b. Return the sum
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console