JavaScript
32K subscribers
1.02K photos
9 videos
33 files
705 links
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
Download Telegram
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
What is the output?
Anonymous Quiz
39%
number
31%
string
17%
object
13%
Error
🀣26πŸ€”15πŸ‘8❀1
✌️ 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
❀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
πŸ‘18❀4πŸ”₯4
⛽️ 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
❀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
What is the output?
Anonymous Quiz
50%
true
8%
undefined
5%
Error
36%
false
πŸ€”32🀣31❀3πŸ‘3πŸ”₯3
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6❀2πŸ”₯2
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
What is the output?
Anonymous Quiz
12%
"Alice"
19%
"Bob"
57%
"Charlie
11%
undefined
πŸ”₯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
What is the output?
Anonymous Quiz
18%
3
21%
4
41%
11
19%
10
🀣42πŸ‘14πŸ”₯5
πŸ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣84πŸ‘5❀4πŸ€”1
✌️ 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
❀12πŸ”₯6πŸ‘4
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
What is the output?
Anonymous Quiz
71%
1
4%
2
15%
3
10%
Error
🀣92πŸ‘19❀5πŸ€”5πŸ”₯3
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘7πŸ”₯3❀2🀩1
CHALLENGE ❓


console.log([..."hello"]);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘18