let a = 2 + "2";
let b = 2 + 2;
let c = "2" + "2"; if(a===4){ console.log(b); } else{ console.log(c); }
let b = 2 + 2;
let c = "2" + "2"; if(a===4){ console.log(b); } else{ console.log(c); }
Anonymous Quiz
38%
22
31%
4
31%
44
0%
2
Loader4(Bar Loader).zip
1.1 KB
Source code of the latest post from instagram 🙂
var names = [45, 456, 102, 111];
names.sort();
⤵️ What will be the sorted array?
names.sort();
⤵️ What will be the sorted array?
Anonymous Quiz
17%
[45, 456, 102, 111]
58%
[45, 102, 111, 456]
8%
[102, 111, 45, 456]
17%
[45, 456, 111, 102]
let fruits = ["apple", "orange", "apple", "banana", "grapes"];
let duplicatesRemovedFruitsArray = fruits.filter(
(currentValue, index, arr) => {
return arr.indexOf(currentValue) == index;
}
);
console.log(duplicatesRemovedFruitsArray);
let duplicatesRemovedFruitsArray = fruits.filter(
(currentValue, index, arr) => {
return arr.indexOf(currentValue) == index;
}
);
console.log(duplicatesRemovedFruitsArray);
let fruits = ["apple", "orange", "apple", "banana", "grapes"];
let duplicatesRemovedFruitsArray = [...new Set(fruits)];
console.log(duplicatesRemovedFruitsArray);
let duplicatesRemovedFruitsArray = [...new Set(fruits)];
console.log(duplicatesRemovedFruitsArray);
index.html
3.4 KB
Source code for the Canvas Bubble shared in instagram as reel.
What are the three important manipulations done in a for loop on a loop variable?
Anonymous Quiz
21%
Testing, Updation, Testing
36%
Initialization,Testing, Updation
14%
Updation, Incrementation, Initialization
29%
Initialization,Testing, Incrementation
let y = 6, x = 0;
do{ console.log(y); x++; }
while(x < 3);
do{ console.log(y); x++; }
while(x < 3);
Anonymous Quiz
25%
6
13%
0
19%
Three 0
44%
Three 6