No matter what experience you have with programming in JavaScript, you probably do not fully understand the language. This concise yet deeply thought-out guide will introduce you to scopes, closures, the keyword this, and objects – concepts that you need... to know for more efficient and productive programming in JS. You will learn how and why they work, and how closures can be an effective part of your development toolkit. Like in other books of the series “You Don't Know JS”, this one covers non-trivial aspects of the language that JavaScript programmers prefer to avoid. Armed with this knowledge, you will achieve true mastery of JavaScript. THE BOOK COVERS THE FOLLOWING TOPICS: - The rules used by the JavaScript engine to find variables in the code - Nested scopes – sets of containers for variables and functions - Function and block-based scopes, hoisting, and patterns and benefits of encapsulation based on scopes. - Using closures to solve synchronous and asynchronous tasks, including creating JavaScript libraries - Why the binding of this points to objects depending on how the function is called - The nature of JS objects – why you need to reference them - Using the mixin pattern for classes - Moving from class design/inheritance to behavior delegation - How the OLOO style objects naturally implement behavior delegation related to other objects
Author: СИМПСОН К.
Printhouse: piter
Series: Бестселлеры O'Reilly
Age restrictions: 16+
Year of publication: 2024
ISBN: 9785446112555
Number of pages: 336
Size: 60х90/16 mm
Cover type: Мягкая обложка
ID: 1508785
Delivery methods
Choose the appropriate delivery method
Pick up yourself from the shop
0.00 €
Courier delivery