JavaScript
32K subscribers
1.02K photos
9 videos
33 files
704 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
πŸ‘€ 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
πŸ’» Deno v. Oracle: Cancelling the JavaScript Trademark

Did you know Oracle formally owns the β€˜JavaScript’ trademark? There have been a few efforts to change this over the years (most recently via this open letter) but Oracle isn’t listening. The Deno team has now formally filed a petition to cancel the trademark which Deno claims is fradulent because Oracle used screenshots of Node.js, a project Oracle doesn’t even own, as evidence of the trademark’s use.

Deno
Please open Telegram to view this post
VIEW IN TELEGRAM
❀6πŸ‘6πŸ”₯5
CHALLENGE ❓


const obj = {
a: 1,
b: function() {
return this.a;
}
};
const b = obj.b;
console.log(b());
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘11
What is the output?
Anonymous Quiz
59%
1
30%
undefined
6%
null
6%
Error
πŸ‘17πŸ€”5πŸ”₯3❀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
πŸ‘6❀4πŸ”₯2
CHALLENGE ❓

function* gen() {
yield 1;
yield 2;
return 3;
}
const g = gen();
console.log([...g]);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3πŸ‘2
What is the output?
Anonymous Quiz
54%
[1,2,3]
22%
[1,2]
10%
[1]
14%
Error
πŸ‘7πŸ”₯5❀3
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘5❀2πŸ”₯1
CHALLENGE ❓


const nums = [1, 2, 3];
const res = nums.reduce((acc, val) => acc + val, "");
console.log(typeof res);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6