TGViewer
Channel Public Channel
JavaScript

JavaScript

@javascript

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
Subscribers
31.1K
Photos
1.2K
Videos
10
Links
895

Showing posts older than #2819 · Back to latest

Older Posts 20 shown
Post #2818 3.82K
✌️ Over 150 Algorithms and Data Structures Demonstrated in JS

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.
  • ❤ 11
Post #2817 3.88K
  • 🤔 4
  • 👍 1
Post #2816 3.97K
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);
  • 🤔 8
  • 👍 1
Post #2815 4.11K
😆
  • 🤣 56
  • 🔥 3
  • ❤ 2
Post #2814 4.64K
📸 Google Announces Angular v21

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.

Google
  • 👍 6
  • ❤ 3
  • 🤔 3
Post #2812 4.99K
😮 vis-timeline 8.4 – Interactive control to visualize data across time, as shown above. Numerous examples here.
  • 🔥 4
  • ❤ 2
  • 👍 1
Post #2810 4.77K
  • ❤ 7
  • 🔥 5
  • 👍 1
Post #2809 4.39K
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);
  • ❤ 5
  • 🤣 3
  • 👍 1
Post #2808 4.33K
😉 The State of Node.js in 2025, Explained

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
  • ❤ 9
  • 🔥 2
  • 👍 1
Post #2807 4.3K
✌️ This week's TC39 meeting: The Ecma TC39 committee (the group behind the design of ECMAScript / JavaScript) met up for the 111th time this week (seen above) to discuss language proposals. The meeting notes won't be published for a few weeks, but several proposals did see some progress:

- 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.
  • ❤ 10
  • 🔥 4
  • 👍 2
Post #2806 3.94K
✌️ JavaScript Engines Zoo: Learn About Over 100 JS Engines

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
  • ❤ 7
  • 👍 3
Post #2805 3.76K
  • ❤ 6
  • 🤔 3
  • 👍 2
  • 🤣 1
Post #2804 4.09K
CHALLENGE

const Flyable = {
fly() { return 'flying'; }
};

const Swimmable = {
swim() { return 'swimming'; }
};

function applyMixins(target, ...mixins) {
mixins.forEach(mixin => {
Object.assign(target.prototype, mixin);
});
}

class Bird {}
class Fish {}

applyMixins(Bird, Flyable, Swimmable);
applyMixins(Fish, Swimmable);

const eagle = new Bird();
const shark = new Fish();

console.log(eagle.swim());
console.log(shark.fly?.() || 'undefined method');
  • ❤ 5
  • 🔥 1
Post #2802 3.78K
  • ❤ 4
  • 🔥 2
  • 👍 1
Post #2801 4.06K
CHALLENGE

const target = { name: 'Sarah', age: 25 };

const handler = {
get(obj, prop) {
if (prop in obj) {
return obj[prop];
}
return `Property '${prop}' not found`;
},
set(obj, prop, value) {
obj[prop] = value.toString().toUpperCase();
return true;
}
};

const proxy = new Proxy(target, handler);
proxy.city = 'boston';
console.log(proxy.name);
console.log(proxy.city);
console.log(proxy.country);
  • 🔥 1
Post #2800 3.67K
👀 In Your URL is Your State, Ahmad Alfy looks at the 'overlooked power' and elegance of using the URL's various components for representing state.
  • 🔥 6
  • ❤ 1
Post #2799 4.05K
  • ❤ 7
  • 👍 2
  • 🔥 1
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →