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



const data = [1, 2, 3, 4, 5];

const result = data.reduce((acc, val) => acc.concat(Array.from({ length: val }, (_, index) => val + index)), []);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘62❀1πŸ€”1
πŸ”₯ Why I don’t burnout and still love programming

You’re facing a 10-day deadline, and you end up procrastinating for the first 8 days because you just didn’t have the mood to work. However, you managed to complete the task ...

"My Story of Beating Burnout and Loving Programming"

Nairi
❀11πŸ‘73
❓ CHALLENGE



const data = [1, 2, 3, 4, 5];

const result = data.flatMap(num => Array(num).fill(num * 2));

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘4
Check out our awesome emoji pack ⭐️

✌️

πŸ–πŸ”΅

πŸ€ŸπŸŒ²πŸŒŸπŸ’»

πŸŒ²πŸ‘πŸ‘πŸŸ πŸ”΅

πŸŒ•πŸŒ•πŸπŸŒ₯πŸŒ΄πŸ¦”

πŸŽ’πŸ‘“πŸŒ‚πŸ‘™πŸ“–πŸ“ŽπŸ“˜

…

⚑️ Boost us in Telegram.
Please open Telegram to view this post
VIEW IN TELEGRAM
52πŸ‘12🀩8❀5
❓ CHALLENGE



const data = [
{ id: 1, name: 'Alice', age: 25, gender: 'Female' },
{ id: 2, name: 'Bob', age: 30, gender: 'Male' },
{ id: 3, name: 'Charlie', age: 22, gender: 'Male' },
{ id: 4, name: 'David', age: 35, gender: 'Male' },
];

const result = data.filter(person => person.gender === 'Male').map(person => person.age).reduce((acc, age) => acc + age, 0);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘8❀42
What is the output?
Anonymous Quiz
12%
67
19%
30
62%
87
7%
57
πŸ‘2217❀4🀣4
πŸ‘©β€πŸ’» Table of Contents: Build your own X

This repository is a compilation of well-written, step-by-step guides for re-creating our favorite technologies from scratch.

codecrafters-io
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘12❀43
❓ CHALLENGE




const numbers = [1, 2, 3, 4, 5];

const result = numbers.reduce((acc, num) => {
if (num % 2 === 0) {
acc.even += num;
} else {
acc.odd *= num;
}
return acc;
}, { even: 0, odd: 1 });

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘11❀1
22πŸ‘9❀7
πŸ‘©β€πŸ’» Vue 3.4 Released

Vue 2 went β€˜end of life’ last week, but never fear, we got a new version of Vue 3 to make up for it, complete with a rewritten, faster template parser, and a more efficient reactivity system. If you prefer a screencast tour, ▢️ Erik Hanchett has one for you.

EVAN YOU
Please open Telegram to view this post
VIEW IN TELEGRAM
13πŸ‘7❀4🀩2
πŸ‘€ Java vs JavaScript | Friends or Enemies

In the modern IT industry, Java and JavaScript stand as leading programming languages for building scalable and reliable software systems. They offer flexibility and automation capabilities for implementing business rules.

Gnel Simonyan
Please open Telegram to view this post
VIEW IN TELEGRAM
21🀣9❀4πŸ‘4
CHALLENGE

const words = ['apple', 'banana', 'cherry'];

const result = words.map(word => [...word].reduce((acc, char) => char + acc, ''));

console.log(result);
πŸ‘153❀2
πŸ‘€ Let's Bring Back JavaScript's with Statement..?

Famously roasted in JavaScript: The Good Parts before its deprecation, with isn’t a popular language feature at all, so Alex's appeal here is partly tongue in cheek. Nonetheless, with has some potentially interesting uses in modern JavaScript.

ALEX MACARTHUR
Please open Telegram to view this post
VIEW IN TELEGRAM
10πŸ‘4❀3🀣1
❓ CHALLENGE

function Car(make, model) {
this.make = make;
this.model = model;
}

Car.prototype.displayInfo = function () {
return `Make: ${this.make}, Model: ${this.model}`;
};

const myCar = new Car('Toyota', 'Camry');

console.log(myCar.displayInfo());
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘4❀1
❀17πŸ‘64