In this article, we will review the notable changes introduced in the new Node.js version:
- node:sqlite module
- add matchesGlob method
- add postessageToThread method
nairihar
Please open Telegram to view this post
VIEW IN TELEGRAM
π9π₯4β€3
CHALLENGE
const func = () => arguments.length;
console.log(func(1, 2, 3));
π₯2
π22β€5π€4π₯2π€©1
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€1π₯1
CHALLENGE
const array = Array.from({ length: 5 }, () => Math.random() > 0.5);
console.log(array);
π8
What is the output?
Anonymous Quiz
43%
An array of 5 random true/false values
36%
An array of 5 random numbers between 0 and 1
11%
An empty array
10%
Error
π€12π8β€5π€£5
Part of xyflow, this makes it easy to create node-based UIs where you have interactive components wired together however you choose. There's a Svelte version too.
Moritz Klack and John Robb
Please open Telegram to view this post
VIEW IN TELEGRAM
β€6π5
CHALLENGE
const obj1 = { a: 1 };
const obj2 = Object.create(obj1);
obj2.b = 2;
const result = 'a' in obj2;
console.log(result);
β€5π4
π7β€3π₯2π€£1
Spinning up a quick, simple browser extension isnβt that big of a deal nowadays, especially with tools like Extension to kick off a project. Larger extensions are a different story, so itβs neat to learn from the experiences of a team thatβs built one.
Nina Torgunakova
Please open Telegram to view this post
VIEW IN TELEGRAM
π5β€2π₯2π€£1
CHALLENGE
const array = [1, 2, 3];
array[-1] = 0;
console.log(array.length);
β€4π3
π16π€£10π₯3β€2π€©1
Think Lodash but newer, faster, smaller, and with tree shaking and built-in TypeScript support. The reference guide shows off the supported functions so far β itβs not quite as extensive as Lodash, but itβs getting there with the goal being βto achieve full feature parity with Lodash.β
Viva Republica, Inc
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯7π6β€3π€1
CHALLENGE
const obj = {
a: 1,
then(resolve) {
resolve(this.a);
}
};
obj.then(console.log);
π4β€1
π11β€7π₯3π€£3π€1
Several demos on the homepage. Lightweight and framework independent but offers Vue 2/3, Alpine.js and Svelte integrations. GitHub repo.
Formβ€io
Please open Telegram to view this post
VIEW IN TELEGRAM
β€9π4π₯4
CHALLENGE
const array = [1, 2, 3];
const obj = { a: 1, b: 2 };
array.push(obj);
obj.a = 3;
console.log(array[3].a);
π8π€1
π€11π₯9π6
We are excited to share that our JavaScript newsletter has become quite popular in our community!
With 21k subscribers and around 80 new joiners every day, we see a fantastic engagement with 20-30K reads daily.
If your company is interested in sponsoring and collaborating with our newsletter, we'd love to hear from you!
Feel free to contact me.
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€4π₯4
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯8π5β€4