CHALLENGE
const a = '10';
const b = 20;
const c = '30.5';
const result = Number(a) + b + Number.parseFloat(c);
console.log(result);
π4β€2
π24π€£13π₯7π€5β€1
2024 saw the still-extremely-popular Express project awaken from a slumber, of sorts, with work being made to update things to modern standards, a security audit, and the release of Express v5. Here, the team explains whatβs been going on behind the scenes to get Express back on the tracks, as well as a βbold vision for 2025.β
Express Technical Committee
Please open Telegram to view this post
VIEW IN TELEGRAM
β€11π4π₯2
CHALLENGE
function multiply(a, b = a * 2) {
return a * b;
}
console.log(multiply(3));
π10π₯4
π13π€11β€5π₯2π€£1
More accurately, itβs a set of Node bindings for a Rust-powered non-browser implementation of the Web Audio API.
IRCAM β Centre Pompidou
Please open Telegram to view this post
VIEW IN TELEGRAM
β€5π₯4π3
CHALLENGE
class Vehicle {
static type() {
return "Generic Vehicle";
}
}
class Car extends Vehicle {
static type() {
return "Car";
}
}
console.log(Car.type());
π11
π€£16π€8π₯4β€3π€©2π1
Yjs is a CRDT (Conflict-free replicated data type) library for building collaborative and local-first apps. CDRTs are powerful but can be tricky to βgetβ which is why this new interactive Yjs tutorial is so valuable. A great way to learn about building collaborative, syncing webapps from the ground up.
Jamsocket
Please open Telegram to view this post
VIEW IN TELEGRAM
π4β€2π₯1
CHALLENGE
function trickyArgs(a, b, c) {
arguments[0] = 10;
arguments[1] = 20;
arguments[2] = 30;
console.log(a + b + c);
}
trickyArgs(1, 2, 3);
π€18π7β€1
π€37π€£17π11β€3π₯2
Provides move generation, validation, piece placement, check/checkmate/stalemate detection β "everything but the AI!" v1.0 offers a rewrite to TypeScript and a variety of enhancements.
Jeff Hlywa
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β€5π₯1
CHALLENGE
function* numberGenerator() {
for (let i = 0; i < 3; i++) {
yield i * 2;
}
}
const numbers = [...numberGenerator()];
console.log(numbers);
π1
π20π€£7β€3π₯3
In order to feel more confident about my tsconfig.json, I decided to go through the tsconfig.json documentation, collect all commonly used options and describe them below...
Axel Rauschmayer
Please open Telegram to view this post
VIEW IN TELEGRAM
β€5π5π₯4
CHALLENGE
function getNextWeekday(dateString) {
const date = new Date(dateString);
const day = date.getDay();
const diff = (day === 0 ? 1 : 8) - day;
date.setDate(date.getDate() + diff);
return date.toDateString();
}
console.log(getNextWeekday('2023-10-20'));
β€13π3π₯3π€2π€©1
What is the output?
Anonymous Quiz
31%
'Mon Oct 23 2023'
37%
'Fri Oct 20 2023'
24%
'Sat Oct 21 2023'
8%
'Sun Oct 22 2023'
π€27π7β€5π₯1π€©1
CHALLENGE
var obj = {
a: 10,
b: 20
};
with (obj) {
var result = a + b;
}
console.log(result);
π₯6π2π€2
π€16π12π€£8β€3
Now almost 12 years old, NodeBB continues to offer a classic forum experience in a modern Node.js-shaped guise. The big update for v4 is support for federation between NodeBB instances and the wider fediverse generally. Note that the open source project (repo) is GPL licensed with NodeBB Inc providing a hosted service.
NodeBB, Inc.
Please open Telegram to view this post
VIEW IN TELEGRAM
π7β€2π₯1
CHALLENGE
const numbers = [2, 4, 6, 8, 10];
const allEven = numbers.every(function(num) {
return num % 2 === 0;
});
console.log(allEven);
π11β€2