CHALLENGE β
const map = new Map();
map.set("key", undefined);
console.log(map.has("key"), map.get("key"));
Please open Telegram to view this post
VIEW IN TELEGRAM
π7
What is the output?
Anonymous Quiz
21%
false, undefined
18%
true, null
7%
false, null
54%
true, undefined
β€12π7π₯1π€£1
Given plain text containing things like links, hashtags, IP addresses, and email addresses, this will generate the correct code to display it on the Web.
Hypercontext
Please open Telegram to view this post
VIEW IN TELEGRAM
π3β€2π₯2
CHALLENGE β
class MyClass {
constructor() {
this.a = 10;
}
}
MyClass.prototype.b = 20;
const obj = new MyClass();
delete obj.b;
console.log(obj.b);
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β€5
π€17π7β€2
Please open Telegram to view this post
VIEW IN TELEGRAM
π5β€3
CHALLENGE
const symbol1 = Symbol('desc1');
const symbol2 = Symbol('desc2');
const myObject = {};
myObject[symbol1] = 'Value1';
myObject[symbol2] = 'Value2';
let output = '';
for (let key in myObject) {
output += myObject[key] + ' ';
}
output += Object.getOwnPropertySymbols(myObject).length;
console.log(output);
π8β€4
π€13π11β€6
Please open Telegram to view this post
VIEW IN TELEGRAM
β€5π1π₯1
CHALLENGE
const numbers = [2, 4, 6, 8];
const sum = numbers.reduce((acc, num) => acc + num, 0);
console.log(sum);
π6π€5
β€6π6π₯2π€©1
CHALLENGE
var obj = {
a: 10,
b: 20,
c: 'hello'
};
with (obj) {
var sum = a + b;
var greeting = c + ' world';
}
console.log(sum, greeting);
π15π₯2π€©2
What is the output?
Anonymous Quiz
81%
30 'hello world'
6%
30 'hello'
5%
'hello world' 30
9%
undefined 'hello world'
π€14π7β€5π€£2
Itβs a modest milestone, but Node v22.12.0 (LTS) has been released and marks Nodeβs first LTS release with non-flagged support for loading native ES modules with require(). Itβs still experimental, though, and youβre encouraged to send in feedback and bug reports.
Sarah Gooding
Please open Telegram to view this post
VIEW IN TELEGRAM
π8π₯2β€1
CHALLENGE
let a = 5; // binary: 0101
let b = 3; // binary: 0011
let result = a & b;
console.log(result);
π8β€4π€©2π₯1
π€18β€5π4
libvips is a popular, highly efficient image processing library written in C. You can use it via Sharp in Node.js, but this offers a more isomorphic route for use in Node, Deno, and modern browsers by way of WebAssembly. (There's a nifty online demo here.)
Kleis Auke Wolthuizen
Please open Telegram to view this post
VIEW IN TELEGRAM
π5β€3π₯3
CHALLENGE
const defaultSettings = {
theme: 'light',
notifications: true,
location: 'USA'
};
const userSettings = {
theme: 'dark',
location: 'Canada'
};
const finalSettings = {
...defaultSettings,
...userSettings
};
console.log(finalSettings);
π17β€3
What is the output?
Anonymous Quiz
25%
{ theme: 'light', notifications: true, location: 'USA' }
62%
{ theme: 'dark', notifications: true, location: 'Canada' }
10%
{ theme: 'light', notifications: true, location: 'Canada' }
3%
{ theme: 'dark', notifications: false, location: 'USA' }
π₯19π€12β€7π5π€©2
Under development for several years, Boa has a few missions: be a Rust ECMAScript implementation, be easy to embed in Rust projects, and be a fast, safe JS engine overall. v0.20 sees a bump up to 89.92% compliance in the Test262 suite, improves Temporal support, adds Atomics.pause, and more. This is no toy engine.
Boa Developers
Please open Telegram to view this post
VIEW IN TELEGRAM
π4π₯2β€1