— The window objects represents the whole browser all global JavaScript objects, functions, and variables automatically become member of the window object.
— Window Controls
— Navigation
— Location
— History
— Popups
— Screen
— Timing Events
In case you missed out, Here's the DOM cheat sheet.
— Object keys are automatically converted into strings. We are trying to set an object as a key to object a, with the value of 123.
— However, when we stringify an object, it becomes "[object Object]".
1/3
— So what we are saying here, is that a["[object Object]"] = 123. Then, we can try to do the same again. c is another object that we are implicitly stringifying. So then, a["[object Object]"] = 456.
2/3
A JavaScript array method you're not familiar with:
1. .reduceRight()
— All of you're partially familiar with .reduce() method, right? .reduceRight() does the exact functionality of .reduce() but instd of iterating the items frm left to right, it goes from right to left. so you don't have to do extra .reverse() b4 doing .reduce()
2. .flat()
— The .flat() methods create a new array with all sub-array elements concatenated into it, recursively up to the specific depth. If the depth is not specified, it defines to 1. Depth 0 means no change at all.