JavaScript
32K subscribers
1.04K photos
10 videos
33 files
721 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
❀10πŸ‘9πŸ€”7
πŸ‘€ PixelMatch 6.0: A Fast Pixel-Level Image Comparison Library

Give it two images, it’ll highlight the differences. Now distributed as a ES module.

Mapbox
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘9❀3πŸ”₯3
CHALLENGE
const obj = {};
let value = 0;

Object.defineProperty(obj, 'prop', {
get() {
return value;
},
set(newValue) {
value = newValue + 1;
},
configurable: true,
enumerable: true
});

obj.prop = 10;
console.log(obj.prop);
πŸ‘4🀩3❀2
What is the output?
Anonymous Quiz
36%
10
48%
11
8%
1
9%
undefined
❀11πŸ€”7πŸ”₯3πŸ‘1
✌️ A Look at JavaScript's New Set Methods

Finding the intersection, union, and difference between sets, among other set-related tasks, is now a piece of cake. Available in Node 22+, Chrome/Edge 122+, Firefox 127+, Safari 17+, and now considered a 'baseline' feature.

Brian Smith (MDN)
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘11πŸ”₯3❀2🀩1
CHALLENGE

class Parent {
static greet() {
return 'Hello from Parent';
}
}

class Child extends Parent {
static greet() {
return super.greet() + ' and Child';
}
}

const childInstance = new Child();
console.log(childInstance.greet);
πŸ‘3πŸ€”2❀1
πŸ”₯17🀣12❀6πŸ‘5πŸ€”4
πŸ‘‘ Recreating the Queens Game in Vue

Queens is a puzzle game that combines elements of Minesweeper, chess, and Sudoku.

Fotis Adamakis
Please open Telegram to view this post
VIEW IN TELEGRAM
❀5πŸ‘3πŸ”₯2
CHALLENGE

const array = [1, 2, 3, 4, 5];
const result = array.splice(2, 2, 6, 7);

console.log(array, result);
❀3πŸ‘2πŸ”₯2🀩2
⭐️ Let's Make This the Most Starred README! ⭐️


Welcome to our fun experiment! Help us create a galaxy of stars on this README.

How to Participate:

⭐️ Star this repository!
πŸŽ‰ Share it with friends.

Why Star This Repo?

- Be part of a fun community experiment.
- See how many stars we can collect together.
- Enjoy watching this project grow!

Let's turn this README into the most starred repository ever!

Star Now!
Please open Telegram to view this post
VIEW IN TELEGRAM
🀩13πŸ‘5🀣4πŸ€”3❀2πŸ”₯2
CHALLENGE

const obj1 = { a: 1 };
const obj2 = Object.create(obj1);
obj2.b = 2;

const result = Object.entries(obj2).map(([key, value]) => key + value);

console.log(result);
πŸ‘10🀩7❀2πŸ€”1
πŸ₯‚ Woohoo! We've hit 20K members!

Your enthusiasm, contributions, and support have brought us to this milestone. Let’s keep the energy high as we continue to learn, share, and innovate together. Here’s to many more achievements on our journey!

✌️ Check out our emoji pack here

⚑️ Boost us in Telegram

🀝 Collaboration
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯19πŸ‘7❀3πŸ€”1
CHALLENGE

const array = [1, 2, 3, 4, 5];
const result = array.find(n => n > 3) ? array.every(n => n < 6) : array.some(n => n > 4);

console.log(result);
πŸ‘8
What is the output?
Anonymous Quiz
16%
false
49%
true
14%
4
21%
5
πŸ‘10πŸ€”6❀2🀩2
Please open Telegram to view this post
VIEW IN TELEGRAM
❀4πŸ‘3πŸ”₯1
CHALLENGE

function* generator() {
yield 'a';
yield* 'bcd';
yield 'e';
}

const gen = generator();
console.log([...gen]);
πŸ€”8❀3πŸ”₯2🀩1
πŸ‘8🀩3πŸ€”1
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3πŸ‘1πŸ”₯1
CHALLENGE

const array = [1, 2, [3, 4, [5, 6]]];
const result = array.flat(2).map(n => n * 2);

console.log(result);
πŸ”₯5πŸ‘4🀩1