JavaScript
32.1K subscribers
1.06K photos
10 videos
33 files
737 links
A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript πŸš€ Don't miss our Quizzes!

Let's chat: @nairihar
Download Telegram
🌲 Node.js 22.0 (Current) Released

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πŸ‘33
❓ CHALLENGE

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πŸ€”22
πŸ”΅ React 19 Now in Beta

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
πŸ‘116❀4
❓ CHALLENGE

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
πŸ‘136❀3πŸ€”2
πŸ‘€ I Reviewed 1,000s of Opinions on HTMX

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🀩21
🍊 extension.js: Zero-Config, Cross Browser Extension Dev Starter

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❀52
❓ CHALLENGE

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
🍿 Emoji Mart 5.6

Emoji selection component for the Web.
Please open Telegram to view this post
VIEW IN TELEGRAM
15❀2πŸ‘2🀩2
❓ CHALLENGE

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
2❀1πŸ‘1
😯 Virtual x86: x86 Virtualization with JS and WASM

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
7πŸ‘6❀2🀩2
❓ CHALLENGE

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
πŸ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣97πŸ‘104❀1
❓ CHALLENGE

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