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
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
What is the output?
Anonymous Quiz
16%
This will result in an error.
28%
{ a: 1, e: 1, i: 1, o: 2, u: 2 }
19%
{ a: 0, e: 1, i: 0, o: 1, u: 1 }
37%
{ a: 1, e: 2, o: 4, u: 1 }
❤13👍6🤔4
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
🤔6 3❤2👍2🤩1
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
What is the output?
Anonymous Quiz
12%
"uoa eo o"
53%
"uoeaoooe"
12%
"uo er o"
24%
This will result in an error.
👍11 9🤔4❤2🤩1
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
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
❤11👍6 6🤔5
Please open Telegram to view this post
VIEW IN TELEGRAM
❤20🤣18👍6🤩5 1
Please open Telegram to view this post
VIEW IN TELEGRAM
❤12 7👍4🤔4
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
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7👍7 6
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👍8 8🤔3
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
👍10 5❤3
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
👍3 2
What is thte output?
Anonymous Quiz
22%
{ a: 6, b: 4, c: 3, d: 2 }
65%
{ a: 8, b: 4, c: 2, d: 1 }
10%
{ a: 7, b: 4, c: 2, d: 1 }
4%
{ a: 7, b: 5, c: 2, d: 1 }
👍13❤7🤩5 4
Set was introduced back in ECMAScript 2015 (a.k.a. ES6) but only had some basic methods built-in. Phil looks at what sets can do and what new features are on the way.
PHIL NASH
Please open Telegram to view this post
VIEW IN TELEGRAM
👍14 5❤2
const string = "abacabadabacaba";
const result = string.split("a").length - 1;
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍10