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



if (false) {
function foo() {
return 1;
}
}

console.log(foo());
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘12❀1
18πŸ‘10❀3
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘134❀3
❓ CHALLENGE #228

const numbers = [2, 4, 6, 8, 10];

const result = numbers.reduce((acc, val) => {
acc[val] = val * 2;
return acc;
}, {});

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀6πŸ‘1
⭐️As 2023 comes to a close, let's wrap it up with a swift survey to pinpoint everyone's favorite frameworks.
Please open Telegram to view this post
VIEW IN TELEGRAM
What are your favorite frontend frameworks?
Anonymous Poll
76%
React
17%
Angular
14%
Vue.js
5%
Svelte
3%
Astro
20%
Next.js
3%
Remix
6%
htmx
35πŸ€”9❀5πŸ‘3
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