add to set js
const mySet = new Set();
mySet.add(15);
mySet.add(33);
mySet.add(15);
for(let item of mySet) {
console.log(item)
// expected output: 15
// expected output: 33
}
add to set js
const mySet = new Set();
mySet.add(15);
mySet.add(33);
mySet.add(15);
for(let item of mySet) {
console.log(item)
// expected output: 15
// expected output: 33
}
js add
//HOW TO ADD:
var num1 = 4;
var num2 = 6;
var answer = 4 + 6; //You can do num1 + num2 here!
function add(num1, num2) {
return num1 + num2;
};
console.log("4 + 6 is: " + add());
console.log("I hope this helped!");
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us