Please open Telegram to view this post
VIEW IN TELEGRAM
π7π₯2β€1
CHALLENGE
function Person(name) {
this.name = name;
}
Person.prototype.greet = function () {
console.log(`Hello, ${this.name}`);
};
const person = new Person('Alice');
person.greet();
console.log(person.hasOwnProperty('greet'));
π7
What is the output?
Anonymous Quiz
46%
Hello, Alice; true
33%
Hello, Alice; false
10%
Error
11%
Hello, Alice; undefined
π18π€8π₯2
Say hello to the newest release line of Node.js that gets all the cutting edge features first (Node 22 will soon become the active LTS release). v23 notably enables support for loading ES modules with
require()
by default, drops 32-bit Windows support, and node --run
goes stable.Rafael Gonzaga
Please open Telegram to view this post
VIEW IN TELEGRAM
β€10π4π₯3
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