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
CHALLENGE β
const arr = [1, 2, 3];
arr[10] = 11;
console.log(arr.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
π6
π€£42π14π₯5
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£84π5β€4π€1
CHALLENGE β
const obj = {
a: 1,
b: 2,
a: 3
};
console.log(obj.a);
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£24π17π€9
π€£92π19β€5π€5π₯3
Please open Telegram to view this post
VIEW IN TELEGRAM
π7π₯3β€2π€©1