CHALLENGE β
(async function() {
return await 10;
})().then(console.log);
Please open Telegram to view this post
VIEW IN TELEGRAM
π8
π12π€3π₯2β€1
CHALLENGE β
function foo() {}
foo.prototype.bar = 42;
const obj = new foo();
foo.prototype = { bar: 100 };
console.log(obj.bar);
Please open Telegram to view this post
VIEW IN TELEGRAM
π7β€1
π€19π13β€5π₯2
Please open Telegram to view this post
VIEW IN TELEGRAM
β€3π3π₯3
CHALLENGE β
const obj = {
0: "zero",
1: "one",
length: 2
};
console.log(Array.from(obj));
Please open Telegram to view this post
VIEW IN TELEGRAM
π4β€1π€1
What is the output?
Anonymous Quiz
61%
[βzeroβ, βoneβ]
20%
[0,1]
13%
[undefined, undefined]
5%
[]
π17β€7π₯3π€1
CHALLENGE β
const map = new Map();
map.set("key", undefined);
console.log(map.has("key"), map.get("key"));
Please open Telegram to view this post
VIEW IN TELEGRAM
π7
What is the output?
Anonymous Quiz
21%
false, undefined
18%
true, null
7%
false, null
54%
true, undefined
β€12π7π₯1π€£1
Given plain text containing things like links, hashtags, IP addresses, and email addresses, this will generate the correct code to display it on the Web.
Hypercontext
Please open Telegram to view this post
VIEW IN TELEGRAM
π3β€2π₯2
CHALLENGE β
class MyClass {
constructor() {
this.a = 10;
}
}
MyClass.prototype.b = 20;
const obj = new MyClass();
delete obj.b;
console.log(obj.b);
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β€5
π€17π7β€2
Please open Telegram to view this post
VIEW IN TELEGRAM
π5β€3
CHALLENGE
const symbol1 = Symbol('desc1');
const symbol2 = Symbol('desc2');
const myObject = {};
myObject[symbol1] = 'Value1';
myObject[symbol2] = 'Value2';
let output = '';
for (let key in myObject) {
output += myObject[key] + ' ';
}
output += Object.getOwnPropertySymbols(myObject).length;
console.log(output);
π8β€4
π€13π11β€6
Please open Telegram to view this post
VIEW IN TELEGRAM
β€5π1π₯1
CHALLENGE
const numbers = [2, 4, 6, 8];
const sum = numbers.reduce((acc, num) => acc + num, 0);
console.log(sum);
π6π€5
β€6π6π₯2π€©1