CHALLENGE
const x = null;
const y = undefined;
const z = 0;
const result1 = x ?? 'default';
const result2 = y ?? 'default';
const result3 = z ?? 'default';
const combined = result1 ? result2 ? result3 : 'B' : 'C';
console.log(combined);
❤3👍1🔥1
👍3🔥3❤2
CHALLENGE
function Vehicle(type) {
this.type = type;
this.wheels = 4;
}
Vehicle.prototype.describe = function() {
return `${this.type} with ${this.wheels} wheels`;
};
const car = new Vehicle('Car');
const bike = Vehicle('Bike');
console.log(car.describe());
console.log(typeof bike);
console.log(globalThis.type);What is the output?
Anonymous Quiz
27%
Car with 4 wheels undefined Bike
36%
Car with 4 wheels undefined undefined
25%
Car with 4 wheels object undefined
11%
Car with 4 wheels object Bike
👍2❤1🔥1
CHALLENGE
const json = '{"name":"Sarah","age":25,"active":true}';
const obj = JSON.parse(json);
obj.name = "Emma";
obj.age++;
const json2 = JSON.stringify(obj);
const obj2 = JSON.parse(json2);
obj.age = 100;
console.log(obj2.age);🤔3❤2🔥2👍1
CHALLENGE
const multiplier = 3;
function createCounter() {
let count = 0;
const multiplier = 5;
return function() {
count++;
return count * multiplier;
};
}
const counter = createCounter();
console.log(counter());
console.log(counter());
console.log(multiplier);
❤3🔥1
❤4👍3
Gold quietly hit a new record in 2025
Some assets move fast, others move steadily, but both say something about how we react to risk.
How well do you read these shifts?
Check yourself by taking a short quiz.
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣5🤔3
CHALLENGE
const x = 0.1 + 0.2;
const y = 0.3;
console.log(x === y);
console.log(x.toFixed(1) === y.toFixed(1));
console.log(+x.toFixed(1) === +y.toFixed(1));
const num = 42;
console.log(num.toString(2));
console.log(parseInt('101010', 2));
What is the output?
Anonymous Quiz
16%
false false true 101010 42
22%
false true true 101010 101010
38%
true true true 101010 42
24%
false true true 101010 42
❤2