JS
challenger
Home
JavaScript Practice
JavaScript arrays
Remove a specific array element
Remove a specific array element
Write a function that takes an array (a) and a value (b) as argument. The function should remove all elements equal to 'b' from the array. Return the filtered array.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console