What is the output?
Anonymous Quiz
47%
swimming undefined method
21%
flying swimming
18%
undefined method swimming
14%
swimming flying
โค5๐ค3๐1๐คฃ1
Iโm a sucker for a big table of data and this is about as big as it gets when it comes to JavaScript engines. See how various engines compare, sort them by performance, or click on an engineโs name to learn more about its development, history, and end users. The projectโs repo also has Dockerfiles for trying each of them out.
Ivan Krasilnikov
Please open Telegram to view this post
VIEW IN TELEGRAM
โค7๐3
- Iterator Sequencing progressed to stage 4.
- Joint Iteration, Iterator Join, and Await dictionary of Promises go stage 2.7.
- The Intl Unit Protocol also reached stage 1 to provide a way to annotate quantities with the units being measured.
- Typed Array Find Within progressed to stage 1. Think a native indexOf-type method for TypedArrays.
Note: Learn more about what the TC39 stages mean here.
Please open Telegram to view this post
VIEW IN TELEGRAM
โค9๐ฅ4๐2
A thirty-minute talk from JSNation earlier this year where TSC member Matteo Collina presented an update on Nodeโs still-growing popularity, release schedule, security, recent performance enhancements, the permissions system, and more.
GitNation
Please open Telegram to view this post
VIEW IN TELEGRAM
โค9๐ฅ2๐1
CHALLENGE
console.log(typeof myFunction);
console.log(typeof myVar);
console.log(typeof myLet);
console.log(typeof myConst);
var myVar = 'hello';
let myLet = 'world';
const myConst = 'test';
function myFunction() {
return 'hoisted';
}
console.log(myFunction());
console.log(myVar);
โค4๐คฃ1
When the author teased a demo of this on X a few weeks ago, I wasnโt sure if it would get released, but here it is. A new way to put together native apps using React and the popular lightweight GUI library Dear ImGui.
Tzvetan Mikov
Please open Telegram to view this post
VIEW IN TELEGRAM
โค4๐1
Please open Telegram to view this post
VIEW IN TELEGRAM
๐ฅ4โค2๐1
Please open Telegram to view this post
VIEW IN TELEGRAM
โค3๐3๐ฅ1๐ค1
The Google team has gone all out with this significant release of its popular JavaScript framework. Theyโve put together a retro game-themed adventure-based tour of whatโs new, along with top notch videos showing off features like its new signal-based approach to forms, MCP server for AI-powered workflows, library of headless components focused on accessibility, and even a new โAngular AI Tutorโ to get up to speed.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐6โค3๐ค3
CHALLENGE
const user = {
profile: {
settings: {
theme: 'dark',
notifications: null
}
}
};
const result1 = user?.profile?.settings?.theme;
const result2 = user?.profile?.settings?.notifications?.email;
const result3 = user?.profile?.preferences?.language ?? 'en';
const result4 = user?.profile?.settings?.notifications?.push?.('test');
console.log(result1, result2, result3, result4);๐ค3
What is the output?
Anonymous Quiz
43%
dark undefined en undefined
27%
dark undefined en null
17%
undefined undefined en undefined
13%
dark null en undefined
๐ค3
Examples of many common algorithms (e.g. bit manipulation, Pascalโs triangle, Hamming distance) and data structures (e.g. linked lists, tries, graphs) with explanations. Available in eighteen other written languages too.
Oleksii Trekhleb et al.
Please open Telegram to view this post
VIEW IN TELEGRAM
โค10
CHALLENGE
const original = {
name: 'Sarah',
hobbies: ['reading', 'coding'],
address: { city: 'Portland', zip: 97201 }
};
const shallow = { ...original };
const deep = JSON.parse(JSON.stringify(original));
shallow.name = 'Emma';
shallow.hobbies.push('hiking');
shallow.address.city = 'Seattle';
deep.hobbies.push('swimming');
deep.address.zip = 98101;
console.log(original.hobbies.length, original.address.city);โค7๐ค1
โค2
Esteemed browser and Web standards expert Alex Russell looks at the state of client-side Web performance, what sort of bandwidth you should be taking into account, what devices people are using, and warns against ever-growing JavaScript bundle sizes. A lot of data here.
Alex Russell
Please open Telegram to view this post
VIEW IN TELEGRAM
๐5โค1๐ค1
CHALLENGE
class SimpleObservable {
constructor(subscribeFn) {
this.subscribeFn = subscribeFn;
}
subscribe(observer) {
return this.subscribeFn(observer);
}
}
const obs = new SimpleObservable(observer => {
observer.next('first');
observer.next('second');
observer.complete();
});
const results = [];
obs.subscribe({
next: val => results.push(val),
complete: () => results.push('done')
});
console.log(results.join('-'));โค4๐1๐ค1
What is the output?
Anonymous Quiz
48%
first-second-done
39%
first-second-complete
11%
first-done-second
3%
done-first-second
Get a Google Calendar-style experience in your own apps. Has connectors for React, Vue and Angular, but can be used with plain JavaScript too. The base version is MIT licensed, but thereโs a commercial version too with extra features.
Adam Shaw
Please open Telegram to view this post
VIEW IN TELEGRAM
โค10๐คฉ1
CHALLENGE
const arr = [1, 2, 3];
const obj = { valueOf: () => 4, toString: () => '5' };
const result1 = arr + obj;
const result2 = +obj;
const result3 = String(obj);
const result4 = obj == 4;
const result5 = obj === 4;
console.log(`${result1}|${result2}|${result3}|${result4}|${result5}`);
const weird = [] + [] + 'hello';
const weirder = [] + {} + [];
const weirdest = {} + [] + {};
console.log(`${weird}|${weirder}|${weirdest}`);
const final = !!'0' + !!'' + !!null + !!undefined;
console.log(final);