JavaScript
32K subscribers
1.03K photos
10 videos
33 files
715 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
What is the output?
Anonymous Quiz
58%
31
17%
21
9%
11
16%
30
2πŸ”₯9❀6πŸ‘6
❓ CHALLENGE

const numbers = [0,0,0];

let i = 0;
const result = numbers.reduce((acc, _) => {
return ++acc;
}, i);

console.log(i, result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3
What is the output?
Anonymous Quiz
38%
0 0
17%
3 3
8%
3 2
37%
0 3
3❀12πŸ‘8πŸ€”8πŸ”₯2
🍊 Rspack 1.0: The Rust-Powered JavaScript Bundler

Far from being β€˜yet another bundler’ with its own approach and terminology to learn, Rspack prides itself on being webpack API and ecosystem compatible, while offering many times the performance. The team now considers it production ready and encourages you to try your webpack-based projects on it.

Rspack Contributors
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3πŸ‘2πŸ”₯1
CHALLENGE

function createCounter() {
let count = 0;
return {
increment() {
count++;
return count;
},
getCount() {
return count;
}
};
}

const counter = createCounter();

console.log(counter.increment());
console.log(counter.getCount());
console.log(counter.increment());
console.log(counter.getCount());
πŸ‘7❀4πŸ”₯3
❀10πŸ‘7πŸ”₯1
πŸ˜† So true ...
Please open Telegram to view this post
VIEW IN TELEGRAM
2🀣47❀7πŸ”₯6
CHALLENGE

const obj = {
a: 1,
b: 2,
getSum() {
return this.a + this.b;
}
};

const cloneObj = { ...obj, getSum() { return this.b + this.a; } };

console.log(obj.getSum());
console.log(cloneObj.getSum());
🀣11πŸ”₯3
What is the output?
Anonymous Quiz
13%
1, 2
72%
3, 3
10%
3, 5
4%
3, 7
2❀9πŸ‘3πŸ”₯2
Material UI v6 is out now πŸŽ‰

At ten years old, the popular design system has its latest major release. There's a focus on improved theming, color scheme management, container queries, and React 19 support. There are revamped templates to be inspired by, too.

GarcΓ­a, Bittu, Andai, et al.
Please open Telegram to view this post
VIEW IN TELEGRAM
2❀3πŸ‘3πŸ”₯2🀣1
CHALLENGE

const obj = {
value: 42,
getValue() {
return Math.max(this.value, 50);
}
};

const obj2 = {
value: 25,
getValue: obj.getValue
};

console.log(obj.getValue());
console.log(obj2.getValue());
❀8πŸ‘2
What is the output?
Anonymous Quiz
56%
50, 50
17%
42, 50
18%
42, 25
9%
50, 42
2πŸ”₯9πŸ‘3❀1
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3❀2πŸ”₯2
Help us improve our newsletter by rating your experience from 1 to 5. Your input is invaluable in helping us deliver the best content possible!
πŸ‘11
We Want Your Feedback!
Anonymous Poll
14%
1
12%
2
18%
3
20%
4
35%
5
Do you need a day off from Newsletter?
Anonymous Poll
37%
YES!
44%
NO!
19%
Post only during the working days!
πŸ‘6
Would you pay 1$ per month? (To prevent sponsored posts)
Anonymous Poll
20%
Yes I will pay 1$/month as I don't like sponsored posts.
80%
No, sponsored posts are OK for me.
Do you believe that one day we will reach 100K?
Anonymous Poll
84%
Hell Yeah!!!
16%
Definitely NO!
3❀3πŸ‘2πŸ”₯2
CHALLENGE

const obj = {
count: 0,
increment() {
this.count++;
},
getCount() {
return (() => this.count)();
}
};

obj.increment();
obj.increment();

console.log(obj.getCount());
πŸ‘12πŸ”₯5🀣2
What is the output?
Anonymous Quiz
23%
0
51%
2
20%
1
6%
3
πŸ”₯17πŸ‘5πŸ€”3🀣2