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
Guess what? We've hit 7,000 members! πŸ₯³

We thought this milestone was a next-year thing, but thanks to all of you, we're celebrating it right now. ☺️

Whether you've been with us from the start or just joined, your presence is what makes our community awesome. 🍊
Please open Telegram to view this post
VIEW IN TELEGRAM
❀148πŸ‘5πŸ€”1
⭐️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