Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Instant Grammar Checker - Correct all grammar errors and enhance your writing

What's The REAL Secret To First Date Success With a Woman? Click Here To Find Out

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

29,372 questions

38,322 answers

573 users

How to declare and initialize a set containing unique objects in JavaScript

1 Answer

0 votes
let st = new Set();

st.add(5);
st.add(9);
st.add(0);
st.add(6);
st.add(1);

console.log([...st].join(' '));



/*
run:

"5 9 0 6 1"

*/

 


Protect Your Privacy - Download VPN


answered Mar 11 by avibootz
...