In this weekly digest I want to focus on resources that have helped me learn Javascript inner workings. In order to master any coding language it is necessary to understand how it works.
- To understand better the language check Advanced Javascript by Kyle Simpson, it has helped me to finally understand how
this
works!! The videos focus onscopes
(lexical vs dynamic),closures
, `prototypal Inheritance`, and `async patterns` - Let’s dig into the JS engine on JavaScript Visualized: the JavaScript Engine. Animated gifs showing how code is executed by the V8 engine (Chromium based browsers and Node.js engine)
- How is memory managed in Javascript? We have the luxury to not worry about memory management but we should be aware of how works to avoid common issues and potential memory leaks! Learn all about it in How JavaScript works: memory management + how to handle 4 common memory leaks
- Javascript single thread and the event loop. How concurrency is handled by Javascript: How JavaScript works: Event loop and the rise of Async programming + 5 ways to better coding with async/await
- Do you want to dig even deeper? Check How Browsers Work: Behind the scenes of modern web browsers for comprehensive details on parsing (HTML, CSS, JS), layout, painting and more.
- What is Bytecode? How V8 compiles for execution on Understanding V8’s Bytecode
- Finally you can always check V8 Engine blog.
Enjoy!!!