Please open Telegram to view this post
VIEW IN TELEGRAM
β€3π3π₯3
CHALLENGE β
const obj = {
0: "zero",
1: "one",
length: 2
};
console.log(Array.from(obj));
Please open Telegram to view this post
VIEW IN TELEGRAM
π4β€1π€1
What is the output?
Anonymous Quiz
61%
[βzeroβ, βoneβ]
20%
[0,1]
13%
[undefined, undefined]
5%
[]
π17β€7π₯3π€1
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