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
⭐️Today, let's explore your favorite JavaScript runtimes.
Please open Telegram to view this post
VIEW IN TELEGRAM
What are your favorite JavaScript runtimes?
Anonymous Poll
95%
Node.js
5%
Deno
6%
Bun
12❀5πŸ‘4
⭐️ Now, it's your turn to explore your favorite databases.
Please open Telegram to view this post
VIEW IN TELEGRAM
9πŸ‘7❀3
⭐️Wow, this is going to be exciting! Let's explore your favorite editors for JavaScript.
Please open Telegram to view this post
VIEW IN TELEGRAM
29❀7πŸ‘7🀣6πŸ€”1
⭐️ On the last day of 2023, we welcome individuals who would like to anonymously share their salary range with the community. We believe this information will be interesting and useful for all of us in 2024.
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣46πŸ€”16❀66πŸ‘4
🌟🌟🌟🌟🌟

🌟🌟🌟 🌟🌟🌟🌟

πŸŒŸπŸŽ†

May your algorithms always be efficient, your meetings brief, and your stack overflow searches fruitful.
Please open Telegram to view this post
VIEW IN TELEGRAM
❀4915πŸ‘12🀩2
❓ CHALLENGE




function calculateAsyncSum(numbers) {
return new Promise(resolve => {
setTimeout(() => {
const sum = numbers.reduce((acc, num) => acc + num, 0);
resolve(sum);
}, 1000);
});
}

async function getResult() {
const data = [1, 2, 3, 4, 5];
const result = await calculateAsyncSum(data);
console.log(result);
}

getResult();
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘9❀6
What is the output?
Anonymous Quiz
59%
15
26%
This will result in an error
9%
0
7%
10
πŸ‘188❀3
πŸ‘©β€πŸ’» Worlds smallest Docker Image - aka WSDI | 92 bytes

If you ever wondered what is the minimal Docker image in the world, then you are in right place. Is it debian, is it alpine or busybox ? ...

dooqod
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣9πŸ‘5❀3
❓ CHALLENGE




function asyncOperation() {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve('Async operation completed!');
}, 2000);
});
}

const asyncOperationWithTimeout = Promise.race([asyncOperation(), new Promise((_, reject) => setTimeout(() => reject('Timeout!'), 1000))]);

asyncOperationWithTimeout
.then(result => console.log(result))
.catch(error => console.log(error));
Please open Telegram to view this post
VIEW IN TELEGRAM
❀10πŸ‘4
14πŸ‘7❀2πŸ€”2
πŸ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣788❀6πŸ‘5🀩1
❓ CHALLENGE




function fetchData() {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve('Data fetched successfully!');
}, 1000);
});
}

async function getResult() {
const result = await fetchData();
console.log(result);
}

getResult();
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘52
πŸ‘15❀6🀩4πŸ€”1
πŸ‘©β€πŸ’» Essential JavaScript Design Patterns

There are numerous programming design patterns that you’ve likely used, but you’re not aware of them...

NAIRIHAR
Please open Telegram to view this post
VIEW IN TELEGRAM
7❀5πŸ‘3
❓ CHALLENGE




const data = [
{ id: 1, name: 'Alice', skills: ['JavaScript', 'HTML'] },
{ id: 2, name: 'Bob', skills: ['JavaScript', 'CSS'] },
{ id: 3, name: 'Charlie', skills: ['HTML', 'CSS'] },
];

const result = data.reduce((acc, person) => {
person.skills.forEach(skill => {
acc[skill] = acc[skill] ? acc[skill] + 1 : 1;
});
return acc;
}, {});

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘23
πŸ‘©β€πŸ’» qnm: A CLI Tool to Look Into node_modules

If you’ve ever gone into node_modules and been overwhelmed, this tool, supporting both npm and Yarn, lets you dig around with some guidance as to what is what. You can use fuzzy search to find specific things and also see which modules are using the most space.

RAN YITZHAKI
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘5🀩3❀21