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
πŸ“„βœŒοΈ 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
What is the output?
Anonymous Quiz
14%
1
66%
2
11%
Error
9%
undefined
❀11πŸ‘5πŸ”₯5
πŸ˜† True...
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣73πŸ‘4πŸ€”3❀1
CHALLENGE

let obj = { a: 1 };
let proto = { b: 2 };

Object.setPrototypeOf(obj, proto);

for (let key in obj) {
console.log(key);
}
πŸ‘3πŸ€”2
What is the output?
Anonymous Quiz
12%
none
55%
a, b
10%
b
23%
a
πŸ”₯13πŸ‘9πŸ€”5❀4
🀟 Node v22.2.0 (Current) Released

A less significant release, feature-wise, than 22.0 or 22.1, but lots of little bug fixes, tweaks around core dev experience, getting Node’s built-in ESLint rules ready for ESLint v9, and the ՝--inspect-wait՝ flag to make the debugger wait for a connection in order to debug code from the very start of execution.

MICHAΓ‹L ZASSO
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6❀4πŸ”₯2🀩2
CHALLENGE

let obj = { a: 1 };
Object.freeze(obj);

console.log(Object.isFrozen(obj));
console.log(obj.a = 2);
console.log(obj.a);
❀5πŸ”₯5πŸ‘1πŸ€”1
πŸ€”19πŸ‘6❀3πŸ”₯2
🀟 SOME UPDATES
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘14❀1πŸ”₯1🀩1