JavaScript
32K subscribers
1.04K photos
10 videos
33 files
718 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
πŸ‘23πŸ”₯9❀3πŸ€”3🀩2
This media is not supported in your browser
VIEW IN TELEGRAM
⚑️ Dynamically loaded extensions in Postgres in the browser

At a recent AGI House hackathon in San Francisco, we set out to run our Postgres vector extension directly in the browser. This would allow our documentation examples and small demos to be fully executable within the browser using a Postgres instance compiled to Wasm and running on the client browser.

lantern
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯8❀4πŸ‘3🀩2πŸ€”1
CHALLENGE

const obj = { a: 1, b: 2 };
const obj2 = { ...obj, b: 3 };

const samePrototype = Object.getPrototypeOf(obj) === Object.getPrototypeOf(obj2);

console.log(samePrototype);
What is the output?
Anonymous Quiz
17%
undefined
14%
Error
35%
false
34%
true
πŸ‘16πŸ”₯6πŸ€”5❀4
🀩 BWIP-JS: A Barcode Writer in Pure JavaScript

A library that can generate barcodes using over 100 different barcode types and standards, both single and two dimensional. There is, of course, a live demo where you, too, can discover far more types of barcodes exist than you ever imagined.

Mark Warren
Please open Telegram to view this post
VIEW IN TELEGRAM
❀5πŸ”₯5πŸ‘3
CHALLENGE

function Foo() {
this.bar = 1;
}

Foo.prototype.bar = 2;

const foo = new Foo();
console.log(foo.bar);
πŸ‘5πŸ€”2
What is the output?
Anonymous Quiz
29%
1
50%
2
15%
undefined
6%
Error
πŸ€”19πŸ‘8❀5πŸ”₯2
🌲 Check the latest updates of Nairi's long article about EventLoop

β€” Unblocking EventLoop using unref() (added in Jul of 2024)

β€” A challenging interview question (added in Feb of 2024)

nairihar
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘9πŸ”₯7❀5
🌲 What is new in Node.js V22.5

In this article, we will review the notable changes introduced in the new Node.js version:

- node:sqlite module
- add matchesGlob method
- add postessageToThread method

nairihar
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘9πŸ”₯4❀3
CHALLENGE

const func = () => arguments.length;
console.log(func(1, 2, 3));
πŸ”₯2
What is the output?
Anonymous Quiz
24%
undefined
19%
TypeError
7%
0
49%
3
πŸ‘22❀5πŸ€”4πŸ”₯2🀩1
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘8πŸ€”7
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6❀1πŸ”₯1
CHALLENGE

const array = Array.from({ length: 5 }, () => Math.random() > 0.5);

console.log(array);
πŸ‘8
πŸ€”12πŸ‘8❀5🀣5
πŸ”΅ React Flow 12: Create Node-Based Editors & Interactive Diagrams

Part of xyflow, this makes it easy to create node-based UIs where you have interactive components wired together however you choose. There's a Svelte version too.

Moritz Klack and John Robb
Please open Telegram to view this post
VIEW IN TELEGRAM
❀6πŸ‘5
CHALLENGE

const obj1 = { a: 1 };
const obj2 = Object.create(obj1);
obj2.b = 2;

const result = 'a' in obj2;

console.log(result);
❀5πŸ‘4
What is the output?
Anonymous Quiz
23%
false
58%
true
15%
undefined
5%
Error
πŸ‘7❀3πŸ”₯2🀣1
πŸŒ• How to Make Complex Chrome Extensions

Spinning up a quick, simple browser extension isn’t that big of a deal nowadays, especially with tools like Extension to kick off a project. Larger extensions are a different story, so it’s neat to learn from the experiences of a team that’s built one.

Nina Torgunakova
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘5❀2πŸ”₯2🀣1
CHALLENGE

const array = [1, 2, 3];
array[-1] = 0;

console.log(array.length);
❀4πŸ‘3
What is the output?
Anonymous Quiz
53%
3
23%
4
14%
2
10%
1
πŸ‘16🀣10πŸ”₯3❀2🀩1