JavaScript
31.9K subscribers
1.02K photos
9 videos
33 files
702 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
πŸ’» 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
πŸ‘13❀6πŸ”₯2
πŸ‘€ Skia Canvas 2.0: A Browserless Canvas Environment for Node

Based on Google’s Skia graphics engine and offers end results similar to Chrome’s own canvas system. It’s GPU accelerated and can render images, paths, fonts, shapes, and (almost) everything you’d expect. v2.0 adds support for WOFF/WOFF2 fonts, WEBP exporting, and more.

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


(async function() {
return await 10;
})().then(console.log);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘8
What is the output?
Anonymous Quiz
43%
10
21%
undefined
12%
Error
24%
Promise { 10 }
πŸ‘12πŸ€”3πŸ”₯2❀1
πŸ‘ Porffor

Porffor compiles JavaScript ahead-of-time to WebAssembly and native binaries.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯8❀1πŸ‘1
CHALLENGE ❓


function foo() {}
foo.prototype.bar = 42;
const obj = new foo();
foo.prototype = { bar: 100 };
console.log(obj.bar);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘7❀1
What is the output?
Anonymous Quiz
26%
42
55%
100
14%
undefined
5%
Error
πŸ€”19πŸ‘13❀5πŸ”₯2
⚑️ test262.fyi presents an interesting technical view of how different JavaScript engines fare on the official ECMAScript conformance test suite.
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3πŸ‘3πŸ”₯3
CHALLENGE ❓

const obj = {
0: "zero",
1: "one",
length: 2
};
console.log(Array.from(obj));
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘4❀1πŸ€”1
πŸ‘17❀7πŸ”₯3πŸ€”1
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯8πŸ‘4❀2
CHALLENGE ❓


const map = new Map();
map.set("key", undefined);
console.log(map.has("key"), map.get("key"));
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘7
❀12πŸ‘7πŸ”₯1🀣1