Coding Omega
74 subscribers
8 photos
23 files
69 links
In this telegram channel you will get
• source code
• useful links
• quizzes
• pdf

So what are you thinking JOIN US NOW!
Download Telegram
const arr = ["a", ["b", ["c", {d: "e"}]]];
const output = arr.flat(Infinity).find(elm => elm.d !== undefined);
console.log(output);
Anonymous Quiz
29%
{ d: "e" }
41%
["a", ["b", ["c", {d: "e"}]]]
12%
e
18%
a, b, c, d, e
Loader_2.html
818 B
Source code of the latest post from instagram.
let arr = [4, 6, 7];
typeof arr.join(" ");
Anonymous Quiz
31%
467
48%
string
10%
number
10%
Array
let a = 2 + "2";
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 🙂
console.log(37 / "code");
Anonymous Quiz
0%
37
55%
NaN
18%
Error
27%
37 / "code"
0%
code
index.html
1.4 KB
Source file for How to add pre loader
index.html
894 B
Toggle full-screen code
var names = [45, 456, 102, 111];
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 fruits = ["apple", "orange", "apple", "banana", "grapes"];
let duplicatesRemovedFruitsArray = [...new Set(fruits)];
console.log(duplicatesRemovedFruitsArray);