JavaScript
31.9K subscribers
1.02K photos
9 videos
33 files
701 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
πŸ‘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
πŸ‘ Linkify 4.2: Link Up URLs, Emails, and More in Plain Text

Given plain text containing things like links, hashtags, IP addresses, and email addresses, this will generate the correct code to display it on the Web.

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


class MyClass {
constructor() {
this.a = 10;
}
}
MyClass.prototype.b = 20;
const obj = new MyClass();
delete obj.b;
console.log(obj.b);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘8❀5
What is the output?
Anonymous Quiz
43%
undefined
33%
20
12%
Error
12%
null
πŸ€”17πŸ‘7❀2
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘5❀3
CHALLENGE

const symbol1 = Symbol('desc1');
const symbol2 = Symbol('desc2');
const myObject = {};
myObject[symbol1] = 'Value1';
myObject[symbol2] = 'Value2';
let output = '';
for (let key in myObject) {
output += myObject[key] + ' ';
}
output += Object.getOwnPropertySymbols(myObject).length;
console.log(output);
πŸ‘8❀4
What is the output?
Anonymous Quiz
47%
Value1 Value2 2
29%
2
19%
Value1 Value2 0
6%
0
πŸ€”13πŸ‘11❀6
CHALLENGE

const numbers = [2, 4, 6, 8];
const sum = numbers.reduce((acc, num) => acc + num, 0);
console.log(sum);
πŸ‘6πŸ€”5