CHALLENGE
function outer() {
var x = 1;
function inner() {
var x = 2;
function deeper() {
console.log(x);
}
return deeper;
}
return inner();
}
const fn = outer();
fn();
2π₯8π€5π4
π5β€3π₯2
Fastifyβs Matteo Collina set out to find the current state of server-side rendering performance across todayβs most popular libraries. The first attempt faced negative feedback due to implementation issues, but the showdown has been improved and re-run.
Matteo Collina
Please open Telegram to view this post
VIEW IN TELEGRAM
1β€4π3π₯1
CHALLENGE
const obj = Object.freeze({
a: [1, 2, 3],
b: {
c: 4
}
});
obj.a.push(4);
obj.b.c = 5;
console.log(obj.a);
console.log(obj.b.c);
π6β€4π₯2π€©1
What is the output?
Anonymous Quiz
50%
[1, 2, 3, 4], 5
19%
[1, 2, 3], 5
25%
[1, 2, 3, 4], 4
6%
[1, 2, 3], 5
2π€£14π9π₯6β€3π€2
After a long period of seeming to merely be on life support, work on Express picked up significantly earlier this year with a big plan to push βExpress forward.β The first fruit of this process is now beginning to appear with v5.0. Node 18 is now the minimum support version, there are error handling improvements, improvements to the projectβs tooling, the introduction of a Threat Model, and updates to many of its dependencies.
Wesley Todd
Please open Telegram to view this post
VIEW IN TELEGRAM
1β€11π6π₯1π€©1
CHALLENGE
async function process() {
console.log('Start');
await new Promise(resolve => setTimeout(resolve, 0));
console.log('Middle');
return 'Done';
}
process().then(result => console.log(result));
console.log('End');
π13π€7π₯1
What is the output?
Anonymous Quiz
22%
Start, Middle, End, Done
15%
Start, End, Done, Middle
25%
Start, End, Middle, Done
38%
Start, Middle, Done, End
π16π€15β€7π₯2
Please open Telegram to view this post
VIEW IN TELEGRAM
2π42β€27π€£14π₯10π€5
CHALLENGE
function* gen() {
yield* [1, 2, 3].map(x => x * 2);
}
const iterator = gen();
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
π5
What is the output?
Anonymous Quiz
17%
2, 4, 6, Error
23%
2, 4, 6, 12
52%
2, 4, 6, undefined
8%
2, 4, 6, 6
β€10π7π₯2π€£2
Most image libraries, such as the powerful Sharp, lean on external libraries to do the heavy lifting, but Jimp can handle BMPs, GIFs, JPEGs, PNGs, and TIFFs on its own for blurring, color adjustments, resizing, rotation, etc. GitHub repo.
jimp Contributors
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯10π6β€1π€©1
CHALLENGE
console.log(MyClass);
class MyClass {
constructor() {
this.value = 42;
}
}
β€2π1
What is the output?
Anonymous Quiz
24%
Error
26%
class MyClass { ... }
32%
undefined
18%
[Function: MyClass]
π13π₯3β€2
Node.js introduces the
--experimental-strip-types
flag for initial TypeScript support. This feature strips type annotations from .ts
files, allowing them to run without transforming TypeScript-specific syntax. Current limitations include:- Supports only inline type annotations, not features like enums or namespaces.
- Requires explicit file extensions in import and require statements.
- Enforces the use of the type keyword for type imports to avoid runtime errors.
- Disabled for TypeScript in node_modules by default.
Rafael Gonzaga
Please open Telegram to view this post
VIEW IN TELEGRAM
2π6π₯4β€2π€©1
CHALLENGE
async function foo() {
console.log('Start');
await Promise.resolve().then(() => {
console.log('Inside Promise');
});
console.log('End');
}
foo();
console.log('Outside');
π8π€5β€3π₯3
What is the output?
Anonymous Quiz
41%
Start, Inside Promise, End, Outside
14%
Start, Inside Promise, Outside, End
25%
Start, Outside, End, Inside Promise
21%
Start, Outside, Inside Promise, End
π7π€4
An interesting exploration of how things currently work with copy and pasting on the web, how different data types are treated, and what the Web Custom Formats proposal is putting forward.
Alex Harri JΓ³nsson
Please open Telegram to view this post
VIEW IN TELEGRAM
2π12β€4π₯2π€©1
real-nextjs-scalable-performance.pdf
8.9 MB
Build scalable, high-performance, and modern web applications using Next.js, the React framework for production
Michele Riva
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯7β€4π3
We just pushed ESLint v9.10.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.
- Types now included
eslint
Please open Telegram to view this post
VIEW IN TELEGRAM
2π11π₯3β€1