JavaScript

Channel
Logo of the Telegram channel JavaScript
@js_universePromote
26.21K
subscribers
A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript ๐Ÿš€ Don't miss our Quizzes! Let's chat: @nairihar
Please open Telegram to view this post
VIEW IN TELEGRAM
CHALLENGE โ“


console.log([..."hello"]);
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
What is the output?
Anonymous Quiz
69%
1
4%
2
16%
3
11%
Error
CHALLENGE โ“


const obj = {
a: 1,
b: 2,
a: 3
};
console.log(obj.a);
Please open Telegram to view this post
VIEW IN TELEGRAM
โœŒ๏ธ If you are at the iJS Conference in Munich this week, letโ€™s chat!

Nairi (@nairihar)
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
What is the output?
Anonymous Quiz
17%
3
23%
4
41%
11
19%
10
CHALLENGE โ“


const arr = [1, 2, 3];
arr[10] = 11;
console.log(arr.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ˜†
Please open Telegram to view this post
VIEW IN TELEGRAM
What is the output?
Anonymous Quiz
13%
"Alice"
19%
"Bob"
58%
"Charlie
10%
undefined
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
Please open Telegram to view this post
VIEW IN TELEGRAM
What is the output?
Anonymous Quiz
49%
true
8%
undefined
6%
Error
37%
false
CHALLENGE โ“


const sym1 = Symbol("id");
const sym2 = Symbol("id");
console.log(sym1 === sym2);
Please open Telegram to view this post
VIEW IN TELEGRAM
โ›ฝ๏ธ npmpackage.info: Detailed Package Info on a Single Page

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
CHALLENGE โ“


let name = "Alice";
(function() {
let name = "Bob";
console.log(name);
})();
console.log(name);
Please open Telegram to view this post
VIEW IN TELEGRAM
โœŒ๏ธ JavaScript's ??= Operator: Default Values Made Simple

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
Telegram Center
Telegram Center
Channel