JavaScript
32K subscribers
1.04K photos
10 videos
33 files
718 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
Please open Telegram to view this post
VIEW IN TELEGRAM
👍54
😆
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣84👍6🤩6🔥21
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🔥76🤔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🔥42
CHALLENGE


const x = (() => {
try {
return 10;
} finally {
return 20;
}
})();
console.log(x);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍31
What is the output?
Anonymous Quiz
31%
10
51%
20
13%
undefined
6%
Error
👍20🤣17🤔95🔥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🔥31
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
👍184🤩4🔥1
😆
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣484👍3🔥3
Please open Telegram to view this post
VIEW IN TELEGRAM
👍64🔥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🤣154🤩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
🤣115👍3
What is the output?
Anonymous Quiz
30%
undefined
53%
2
13%
Error
5%
null
🔥15👍8🤣42🤩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🤔73
What is the output?
Anonymous Quiz
48%
true
42%
false
5%
Error
4%
undefined
🤣38🤔26👍8🔥53