JavaScript
32.1K subscribers
1.05K photos
10 videos
33 files
726 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
πŸ‘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
CHALLENGE

let obj = {};
Object.defineProperty(obj, 'a', {
value: 1,
enumerable: true
});

let clone = Object.create(
Object.getPrototypeOf(obj),
Object.getOwnPropertyDescriptors(obj)
);

console.log(clone.a);
console.log(clone.hasOwnProperty('a'));
πŸ‘12❀3πŸ”₯3
πŸ‘11❀3πŸ”₯2
QUICK BITS:

🀝 It hasn't been finalized yet, but the Node team is working on a Node.js Advocacy Ambassador program where the team will nominate a group of annual ambassadors to help in spreading the word about various Node.js topics.

⚠️ If you haven't taken the official Node.js Next 10 Survey yet, please do! Entries close this Friday, May 24, and your input will help steer future core team decisions.

‼️ Talking of surveys, the 2024 Stack Overflow developer survey has just gone live. It's open till June 7.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘5❀2πŸ”₯2
CHALLENGE

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

Object.defineProperty(obj, 'a', {
value: 2,
writable: false,
enumerable: true,
configurable: false
});

console.log(obj.a);
proto.a = 3;
console.log(obj.a);
πŸ”₯7
What is the output?
Anonymous Quiz
19%
1, 2
43%
2, 3
12%
3, 3
25%
2, 2
πŸ‘15πŸ€”9❀5🀩4πŸ”₯3
✌️⚑️ IN BRIEF & SOME RELEASES
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯6πŸ‘2❀1