JavaScript
32K subscribers
1.02K photos
9 videos
33 files
705 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
⛽️ npmpackage.info: Detailed Package Info on a Single Page

Give this online tool the name of an npm package and you get a quick β€˜dashboard’ style view of the project’s main statistics, covering areas like quality scores, commits, open issues, releases, bundle size, and more.

Shrinath Nayak
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘4πŸ”₯3❀1
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘5❀4
πŸ˜†
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣84πŸ‘6🀩6πŸ”₯2❀1
CHALLENGE ❓


const arr = [1, 2, 3];
arr[-1] = 10;
console.log(arr.length, arr[-1]);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀9πŸ‘4
What is the output?
Anonymous Quiz
26%
3, undefined
21%
4, 10
37%
3, 10
17%
Error
πŸ‘14πŸ”₯7❀6πŸ€”4
✌️ Importing a Frontend JavaScript Library Without a Build System

Many developers prefer to eschew complex, modern build processes and use JavaScript in a more old-school way. You can definitely get by without a build system, and Julia explores some ways to import libraries in such a setup.

Julia Evans
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘7πŸ”₯4❀2
CHALLENGE ❓


const x = (() => {
try {
return 10;
} finally {
return 20;
}
})();
console.log(x);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3❀1
What is the output?
Anonymous Quiz
31%
10
51%
20
13%
undefined
6%
Error
πŸ‘20🀣17πŸ€”9❀5πŸ”₯3🀩3
πŸ‘€ Viselect: Let Users Visually Select DOM Elements

If you’ve got a variety of elements and you want users to be able to select them in groups, individually, or even in multiple groups, this lets you offer that functionality easily. Can be used in a vanilla fashion or with integrations for P/React or Vue.js.

Simon Reinisch
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘10πŸ”₯3❀1
CHALLENGE ❓


const obj = {};
Object.defineProperty(obj, "prop", {
value: 42,
writable: false
});
obj.prop = 100;
console.log(obj.prop);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀1
What is the output?
Anonymous Quiz
6%
1
58%
42
6%
2
30%
Error
πŸ‘18❀4🀩4πŸ”₯1
πŸ˜†
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣48❀4πŸ‘3πŸ”₯3
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6❀4πŸ”₯3
CHALLENGE ❓


const arr = [1, 2];
arr.length = 0;
console.log(arr[0]);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘1
What is the output?
Anonymous Quiz
42%
1
8%
2
14%
Error
36%
undefined
πŸ‘17🀣15❀4🀩4πŸ”₯1
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ€”8πŸ‘2πŸ”₯1
CHALLENGE ❓


const obj = { a: 1 };
Object.seal(obj);
obj.b = 2;
console.log(obj.b);
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣11❀5πŸ‘3
What is the output?
Anonymous Quiz
30%
undefined
53%
2
13%
Error
5%
null
πŸ”₯15πŸ‘8🀣4❀2🀩2
βž• Math.js 14.0: An Extensive Math Library for Node and Browsers

Work with complex numbers, fractions, units, matrices, symbolic computation, etc. A long standing library now, but continuing to get frequent updates. GitHub repo.

Jos de Jong
Please open Telegram to view this post
VIEW IN TELEGRAM
❀10πŸ”₯2πŸ‘1
CHALLENGE ❓


console.log(0.1 + 0.2 === 0.3);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘14πŸ€”7❀3
What is the output?
Anonymous Quiz
48%
true
42%
false
5%
Error
4%
undefined
🀣38πŸ€”26πŸ‘8πŸ”₯5❀3