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 two Sets as arguments// Create the union of the two sets// Return the result// Tipp: try not to switch to Arrays, this would slow down your code function myFunction ( a, b ) { return }
return
myFunction(new Set('123'), new Set('234'))
new Set('1234')
myFunction(new Set([1, 2, 3]), new Set([3, 4, 5]))
new Set([1, 2, 3, 4, 5])
myFunction(new Set([false, false, NaN]), new Set([true, true, NaN]))
new Set([false, NaN, true])