JavaScript
32K subscribers
1.04K photos
10 videos
33 files
717 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
🀣12πŸ‘8🀩5πŸ”₯3
SPONSORED BY Lantern Cloud πŸ‘―β€β™€οΈ
Vector database on top of Postgres for AI

This is a treasure!

✌️ Do you have any (old or new) Javascript book laying around? We want to see some pictures.

Share with us
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘13❀4πŸ”₯2
SPONSORED BY Lantern Cloud πŸ‘―β€β™€οΈ
Vector database on top of Postgres for AI

❓ CHALLENGE

function* numberDoubler(arr) {
for (const num of arr) {
yield num * 2;
}
}

const result = [...numberDoubler([1, 2, 3])].some(n => n % 4 === 0);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
What is the output?
Anonymous Quiz
23%
undefined
24%
false
16%
Error
37%
true
πŸ‘11πŸ€”5πŸ”₯3❀1
This media is not supported in your browser
VIEW IN TELEGRAM
SPONSORED BY Lantern Cloud πŸ‘―β€β™€οΈ
Vector database on top of Postgres for AI

πŸ†’ Projects on roadmap.sh

Projects are a fantastic way to validate your learning and solidify your knowledge. We're thrilled to introduce projects across all of our 50+ roadmaps!

We're starting with the backend roadmap, which now features 18 project ideas of varying difficulty levels. We'll gradually add projects to all our roadmaps making our roadmaps even more powerful.

Kamran Ahmed
Please open Telegram to view this post
VIEW IN TELEGRAM
❀10πŸ‘2🀩1
SPONSORED BY Lantern Cloud πŸ‘―β€β™€οΈ
Vector database on top of Postgres for AI

❓ CHALLENGE

function* idGenerator() {
let id = 1;
while (true) {
yield id++;
}
}

const gen = idGenerator();
const ids = Array.from({ length: 3 }, () => gen.next().value).map(id => `ID${id}`);

console.log(ids);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3
πŸ‘8πŸ€”6πŸ”₯4❀1
SPONSORED BY Lantern Cloud πŸ‘―β€β™€οΈ
Vector database on top of Postgres for AI

πŸ’» What we got wrong about HTTP imports

Ryan Dahl
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3πŸ‘3πŸ”₯1
SPONSORED BY Lantern Cloud πŸ‘―β€β™€οΈ
Vector database on top of Postgres for AI

❓ CHALLENGE

function* fibGenerator() {
let a = 0, b = 1;
while (true) {
let next = a + b;
a = b;
b = next;
yield next;
}
}

const gen = fibGenerator();
const fibArray = Array.from({ length: 5 }, () => gen.next().value);

console.log(fibArray);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀4🀩1
πŸ”₯7πŸ‘6
SPONSORED BY Lantern Cloud πŸ‘―β€β™€οΈ
Vector database on top of Postgres for AI

πŸ€” JS-PyTorch: A PyTorch-Like Library for JavaScript

Recently renamed from JS-Torch, this brings some of the magic from Python’s popular PyTorch library to JavaScript for training and testing neural networks in particular. We linked to it earlier this year, but it has added GPU support thanks to GPU.js.

Eduardo Leao
Please open Telegram to view this post
VIEW IN TELEGRAM
❀6πŸ‘3πŸ”₯2
CHALLENGE

function* alternatingGenerator() {
yield 1;
yield 2;
yield 3;
}

const gen = alternatingGenerator();
const result = [gen.next().value, gen.next().value, gen.next().value].reduce((acc, curr) => acc + curr, 0);

console.log(result);
πŸ‘1
What is the output?
Anonymous Quiz
23%
0
33%
Error
23%
123
21%
6
πŸ‘7❀6πŸ”₯4🀩2
🌲 Neon: Rust Bindings for Writing Node.js Modules

Or, as they put it: β€œElectrify Node.js with the power of Rust.” Neon makes it relatively easy to write code in the popular, high speed systems language and run it from Node, much like any other native extension.

Neon Contributors
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘7πŸ”₯4❀2
CHALLENGE

function* reverseGenerator(arr) {
for (let i = arr.length - 1; i >= 0; i--) {
yield arr[i];
}
}

const result = [...reverseGenerator([1, 2, 3, 4, 5])].join('');

console.log(result);
πŸ‘3πŸ€”1
πŸ‘16❀5πŸ”₯4
🀟 Node.js Toolbox: A Way to Find and Compare Node.js Packages

A fantastic community maintained resource that presents a category-based way to find packages and libraries. For example, you can check out HTTP frameworks, browser testing, query builders, and more. You can compare libraries in various ways, see their download count, or edit/submit listings yourself.

Maxim Orlov
Please open Telegram to view this post
VIEW IN TELEGRAM
❀6πŸ”₯3πŸ‘2
CHALLENGE

const weakMap = new WeakMap();
const obj1 = {};
const obj2 = {};

weakMap.set(obj1, 'value1');
weakMap.set(obj2, 'value2');

const arr = [obj1, obj2];
const result = arr.map(obj => weakMap.get(obj)).join(', ');

console.log(result);
πŸ‘3❀1
πŸ‘14❀8πŸ”₯7
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯11❀5πŸ‘2πŸ€”2
CHALLENGE

function* idGenerator() {
let id = 1;
while (true) {
yield id++;
}
}

const gen = idGenerator();
const weakMap = new WeakMap();
const objs = [{}, {}, {}];

objs.forEach(obj => weakMap.set(obj, gen.next().value));

const result = objs.map(obj => weakMap.get(obj)).filter(id => id % 2 === 0);

console.log(result);
πŸ‘5❀4πŸ”₯2