JavaScript
31.9K subscribers
1.01K photos
9 videos
33 files
693 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
CHALLENGE

var obj = {
a: 10,
b: 20
};

with (obj) {
var result = a + b;
}

console.log(result);
πŸ”₯6πŸ‘2πŸ€”2
πŸ€”16πŸ‘12🀣8❀3
🀨 NodeBB v4.0.0 Released: Node.js Powered Forums

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
What is the output?
Anonymous Quiz
81%
true
8%
undefined
7%
false
4%
TypeError
πŸ”₯16πŸ‘5πŸ€”2
πŸ‘€ ArkType 2.0: Runtime Validation Library

An easy-to-deploy solution for schema validation that can infer TypeScript definitions 1:1 and use them as optimized validators for your data, both at runtime and for immediate type-level feedback in your editor.

ArkType
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘9
CHALLENGE

const numbers = [10, 23, 45, 60, 78];
const isDivisibleByFive = numbers.some(num => num % 5 === 0);

if (isDivisibleByFive) {
console.log('Some numbers are divisible by 5');
} else {
console.log('No numbers are divisible by 5');
}
πŸ‘11
πŸ‘21❀3πŸ€”3πŸ”₯2🀣2
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘11❀3πŸ€”3πŸ”₯2🀩1
πŸ˜†
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣111πŸ‘8πŸ€”3πŸ”₯2❀1
CHALLENGE


const students = [
{ name: 'Alice', age: 20 },
{ name: 'Bob', age: 22 },
{ name: 'Charlie', age: 23 }
];

const studentToFind = { name: 'Bob', age: 22 };

const isIncluded = students.includes(studentToFind);

console.log(isIncluded);
πŸ‘10❀1
What is the output?
Anonymous Quiz
21%
false
9%
Error
10%
undefined
61%
true
πŸ€”27πŸ‘20πŸ”₯5❀4🀣2
πŸ”₯ After over a decade of Cracking the Coding Interview being the go-to resource for technical interview prep, it’s time for the SEQUEL. I’m thrilled to announce the release of Beyond Cracking the Coding Interview, packed with strategies and tools to tackle tough interview questions. What CtCI introduced BCtCI dives deep into, and adds in loads of new content like triggers and problem-solving boosters.

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


let arr = [1, 2, 3, 4, 5];
arr.length = 3;
arr.push(6, 7);
console.log(arr.length);
πŸ‘3❀1
What is the output?
Anonymous Quiz
24%
7
10%
4
15%
3
51%
5
πŸ‘22🀣20πŸ€”12🀩1
🌟 Bun 1.2: A Big Step Forward for the Fast JS/TS Runtime

The JavaScriptCore-based Bun continues to up its server-side runtime game with strides forward in Node.js compatibility, performance boosts, and new APIs for interacting with S3 and S3-like object stores as well as Postgres. If you’d prefer to be πŸ˜‰ introduced to Bun 1.2 with a keynote-style video, it's a good watch.

Ashcon Partovi and the Bun Team
Please open Telegram to view this post
VIEW IN TELEGRAM
❀6πŸ‘5πŸ”₯3
CHALLENGE

let arr = [1, 2, 3, 4, 5];
arr.length = 3;
console.log(arr.length);
console.log(arr);
πŸ‘8πŸ”₯2❀1
πŸ”₯19πŸ‘12πŸ€”5❀4
πŸ•’ JavaScript Temporal is Coming (For Real!)

We first mentioned the Temporal API proposal providing a better way to handle dates and times in JavaScript almost five years ago (in issue 496!) but now it really is almost here. Brian explains its basic concepts and where initial support is starting to appear.

Brian Smith
❀7πŸ‘3πŸ”₯3
CHALLENGE

const person = {
name: "Alice",
age: 30,
city: "New York"
};

const keys = Object.keys(person);
const values = Object.values(person);

const result = keys.map((key, index) => `${key}: ${values[index]}`);

console.log(result);
πŸ‘9🀣5πŸ€”3