- Tech notes
Hoisting in JavaScript: avoiding an unwanted undefined
Hoisting: when you declare and initialize a variable, the declaration part gets lifted to the very top. Knowing it prevents an unwanted undefined.
- Tech notes
How browsers render a page: DOM, CSSOM, render tree, layout, paint
The browser turns plain-text HTML and CSS files into object models (DOM and CSSOM), builds the render tree, and then runs layout and paint.