What is the output?
Anonymous Quiz
19%
"Start" "Promise 1" "Timeout 1" "Promise 2" "Timeout 2" "End"
12%
"Start" "Promise 2" "Promise 1" "Timeout 1" "Timeout 2" "End"
12%
"Start" "Promise 2" "Timeout 1" "Promise 1" "Timeout 2" "End"
57%
"Start" "End" "Promise 2" "Timeout 1" "Promise 1" "Timeout 2"
π€14π9
The latest major version of Node is here. Note that itβs a βCurrentβ release for now, so gets all the newest features first, but is due to become Node's main active LTS release this October. As an even numbered release, Node 22 should be around and maintained for a long time, most likely out to 2027 or so (see image above).
Please open Telegram to view this post
VIEW IN TELEGRAM
β€10π3 3
console.log('Start');
setTimeout(() => console.log('Timeout'), 0);
Promise.resolve().then(() => console.log('Promise'));
function foo() {
console.log('Function call');
}
foo();
console.log('End');
Please open Telegram to view this post
VIEW IN TELEGRAM
β€5π2π€2 2
What is the output?
Anonymous Quiz
20%
"Start" "Promise" "Function call" "Timeout" "End"
16%
"Start" "Function call" "Timeout" "Promise" "End"
11%
"Start" "Function call" "Timeout" "End" "Promise"
54%
"Start" "Function call" "End" "Promise" "Timeout"
π24π€9β€4 3π€£2
While designed to get library developers prepared for the eventual React 19 release, this is nonetheless a huge step, with full support for Custom Elements (Custom Element support has long been a thorn in React's side), all the latest React Server Components goodies, Actions, use, and more besides.
THE REACT TEAM
Please open Telegram to view this post
VIEW IN TELEGRAM
π11 6β€4
console.log('Start');
Promise.resolve().then(() => console.log('Promise'));
function foo(n) {
if (n === 0) {
console.log('End');
return;
}
console.log('Function call');
foo(n - 1);
}
setTimeout(() => foo(3), 0);
Please open Telegram to view this post
VIEW IN TELEGRAM
π13 6β€3π€2
htmx is an increasingly popular way to use modern, dynamic browser features through creative use of HTML attributes, rather than hand writing JS for everything. Dylan looks at the pros and cons through the lens of community sentiment.
DYLAN HUANG
Please open Telegram to view this post
VIEW IN TELEGRAM
π7β€2π€©2 1
The goal is to make it as simple as a
npx extension create my-extension to get started with building your own browser extensions. GitHub repo.CEZAR AUGUSTO
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β€5 2
console.log('Start');
Promise.resolve().then(() => console.log('Promise'));
const foo = n => {
console.log('Function call');
n > 0 && foo(n - 1);
};
setTimeout(() => foo(2), 0);
Please open Telegram to view this post
VIEW IN TELEGRAM
π13π€4
What is the output?
Anonymous Quiz
17%
Start, Function call (2 times), Promise
21%
Start, Promise, Function call, Function call, Promise
24%
Start, Promise, Function call (3 times)
37%
Start, Promise, Function call (2 times)
console.log('Start');
setTimeout(() => console.log('Timeout'), 0);
Promise.resolve().then(() => console.log('Promise'));
console.log('End');
Please open Telegram to view this post
VIEW IN TELEGRAM
What is the output?
Anonymous Quiz
14%
Start, Promise, Timeout, End
21%
Start, Timeout, Promise, End
57%
Start, End, Promise, Timeout
8%
Start, Promise, Timeout, End
π18π€5 4β€1
Run Linux, numerous older versions of Windows, BSD, MS-DOS, and other systems right in the browser (and quickly, too). Not a new project, but Iβm always impressed how itβs constantly getting updates. GitHub repo.
FABIAN HEMMER
Please open Telegram to view this post
VIEW IN TELEGRAM
function Car(make) {
this.make = make;
}
function Truck(make) {
this.make = make;
}
const car = new Car('Toyota');
const truck = new Truck('Toyota');
console.log(car.__proto__ === truck.__proto__);
console.log(car.constructor === truck.constructor);
console.log(car instanceof Truck);
console.log(car instanceof Car);
console.log(Truck.prototype.isPrototypeOf(car));
console.log(Car.prototype.isPrototypeOf(truck));
Please open Telegram to view this post
VIEW IN TELEGRAM
β€10π4
What is the output?
Anonymous Quiz
32%
true, false, false, true, false, false
25%
false, false, false, false, false, false
20%
false, false, false, true, true, false
24%
false, false, false, true, false, false
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£97π10 4β€1
function Animal() {
this.type = 'animal';
}
function Dog() {
this.name = 'dog';
}
Dog.prototype = new Animal();
const rover = new Dog();
const spot = new Dog();
console.log(rover instanceof Dog);
console.log(rover instanceof Animal);
console.log(rover instanceof Object);
console.log(rover === spot);
console.log(rover.constructor === Dog);
console.log(rover.constructor === Animal);
Please open Telegram to view this post
VIEW IN TELEGRAM
β€8π2
What is the output?
Anonymous Quiz
30%
true, true, true, false, true, false
25%
true, true, true, false, false, false
26%
true, true, true, true, true, false
19%
true, true, true, false, false, true
π11π€10π€©3 2β€1