Collections
Set
Learn how to use Set in JavaScript.
Set
Documentation for Set in JavaScript.
Syntax
new Set([1, 2, 2, 3])
Example
// Practical usage
new Set([1, 2, 2, 3])
console.log("Executed successfully.");
Notes
JavaScript provides powerful built-in methods for the web.
Try It Yourself
You can run JavaScript directly in the BrowserCode Playground.