-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdvancedFeatures.js
More file actions
40 lines (25 loc) · 819 Bytes
/
AdvancedFeatures.js
File metadata and controls
40 lines (25 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// from ES11 we can use globalThis
// globalThis.setTimeout(() => console.log('Hello'), 100)
// window === globalThis // true in browsers
// global = globalThis // true in node js
// let largestNumber = Number.MAX_SAFE_INTEGER
// largestNumber = BigInt(largestNumber) + 1n
// console.log(largestNumber)
// const language = {
// name: 'Javascript',
// creator: 'Brendan Eich',
// Library: {
// react: {
// company: 'Facebook'
// }
// }
// }
// // let company = language.Library.react.company
// let company = language?.Library?.react?.company
// console.log(company)
// let language
// language = 0
// console.log(language ?? 'Javascript') // Nullish Coalescing Operator
// console.log(language || 'PHP') // Logical OR operator
// promise
// prototype.matchAll