JavaScript
32.2K subscribers
1.08K photos
10 videos
33 files
761 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
❀3πŸ‘3πŸ€”2🀩2
CHALLENGE

const x = 5;
const y = 10;

const obj = {
x,
y,
z: x + y,
calculate() {
return this.x * this.y;
},
[x + y]: 'computed'
};

console.log(obj.calculate() + obj[15] + obj.z);
❀3
❀10
CHALLENGE

const curry = (fn) => {
return function curried(...args) {
if (args.length >= fn.length) {
return fn.apply(this, args);
}
return (...nextArgs) => curried(...args, ...nextArgs);
};
};

const multiply = (a, b, c) => a * b * c;
const curriedMultiply = curry(multiply);

const step1 = curriedMultiply(2);
const step2 = step1(3);
const result = step2(4);

console.log(result);
What is the output?
Anonymous Quiz
18%
function
19%
9
46%
24
17%
undefined
πŸ‘3❀2
CHALLENGE

const a = { x: 1 };
const b = a;
const c = { x: 1 };

b.x = 2;
const d = b;
d.x = 3;

console.log(a.x);
console.log(b.x);
console.log(c.x);
console.log(a === b);
console.log(a === c);
❀3
❀6πŸ‘4
⚠️ πŸ”΅ Denial of Service and Source Code Exposure in React Server Components

Security researchers have found and disclosed two additional vulnerabilities in React Server Components while attempting to exploit the patches in last week’s critical vulnerability.

If you already updated for the Critical Security Vulnerability last week, you will need to update again.

If you updated to 19.0.2, 19.1.3, and 19.2.2, these are incomplete and you will need to update again.

December 11, 2025 by The React Team
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3πŸ€”2
CHALLENGE

class Subject {
constructor() {
this.observers = [];
}
attach(observer) {
this.observers.push(observer);
}
notify(data) {
this.observers.forEach(obs => obs.update(data));
}
}

const subject = new Subject();
subject.attach({ update: (d) => console.log(d * 2) });
subject.attach({ update: (d) => console.log(d + 5) });
subject.notify(10);
❀1
What is the output?
Anonymous Quiz
29%
20 25
25%
10 15
14%
15 20
31%
20 15
πŸ‘4❀2🀩1
πŸ‘€ Many Devs blame Vercel for Next.js-related React security vulnerabilities.

Because making new frameworks like Next.js is relatively easy nowadays, someone with enough social influence can literally destroy Vercel's business by popularising some other framework, which, by the way, would have nearly identical problems anyway, because this was mostly the React problem itself.

Tigran Bayburtsyan
Please open Telegram to view this post
VIEW IN TELEGRAM
❀4πŸ€”2
CHALLENGE

const obj = { a: 1, b: 2, c: 3 };
Object.defineProperty(obj, 'd', {
value: 4,
enumerable: false
});

const entries = Object.entries(obj);
const keys = Object.keys(obj);
const values = Object.values(obj);

console.log(entries.length + keys.length + values.length);
❀4🀩1
What is the output?
Anonymous Quiz
18%
6
45%
12
26%
9
11%
10
πŸ‘5
πŸ‘€ Useful Patterns for Building HTML Tools

In many situations, you don’t need a full-on framework to build useful tools; just HTML, JavaScript and CSS in a single file will do the job fine. Simon’s become a bit of an expert by rolling out many such tools using LLMs, and shares his process and practices here. More please!

Simon Willison
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3πŸ‘1