CHALLENGE β
const obj = {
a: 1,
b: function() {
return this.a;
}
};
const b = obj.b;
console.log(b());
Please open Telegram to view this post
VIEW IN TELEGRAM
π11
π17π€5π₯3β€2
Work with complex numbers, fractions, units, matrices, symbolic computation, etc. A long standing library now, but continuing to get frequent updates. GitHub repo.
Jos de Jong
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€4π₯2
CHALLENGE β
function* gen() {
yield 1;
yield 2;
return 3;
}
const g = gen();
console.log([...g]);
Please open Telegram to view this post
VIEW IN TELEGRAM
β€3π2
π7π₯5β€3
Please open Telegram to view this post
VIEW IN TELEGRAM
π5β€2π₯1
CHALLENGE β
const nums = [1, 2, 3];
const res = nums.reduce((acc, val) => acc + val, "");
console.log(typeof res);
Please open Telegram to view this post
VIEW IN TELEGRAM
π6
π13β€6π₯2
Based on Googleβs Skia graphics engine and offers end results similar to Chromeβs own canvas system. Itβs GPU accelerated and can render images, paths, fonts, shapes, and (almost) everything youβd expect. v2.0 adds support for WOFF/WOFF2 fonts, WEBP exporting, and more.
Christian Swinehart
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€2π₯2
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