JavaScript
32.1K subscribers
1.06K photos
10 videos
33 files
737 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
🀟 πŸ’š The Node.js Valentine's Day Security Releases

Security releases had been expected to land in the past week for Node and they’re now here as v21.6.2 (Current), v20.11.1 (LTS), and v18.19.1 (LTS). They include fixes for a variety of vulnerabilities, including some high severity ones involving HTTP-based DoS attacks and privilege escalation.

RAFAEL GONZAGA AND MARCO IPPOLITO
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘55❀4πŸ€”1
πŸ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣82πŸ‘9❀85🀩3
❓ CHALLENGE

const numbers = [1, 2, 3, 4, 5];

const result = numbers.filter(num => num % 2 === 0)
.map(num => num ** 2)
.reduce((acc, val) => acc + val, 0);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀9πŸ‘62
What is the output?
Anonymous Quiz
18%
6
62%
20
12%
30
7%
54
12πŸ€”9❀6πŸ‘2
🀩 Tabulator: An Interactive Table and Data Grid Library

Supports all major browsers and can be used with Angular, Vue, and React if you wish. Been around for several years now, but continues to be maintained.

OLI FOLKERD
Please open Telegram to view this post
VIEW IN TELEGRAM
6❀3πŸ‘3🀣1
Please open Telegram to view this post
VIEW IN TELEGRAM
8❀6🀣5πŸ€”4πŸ‘2
❓ CHALLENGE

const string = "Hello, World! How are you?";

const result = string.match(/[aeiou]/g).reduce((acc, char) => {
acc[char] = (acc[char] || 0) + 1;
return acc;
}, {});

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6
⚠️ Node.js Developers Debate Enabling Corepack by Default and Potentially Unbundling npm

Node developers are wrestling with the decision to enable Corepack (a tool for managing package managers) by default, which has sparked a debate about the possibility of removing npm from the Node.js binary.

SARAH GOODING (SOCKET)
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ€”63❀2πŸ‘2🀩1
❓ CHALLENGE

const string = "Hello, World! How are you?";

const result = [...string.matchAll(/[aeiou]/g)]
.map(match => match[0])
.reverse()
.join("");

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
6πŸ‘4
πŸ‘119πŸ€”4❀2🀩1
😱 Labyrinthos.js: A Procedural Generator for Mazes, Etc.

The interactive demo on the homepage will give you the basic idea, but the library implements a variety of algorithms for creating mazes and terrain, including the use of Perlin noise, growing trees, spiral backtracking, and more. GitHub repo.

YANTRA WORKS
Please open Telegram to view this post
VIEW IN TELEGRAM
7πŸ‘5❀2πŸ€”2
❓ CHALLENGE

const string = "open sesame";
const result = string.split(" ").map(word => word.length);
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
9πŸ‘3❀1
What is the output?
Anonymous Quiz
23%
[4, 7]
12%
[7, 4]
11%
[3, 6]
54%
[4, 6]
❀11πŸ‘66πŸ€”5
πŸŒͺ⭐️Definitely the owner is a Github Star
Please open Telegram to view this post
VIEW IN TELEGRAM
❀20🀣18πŸ‘6🀩51
Meet Rocket Turtle πŸ‘‹ the new Node.js mascot 🀩
Please open Telegram to view this post
VIEW IN TELEGRAM
❀127πŸ‘4πŸ€”4
πŸ™‹β€β™‚οΈ Fix permissions troubles ✌️

Host: Xubuntu 23.10 (mantic)

# id
uid=1000(roman) gid=1000(roman) ...

Dockerfile:

FROM node:21.6.2-bookworm

RUN apt-get update && apt-get install sudo
RUN echo "node:root" | chpasswd && usermod -aG sudo node

USER node

#docker #node #chmod

➑️ Start Explore Backend

πŸ’Ž Sponsored
Please open Telegram to view this post
VIEW IN TELEGRAM
❀7πŸ‘76
❓ CHALLENGE


const string = "hello world";
const result = string.split("").filter((char, index) => index % 2 === 0).join("");
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀10πŸ‘88πŸ€”3
πŸŒͺ So You Think You Know Git..

GitHub co-founder Scott Chacon gave a spirited talk at FOSDEM 2024 digging into many interesting parts of git, as well as a few GitHub bits. If you’d prefer to read rather than watch, he has some blog posts covering it all too.

SCOTT CHACON
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘105❀3
❓ CHALLENGE

const string = "abacabadabacaba";
const result = string.split("").reduce((acc, val) => {
acc[val] = (acc[val] || 0) + 1;
return acc;
}, {});
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘32