JavaScript
32.1K subscribers
1.06K photos
10 videos
33 files
735 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
πŸ‘€ How Marketing Changed OOP in JavaScript

A look at JavaScript’s earliest history and its prototypal nature.

JUAN DIEGO RODRÍGUEZ
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3❀2πŸ”₯2
❓ CHALLENGE #217

const asyncFunction = async () => {
const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));

const result = await Promise.race([delay(100), delay(500)]);
return result;
};

asyncFunction().then(value => console.log(value));
Please open Telegram to view this post
VIEW IN TELEGRAM
❀10πŸ‘2
What is the output?
Anonymous Quiz
30%
100
23%
500
18%
Error
29%
undefined
πŸ‘11πŸ”₯3❀2
🀑
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣50πŸ‘5🀩5❀41
❓ CHALLENGE #218

const matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
];

let columnSums = [];

for (let i = 0; i < matrix[0].length; i++) {
let sum = 0;
for (let j = 0; j < matrix.length; j++) {
sum += matrix[j][i];
}
columnSums.push(sum);
}

console.log(columnSums);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘8❀6πŸ€”3🀣2
πŸ‘20🀣9❀4πŸ”₯2
πŸ€” Learn How Modern JS Frameworks Work by Building One

Building things is a great way to learn, even if you don’t end up using what you built. Even better is when someone who’s already built something successful introduces you to the process. Nolan doesn’t go super deep but far enough to whet your appetite and for you to learn a few things by taking it further.

NOLAN LAWSON
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯8πŸ‘3❀2
❓ CHALLENGE #219

const matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
];

let flattenedMatrix = [];

for (let i = 0; i < matrix.length; i++) {
for (let j = 0; j < matrix[i].length; j++) {
flattenedMatrix.push(matrix[i][j]);
}
}

console.log(flattenedMatrix);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀7πŸ‘3
πŸ‘€ Name Checker: Check if a Project Name is Taken

An online tool that checks a bunch of different package registries (npm, GitHub, GitLab, PyPI, Maven, RubyGems, Go packages, Rust crate, etc.) to see if the name is used by another project.

TODD COOKE
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘12❀3πŸ”₯1
❓ CHALLENGE #220

const data = [1, 2, 3, 4, 5];

const result = data.flatMap(num => [num * 2, num * 3]);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀4πŸ‘1
πŸ”₯15❀6πŸ‘6
πŸ‘©β€πŸ’»πŸ‘©β€πŸ’» Maglev: A Serious Look at V8’s Fastest Optimizing JIT

A deep dive into how the V8 JavaScript engine (as used in Node) is getting faster thanks to work on its Maglev JIT compiler which sits in between the existing Sparkplug and TurboFan compilers (which offer distinct compilation vs execution speed tradeoffs).

THE V8 TEAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘8❀5πŸ”₯1
❓ CHALLENGE #221

const words = ['apple', 'banana', 'cherry'];

const result = words.flatMap(word => word.split('').reverse());

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2
πŸ‘©β€πŸ’»πŸ‘©β€πŸ’» The Complete Puppeteer Cheatsheet

If you want to control a headless Chrome browser from Node, Puppeteer is for you. Now we just need a Playwright one as well ;-)

MOHAN GANESAN
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘11πŸ”₯3❀1
❓ CHALLENGE #222

const items = [1, 2, 3, 4, 5];

const result = items.reduce((acc, val) => acc.concat(Array.from({ length: val }, () => val)), []);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀6πŸ‘4🀩3
πŸ‘©β€πŸ’» The Node.js Best Practices List: 2023 Edition

1. You are reading dozens of the best Node.js articles - this repository is a summary and curation of the top-ranked content on Node.js best practices, as well as content written here by collaborators

2. It is the largest compilation

3. Best practices have additional info

YONI GOLDBERG ET AL.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘11❀3🀩2πŸ”₯1
❓ CHALLENGE #223

const words = ['apple', 'banana', 'cherry'];

const result = words.map(word => word.split('').sort().join(''));

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘8❀3