Home
Javascript Fundamentals
# Javascript basics
# Javascript arrays
# Javascript objects
# Javascript dates
# Javascript Sets
Javascript DOM
# DOM selector methods
# Events and user interactions
# DOM manipulation
# DOM fundamentals
# Recursive functions
Challenge Rush
Random Challenge
// 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 function myFunction ( set, arr ) { return }
return
myFunction(new Set([1, 2, 3]), [4, 5, 6])
new Set([1, 2, 3, 4, 5, 6 ])
myFunction(new Set('12345'), [...'6789'])
new Set([...'123456789'])
myFunction(new Set([1, 2, 3]), [2, 3])
new Set([1, 2, 3])