Book Image

Learn DOM Manipulation with Easy Modern JavaScript [Video]

By : Juan Lizarazo
4 (1)
Book Image

Learn DOM Manipulation with Easy Modern JavaScript [Video]

4 (1)
By: Juan Lizarazo

Overview of this book

The Document Object Model (DOM) is the data representation of the objects that comprise the structure and content of a document on the web. This is what we are going to use when we work with JavaScript and interact in any way dynamically with the document. When one uses Angular, Vue, React, or any other library or framework to create modern web applications, the DOM is what these use under the hood. This course will make you stand out as a JavaScript developer. You will get a clear understanding of the DOM fundamentals. The course will help you understand what the DOM is and how to interact dynamically with an HTML document. We will build user interfaces using modern and easy JavaScript with classes, private attributes, and DOM APIs. Learn optimization techniques and apply easy bundling techniques that include dynamic CSS loading. We will search for documentation; memorizing all the DOM interfaces is not required. While building the game application, you will understand how to interact with the DOM and user input through event listeners.
Table of Contents (15 chapters)
Chapter 11
The Player Interacting with User Input
Content Locked
Section 9
Preventing Overlapping DOM Elements
When it comes to dumb manipulation, the state is what rules all the business logic. In this session, we will focus on the movement implementation by preparing an interactive framework. We will check whether the target position is going to be empty or not.