What is the output?
Anonymous Quiz
18%
"number", true
22%
"undefined", false
30%
"number", false
30%
"NaN", true
π€£30π7β€3π₯1
CHALLENGE
async function test() {
console.log(1);
await new Promise(resolve => setTimeout(resolve, 1000));
console.log(2);
return 3;
}
console.log(4);
test().then(console.log);
console.log(5);
π3π₯1
What is the output?
Anonymous Quiz
43%
4, 1, 5, 2, 3
31%
4, 1, 2, 5, 3
21%
1, 4, 2, 3, 5
5%
1, 4, 2, 5, 3
π13π₯5π€£4β€3
A two hour walkthrough of using the Kaplay game library (formerly known as Kaboom.js) to build a complete, if simple, Sonic-branded game. You can also play it here.
JSLegendDev
Please open Telegram to view this post
VIEW IN TELEGRAM
1π10β€3π₯3
CHALLENGE
function Animal(name) {
this.name = name;
}
Animal.prototype.sound = 'Generic sound';
const dog = new Animal('Dog');
Animal.prototype.sound = 'Bark';
console.log(dog.sound);
π3
π€£14π10β€4π€©2
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯12π4β€1
CHALLENGE
const obj = {
value: 10,
getValue: function () {
return () => this.value;
}
};
const value = 20;
const getValue = obj.getValue();
console.log(getValue());
π3π₯3
π₯15π5β€2
The long awaited next major release of Svelte, the compiler-driven JS UI framework, is the βmost significant release in the projectβs historyβ, while remaining largely backwards compatible. A big addition is runes for explicitly declaring reactive state, but thereβs much more besides. The official svelte.dev site has also undergone a big rebuild to act as an βomnisiteβ for all things Svelte.
The Svelte Team
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β€3π₯2
What is the output?
Anonymous Quiz
24%
"object", "object"
29%
"null", "function"
28%
"object", "function"
18%
"null", "object"
1π₯10π4π€£4β€3
Knip finds unused files, dependencies and exports in your JavaScript and TypeScript projects. Less code and dependencies lead to improved performance, less maintenance and easier refactorings.
webpro-nl
Please open Telegram to view this post
VIEW IN TELEGRAM
π5β€3π₯2π€1
CHALLENGE
console.log('A');
setTimeout(() => console.log('B'), 0);
Promise.resolve()
.then(() => {
console.log('C');
return Promise.resolve();
})
.then(() => console.log('D'));
console.log('E');
β€1π1
What is the output?
Anonymous Quiz
28%
A, C, D, E, B
32%
A, E, B, C, D
10%
A, C, E, D, B
31%
A, E, C, D, B
π15β€4π₯2π€2
A JavaScript port of Hugging Faceβs transformers Python library that makes it possible to run natural language, vision, and audio machine learning models. v3 adds WebGPU support and now supports Node (plus Deno and Bun) as well as the browser. 1200+ models are ready to run in areas like embeddings, text generation, and speech recognition (as with whisper-small).
Hugging Face
Please open Telegram to view this post
VIEW IN TELEGRAM
β€9π5π₯4
CHALLENGE
function memoize(fn) {
const cache = {};
return (arg) => cache[arg] ?? (cache[arg] = fn(arg));
}
const square = memoize((n) => n * n);
console.log(square(5));
console.log(square(5));
console.log(square(6));
π6π₯1
π8β€4π₯4
Beyond Fireship
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯7π3β€2