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

const obj = {};
Object.defineProperty(obj, 'length', { get: () => Math.random() });
console.log(obj.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6❀3
What is the output?
Anonymous Quiz
13%
0
15%
1
55%
A random number
17%
undefined
🀣19πŸ‘15πŸ€”74🀩3
πŸ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣186πŸ€”158❀1
❓ CHALLENGE

const obj = { length: 3 };
console.log(Object.keys(obj).length);
Please open Telegram to view this post
VIEW IN TELEGRAM
What is the output?
Anonymous Quiz
8%
0
37%
3
37%
1
18%
undefined
πŸ‘19🀣7πŸ€”6❀1
🀟 A Node.js Streams Masterclass

What a treat! Join the creator of Fastify, as well as Node.js TSC member, on an hour long odyssey into the world of streams, a topic in which he specializes. He starts off quite poetically .. a stream is like an array over time .. before quickly getting on to some live coding and demos. This is one in a series of events put on by Platformatic. (75 minutes.)

MATTEO COLLINA
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘112❀1πŸ€”1🀩1
❓ CHALLENGE

const arr = [];
arr[100] = 'a';
console.log(arr.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6
What is the output?
Anonymous Quiz
12%
0
24%
1
36%
100
28%
101
🀣46πŸ‘24πŸ€”20❀7🀩21
πŸ‘€ pnpm 9.0: The Efficiency-Focused Package Manager

pnpm has long been a fantastic option for folks looking to save disk space and CPU cycles (or for its great monorepo support) while maintaining most of what makes npm great. v9.0 drops Node 16 and 17 compatibility, honors the packageManager field in package.json, makes some default config changes, and adopts Lockfile v9.

PNPM
Please open Telegram to view this post
VIEW IN TELEGRAM
❀73πŸ‘1🀩1
⚠️ Dear group members, please boost our channel to help keep posting stories in Telegram and deliver helpful information for you! ✌️ πŸ’›
Please open Telegram to view this post
VIEW IN TELEGRAM
17πŸ‘9❀4πŸ€”1
❓ CHALLENGE

const arr = ['a', 'b', 'c'];
arr[-1] = 'd';
console.log(arr.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
12❀1
What is the output?
Anonymous Quiz
20%
undefined
13%
2
26%
4
41%
3
πŸ‘288❀7πŸ€”5
πŸ“Š Unovis: A Modular Data Visualization Framework

Works with React, Angular, Svelte, Vue or plain old JS/TS. Handles all sorts of things from Sankey diagrams to maps, graphs, chord diagrams, and traditional line/area charts. The v1.4 release adds support for annotating visualizations in a flexible way. There’s a gallery of examples (with code) if you want to dig in.

F5, INC.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘7❀33
❓ CHALLENGE

const obj = { a: 1 };
const { b } = obj;
console.log(b);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘8
πŸ‘30πŸ€”12🀣3🀩22
πŸ€” JSR is Not Another Package Manager

When Ryan created Node, JavaScript had no packages or standard module system. npm and CommonJS took off, and tools like Yarn or pnpm extended npm in certain areas, but in today's ES modules era, it’s time for a transformation. JSR is not merely a new npm, but a shift in how packages are distributed, tailored for the modern era.

RYAN DAHL
Please open Telegram to view this post
VIEW IN TELEGRAM
❀8πŸ‘44
❓ CHALLENGE

const promise1 = new Promise((resolve, reject) => {
setTimeout(() => resolve(10), 500);
});
const promise2 = new Promise((resolve, reject) => {
setTimeout(() => reject('Error'), 1000);
});

Promise.allSettled([promise1, promise2])
.then(results => console.log(results))
.catch(error => console.error(error));
Please open Telegram to view this post
VIEW IN TELEGRAM
❀165πŸ‘3
πŸ˜‰Running LLMs in the browser without servers

Tigran Bayburtsyan
Founder & CTO at TreeScale
Please open Telegram to view this post
VIEW IN TELEGRAM
12πŸ‘4❀3