QUICK BITS:
🤝 It hasn't been finalized yet, but the Node team is working on a Node.js Advocacy Ambassador program where the team will nominate a group of annual ambassadors to help in spreading the word about various Node.js topics.
⚠️ If you haven't taken the official Node.js Next 10 Survey yet, please do! Entries close this Friday, May 24, and your input will help steer future core team decisions.
‼️ Talking of surveys, the 2024 Stack Overflow developer survey has just gone live. It's open till June 7.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5❤2🔥2
CHALLENGE
let proto = { a: 1 };
let obj = Object.create(proto);
Object.defineProperty(obj, 'a', {
value: 2,
writable: false,
enumerable: true,
configurable: false
});
console.log(obj.a);
proto.a = 3;
console.log(obj.a);
🔥7
👍15🤔9❤5🤩4🔥3
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥6👍2❤1
CHALLENGE
console.log(1);
setTimeout(() => {
console.log(2);
}, 100);
setTimeout(() => {
console.log(3);
}, 0);
Promise.resolve().then(() => {
console.log(4);
}).then(() => {
console.log(5);
});
console.log(6);
👍8❤3
What is the output?
Anonymous Quiz
14%
1, 6, 4, 3, 5, 2
33%
1, 6, 3, 4, 5, 2
16%
1, 6, 4, 5, 2, 3
37%
1, 6, 4, 5, 3, 2
❤11🤔5🤩4👍3🔥3
CHALLENGE
const obj = {
a: 1,
b: function() {
return () => {
return this.a;
};
},
c: function() {
return function() {
return this.a;
};
}
};
const arrowFunc = obj.b();
const regularFunc = obj.c();
console.log(arrowFunc());
console.log(regularFunc());
👍9🤔6
What is the output?
Anonymous Quiz
19%
undefined, 1
24%
undefined, undefined
37%
1, 1
20%
1, undefined
❤17🤔13👍5🤣3🔥1
Frank has a great reputation for putting together stunning visual demos with the tiniest amounts of JavaScript. This is no exception. He goes into a lot of detail about how it works; you’ll learn a few things and/or come away awe-struck.
FRANK FORCE
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3❤2🔥2🤩2
CHALLENGE
function* generator() {
yield* [1, 2, 3];
yield 4;
}
const gen = generator();
console.log([...gen]);
❤1👍1🤣1
🤩9🤣8🔥5👍3❤1🤔1
Amy wanted to programatically bring her (cursive) handwriting into some diagrams she was making and figured out how to make it happen with p5.js. Here's how.
AMY GOODCHILD
Please open Telegram to view this post
VIEW IN TELEGRAM
👍8❤1🔥1
CHALLENGE
function* generator() {
yield 1;
yield 2;
yield 3;
}
const gen1 = generator();
const gen2 = generator();
console.log(gen1.next().value);
console.log(gen2.next().value);
console.log(gen1.next().value);
console.log(gen2.next().value);
❤5👍2🤔1
👍12❤5🔥3🤩2
CHALLENGE
function* generator() {
yield 1;
yield* (function*() { yield 2; yield 3; })();
yield 4;
}
const gen = generator();
console.log(gen.next().value);
console.log(gen.next().value);
console.log(gen.next().value);
console.log(gen.next().value);
👍3❤1
What is the output?
Anonymous Quiz
62%
1,2,3,4
20%
1,2,4, undefined
14%
1, undefined, 3, 4
4%
undefined, 1, 3, 4
👍9❤7🤔3
CHALLENGE
function* generator() {
yield 1;
return 2;
}
const gen = generator();
console.log(gen.next().value);
console.log(gen.next().value);
🤔8👍3❤2
What is the output?
Anonymous Quiz
26%
1, undefined
57%
1, 2
8%
undefined, 1
8%
undefined, undefined
🤣19🤔9🤩7👍5🔥3
1Password is a popular password management tool that relies upon a browser extension to fill out passwords on the Web. At over a minute for a single build, things were starting to drag for the devs. Could esbuild help? A fun story with plenty of technical details.
Jarek Samic
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥5👍4❤1