CHALLENGE
const obj = { value: 10 };
const result = (obj.value += 5) && obj.value;
console.log(result);
π2
π18β€4π₯3
Names, bios, addresses, zip codes, dates, monetary amounts, transactions, and a lot more besides. I really like the guided DevTools console based demo you can try β an idea other projects should consider. GitHub repo.
Faker.js Team
Please open Telegram to view this post
VIEW IN TELEGRAM
π7π₯4β€2
CHALLENGE
async function test() {
return (await Promise.resolve(0)) || 10;
}
test().then(console.log);
π11
π€©9π6β€3
A nicely diagrammed deep dive (and it really is deep) into a technique that allows malicious parties to turn a file write vulnerability in a Node app into a remote code execution exploit even when the file system is mounted read-only.
Stefan Schiller (Sonar)
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯4β€2π2π€1
CHALLENGE
const arr = [1, 2, 3];
const copy = [...arr];
copy.push(4);
console.log(arr);
console.log(copy);
π4
What is the output?
Anonymous Quiz
8%
[1, 2, 3, 4], Error
11%
[1, 2, 3], Error
21%
[1, 2, 3, 4], [1, 2, 3, 4]
60%
[1, 2, 3], [1, 2, 3, 4]
π15β€10π₯9π€1
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β€3π₯2π€©1
CHALLENGE β
console.log(typeof typeof 42);
Please open Telegram to view this post
VIEW IN TELEGRAM
π5π₯3β€2
π€£26π€15π8β€1
The
??=
nullish coalescing assignment operator snuck into JavaScript a few years ago via ECMAScript 2021 and has been broadly supported almost everywhere for ages. Trevor shows off how it can tighten up your assignments here.Trevor I. Lasn
Please open Telegram to view this post
VIEW IN TELEGRAM
β€8π₯4π3
CHALLENGE β
let name = "Alice";
(function() {
let name = "Bob";
console.log(name);
})();
console.log(name);
Please open Telegram to view this post
VIEW IN TELEGRAM
π2π₯1
What is the output?
Anonymous Quiz
57%
"Bob", "Alice"
9%
"Alice", "Alice"
10%
"Bob", "Bob
24%
"Alice", "Bob"
π18β€4π₯4
Give this online tool the name of an npm package and you get a quick βdashboardβ style view of the projectβs main statistics, covering areas like quality scores, commits, open issues, releases, bundle size, and more.
Shrinath Nayak
Please open Telegram to view this post
VIEW IN TELEGRAM
β€3π2π₯2π€©1
CHALLENGE β
const sym1 = Symbol("id");
const sym2 = Symbol("id");
console.log(sym1 === sym2);
Please open Telegram to view this post
VIEW IN TELEGRAM
π3
π€32π€£31β€3π3π₯3
CHALLENGE β
const name = "Alice";
const obj = {
name: "Bob",
getName() {
return this.name;
}
};
console.log(obj.getName.call({ name: "Charlie" }));
Please open Telegram to view this post
VIEW IN TELEGRAM
π11β€2
π₯17β€3π2
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£113β€6π₯6π2π€©1