JS
challenger
Home
JavaScript Practice
JavaScript sets
Add multiple elements to Set
Add multiple elements to Set
Write a function that takes a Set and an array as arguments. If not already existing, add each element in the array to the Set. Return the modified Set
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console