β€10π2
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);π4β€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
What is the output?
Anonymous Quiz
18%
2 2 1 false false
46%
3 3 1 true false
26%
1 2 1 true false
10%
3 3 3 true true
β€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
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
π4π€2β€1
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
π4β€2π€©1
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
β€6π€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);β€6π€©1
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
β€7π2
CHALLENGE
function Vehicle(type) {
this.type = type;
}
Vehicle.prototype.wheels = 4;
Vehicle.prototype.getInfo = function() {
return `${this.type}: ${this.wheels}`;
};
const car = new Vehicle('Car');
const bike = Object.create(car);
bike.type = 'Bike';
bike.wheels = 2;
console.log(car.getInfo() + ' | ' + bike.getInfo());β€7
What is the output?
Anonymous Quiz
49%
Car: 4 | Bike: 2
25%
Car: 4 | Bike: undefined
22%
TypeError: bike.getInfo is not a function
3%
Car: 4 | undefined: 2
The Remix Store is a swag store for the Remix project and its codebase provides a powerful example of how Remixβs own core team builds apps with Remix and Hydrogen.
Brooks Lybrand and the Remix Team
Please open Telegram to view this post
VIEW IN TELEGRAM
β€4π1π₯1
CHALLENGE
const x = null;
const y = undefined;
const z = 0;
const result1 = x ?? 'default';
const result2 = y ?? 'default';
const result3 = z ?? 'default';
const combined = result1 ? result2 ? result3 : 'B' : 'C';
console.log(combined);
β€3π1π₯1
π₯4π3β€2
CHALLENGE
function Vehicle(type) {
this.type = type;
this.wheels = 4;
}
Vehicle.prototype.describe = function() {
return `${this.type} with ${this.wheels} wheels`;
};
const car = new Vehicle('Car');
const bike = Vehicle('Bike');
console.log(car.describe());
console.log(typeof bike);
console.log(globalThis.type);What is the output?
Anonymous Quiz
27%
Car with 4 wheels undefined Bike
35%
Car with 4 wheels undefined undefined
27%
Car with 4 wheels object undefined
11%
Car with 4 wheels object Bike
π2β€1π₯1
CHALLENGE
const json = '{"name":"Sarah","age":25,"active":true}';
const obj = JSON.parse(json);
obj.name = "Emma";
obj.age++;
const json2 = JSON.stringify(obj);
const obj2 = JSON.parse(json2);
obj.age = 100;
console.log(obj2.age);π€5β€3π₯2π1