JavaScript
32.1K subscribers
1.06K photos
10 videos
33 files
737 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
πŸ€”7🀣4❀3πŸ‘3πŸ”₯1
🀟 Execa 9.0: The Better child_process Gets Even Better

Less shell-oriented than zx, execa focuses on making executing external commands secure, cross-platform, and easy to debug. v9 lets you make commands iterable so you can process their output on the fly, map/filter both input and output, pipe multiple commands, and more. GitHub repo.

EHMICKEY, SORHUS, ET AL.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘5❀2πŸ”₯2🀣2🀩1
CHALLENGE

function Shape() {}
function Circle(radius) {}
Circle.prototype = Object.create(Shape.prototype);
const shape = new Shape();
console.log(shape instanceof Circle);
🀣6❀3πŸ”₯3πŸ‘1
What is the output?
Anonymous Quiz
33%
false
43%
true
15%
undefined
9%
ReferenceError
πŸ‘13πŸ€”10🀩4❀3🀣2πŸ”₯1
πŸ“Œ #688 - JavaScript Weekly
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘9❀3πŸ”₯2🀩2🀣1
To continue delivering more exciting stories, we're kindly asking telegram premium users to help us take things to the next level.

https://t.iss.one/javascript?boost
❀9πŸ‘2πŸ”₯2🀣1
CHALLENGE

function Animal() {}
const dog = new Animal();
console.log(dog.constructor === Animal);
πŸ‘5πŸ”₯2❀1
πŸ‘13πŸ€”8❀7🀩5πŸ”₯1
πŸ“„βœŒοΈ How to Document Your JavaScript Package

You’ve written some useful code, you want to distribute it.. what next? Useful docs! The Deno team demonstrates the value of JSDoc and writing documentation alongside your usual source code.

THE DENO TEAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❀8πŸ‘2🀩2πŸ€”1🀣1
CHALLENGE

var foo = {};
var bar = Object.create(foo);

foo.a = 1;

console.log(bar.a);
❀4πŸ”₯2
What is the output?
Anonymous Quiz
55%
1
13%
null
28%
undefined
5%
Error
πŸ‘19πŸ€”6🀩5πŸ”₯1
πŸ•ΉοΈ Athena Crisis: A Quality, JS-Powered Game

A commercial, turn-based strategy game available on the Steam Store, but now with an open sourced engine and tooling. The game is published by Null, an indie game publisher founded by GitHub cofounder Chris Wanstrath.

CHRISTOPH NAKAZAWA
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘11❀4πŸ”₯1🀩1
CHALLENGE

function Person() {}

var person = new Person();

console.log(person instanceof Person);
console.log(person instanceof Object);
❀5πŸ”₯2
πŸ‘15❀7πŸ”₯4🀩4
πŸ“– Code Screenshot: A VS Code Extension to Create Code Screenshots

It basically loads your code into this site (which you can use directly, if you'd rather not install an extension) where you can tweak settings/theme and export to either a PNG or SVG.

VKRSI / VISUAL STUDIO MARKETPLACE
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘7πŸ€”2❀1πŸ”₯1
πŸ“Έ πŸ˜‰Angular 18 is EXACTLY what we needed

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

function X() {}
X.prototype.getValue = function() {
return this.value;
};

function Y() {
this.value = 42;
}
Y.prototype = Object.create(X.prototype);
Y.prototype.constructor = Y;

var y = new Y();
console.log(y.getValue());
❀8πŸ€”7πŸ”₯4πŸ‘3🀣3
What is the output?
Anonymous Quiz
66%
42
22%
undefinied
8%
Error
5%
null
πŸ‘6❀5πŸ”₯5
🌲 GraphQL Yoga: A Full-Featured GraphQL Server

Create a schema, spin up a server, and you’re good to go (then you get to wire everything up). Supports GraphQL subscriptions via SSE. Designed to run across numerous environments from Node to AWS Lambda, Deno, Bun etc. GitHub repo.

THE GUILD
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘7πŸ”₯2πŸ€”2❀1
CHALLENGE

function A() {}
A.prototype.value = 1;

function B() {}
B.prototype = new A();

B.prototype.value = 2;

var b = new B();
console.log(b.value);
πŸ‘7❀3πŸ”₯2