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 numbers = [4, 9, 16, 25];

const result = numbers.every(num => Math.sqrt(num) % 1 === 0);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀14🀩3πŸ‘1
πŸ‘19❀96
This is how we solve the problems ❓
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣82❀86
❓ CHALLENGE

const sentence = 'The quick brown fox jumps over the lazy dog';

const result = sentence.split(/\s+/).map(word => word.length).filter(length => length % 2 === 0);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘4❀3
πŸ‘2111❀9
⛽️ When 'Everything' Becomes Too Much: Fresh npm Package Chaos

While many of us were taking a break, some folks published an 'everything' package that depended upon all public npm packages, resulting in millions of transitive dependencies. This caused.. some problems. One of the folks involved also shared the story from behind the scenes.

FEROSS ABOUKHADIJEH (SOCKET)
Please open Telegram to view this post
VIEW IN TELEGRAM
9πŸ‘8❀3
❓ CHALLENGE

const text = 'Hello, World!';

const result = text.match(/l+/g);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2612πŸ€”10❀2
🌲 The State of Benchmarking in Node.js

While Node has always been fast (thanks largely to its V8 underpinnings), there’s a renewed focus on performance in the face of benchmarks and claims from alternatives like Deno and Bun. Lars looks at the ecosystem of benchmarking options in the space.

LARS KAPPERT
Please open Telegram to view this post
VIEW IN TELEGRAM
❀6πŸ‘43
πŸ‘€ Dependency Cruiser 16.0: A Way to Visualize Dependencies

If you want a look at the output without running it for yourself, there’s a whole page of graphs for popular, real world projects including Chalk and Yarn. Might be an option if you're looking to create a fun poster for your office wall..? πŸ˜†

SANDER VERWEIJ
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘76❀3
❓ CHALLENGE


const a = [1, 2, 3];
const b = a;

b[0] = 0;

console.log(a);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘21🀣1412πŸ€”6
πŸ€”18❀9πŸ‘9🀣76🀩1
πŸ‘©β€πŸ’» React Aria 1.0: 40+ Accessible Components, Your Way

Anyone who follows Devon Govett (also of Parcel fame) on social media will know just how much he's put into this suite of components, and v1.0 is now here. If you’re building your own components and want to get accessibility right, this is for you. Devon explains a little more here.

ADOBE
Please open Telegram to view this post
VIEW IN TELEGRAM
❀64πŸ‘3
❓ CHALLENGE


async function asyncQuiz() {
console.log("Start");

const promise1 = new Promise((resolve) => {
setTimeout(() => resolve("Promise 1"), 1000);
});

const promise2 = new Promise((resolve) => {
setTimeout(() => resolve("Promise 2"), 500);
});

console.log(await promise1);
console.log(await promise2);

console.log("End");
}

asyncQuiz();
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ€”13πŸ‘129❀8
Y'all have been doing sql queries wrong. πŸ˜‚

Ashot Hovhannisyan
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ€”15🀣9❀5πŸ‘4
❓ CHALLENGE


function* gen() {
yield *[1,1];
yield 2;
yield 3;
}

const generator = gen();

console.log(generator.next().value);
console.log(generator.next().value);

for (const value of generator) {
console.log(value);
}
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘147πŸ€”4❀3
What is the output?
Anonymous Quiz
23%
Error
16%
1 2 3
39%
[1,1] 2 3
22%
1 1 2 3
πŸ‘117❀2🀩1
✌️ Top Front-End Tools Of 2023

Who doesn’t love a good front-end tool? In this roundup, you’ll find useful front-end tools that were popular last year and will help you speed up your development workflow. Let’s dive in!

Louis
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘12❀75🀩3
❓ CHALLENGE


function getArr() {
return Array.from(arguments);
}

const result = getArr(...[1, 2, 3]);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘1
What is the output?
Anonymous Quiz
22%
Error
31%
[[1],[2],[3]]
45%
[1,2,3]
2%
[1]
16πŸ‘11❀6πŸ€”6