Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Software Development Tools No-Code Development
Business
Entrepreneurship Communication Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certifications Network & Security Hardware Operating Systems & Servers Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Paid Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement & Gardening Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition & Diet Yoga Mental Health Martial Arts & Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Learning Teacher Training Test Prep Other Teaching & Academics
Web Development JavaScript React Angular CSS Node.Js HTML5 PHP Vue JS
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Amazon AWS Cisco CCNA Microsoft AZ-900 AWS Certified Developer - Associate
Microsoft Power BI SQL Tableau Data Modeling Business Analysis Business Intelligence MySQL Qlik Sense Blockchain
Unity Unreal Engine Game Development Fundamentals C# 3D Game Development C++ Unreal Engine Blueprints 2D Game Development Virtual Reality
Google Flutter Android Development iOS Development React Native Swift Dart (programming language) Mobile App Development Kotlin SwiftUI
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting Canva InDesign Character Design Procreate Digital Illustration App
Life Coach Training Neuro-Linguistic Programming Personal Development Personal Transformation Life Purpose Mindfulness Meditation CBT Cognitive Behavioral Therapy Sound Therapy
Entrepreneurship Fundamentals Business Fundamentals Freelancing Business Strategy Startup Business Plan Online Business Blogging Home Business
Digital Marketing Social Media Marketing Marketing Strategy Internet Marketing Google Analytics Copywriting Email Marketing YouTube Marketing Podcasting

DevelopmentWeb DevelopmentJavaScript

JavaScript DOM Projects InterActive Dynamic WebPages Games

JavaScript DOM makes your web pages interactive and dynamic update page elements add event listeners create Games JS DOM
Rating: 4.6 out of 54.6 (5 ratings)
142 students
Created by Laurence Svekis
Last updated 2/2022
English
English [Auto]

What you'll learn

  • Perfect to get started with JavaScript - loaded with starter projects to get you coding
  • Master the DOM (document object model)
  • Explore how you can learn JavaScript while building FUN real world JavaScript projects from Scratch
  • Create interactive and dynamic web pages
  • Selection of web page elements and manipulation of elements

Requirements

  • HTML and CSS knowledge and JavaScript experience
  • Use of editor to write code

Description

Learn JavaScript DOM - This JavaScript Course will provide Java Script Essentials so that you can explore and learn more about JS JavaScript. Complete JavaScript course covers ES6 and modern JavaScript coding.

Bring your web pages to life with JavaScript - access the browser document object - select and update the elements on the page!

Learn more about how to create dynamic web pages - connect with the DOM -> Update and manipulate page elements

Covering the common methods and properties that JavaScript uses to select elements from the web page and apply changes with code. Fine tune your JavaScript Skills while creating fun interactive projects.

- Challenges at the end of each lesson.

- Modern JavaScript coding and examples

- PDF resource and code guides in every section

- Examples and how to apply logic to create the interactions you want

- practice and learn more about the DOM while creating fun games

- Unique projects to grow your skills - you won't find these anywhere else!!!

- Content professionally designed to help focus your learning improve your skills

- Add and expand your portfolio

Source code is included - step by step learning on how to apply JavaScript to make thing happen

JavaScript and the DOM - learning objectives to get you coding!!!

Professional instructor with over 20 years of JavaScript experience ready to help you learn and answer any questions you have.

Covering the core code examples to interact with the DOM +++++ 3 AWESOME JAVASCRIPT DOM PROJECTS

  1. Build an interactive game - generate a responsive grid with JavaScript and CSS Grid.

  2. JavaScript Slot machine with real element movement and tracking of element values.  Build with dynamic global game object that you can adjust to change the game dynamics

  3. JavaScript DOM Frogger game - Classes and how to track classes, update and check if element contain classes.  Logic for gameplay and how to create complete game from start to finish.  Game Grid and design.

The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a document—such as the HTML representing a web page—in memory.

The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. DOM methods allow programmatic access to the tree. With them, you can change the document's structure, style, or content.

Complete Introduction to the DOM and how to access page elements with JavaScript Code

  • How to write JavaScript editor used in the course and resources for lessons. Resources for writing code and for the upcoming lessons. Code editor used in the course

  • How to select all matching page elements with JavaScript QuerySelectorAll. DOM examples and how the DOM relates to JavaScript Code.  Mini JavaScript Object with nested objects to illustrate a simple example  of  the DOM element tree.  Update and selection of page elements using querySelector and querySelectorAll to select web page elements and update the value of  the object.  Select the element and manipulate the contents  with textContent property value.

  • Web Page Element Style Attribute Update with JavaScript. Page element style values within style property of the element.  Select an element and update the style values, get and set Attributes of the page element.

  • Attributes ClassList Add Remove Toggle Contains within class of page element. Explore how to select and update the element attributes, add new attributes and get contents of existing attributes.  Useful classlist methods to toggle existing class, add and remove classes and check if the class exists on an element returning boolean value.

  • Add HTML to Page with JavaScript Code innerHTML property of web page elements.  Select a page element with JavaScript - create page elements with loop from JavaScript to create multiple elements on the page.  Add HTML to the page elements with innerHTML property value.  Setting hyperlink attribute to have target blank, selecting all hyperlinks on page.   Creating images with img elements as html code for page.  Generate a random color with JavaScript string method.  Lesson also includes a challenge to add html to a parent element and then select the new elements with JavaScript.

  • JavaScript to Create new page elements and Remove Elements. Use of createElement method to generate new page elements with JavaScript Code.  Append Prepend AppendChild to parent Element methods of adding page elements to page.  JavaScript insertBefore to add  within an element and get the callback value.  Coding Challenge to create multiple image elements adding images and properties with JavaScript Code.

  • JavaScript Traversing the DOM parents siblings children of elements.  Navigate the DOM tree, select a starting element and move to its related elements with JavaScript Code. Select element parent object, get list of elements children and child nodes. Select an element get the first last and siblings related to the current element. Move to the next element and update the element.

  • Click Events and Event Listeners with JavaScript. Create interactive page elements that can be clicked to run blocks of code.  User actions to trigger code blocks with JavaScript.   How to setup click only once, addEventListeners and removeEventListeners.  Create custom object property values.  Update elements dynamically with code.

  • How to add Mouse Event Listeners with JavaScript code.  Common mouse events to page elements, on mouse over movement and other actions. Create events with mouse actions and how to track the events, what the difference is between mouse over and mouse out.

  • Events Listeners Keyboard Events with JavaScript Code. Track keyboard events, get key values and how events can be attached to input fields. Focus and Blur on input fields running events and JavaScript Code. Keyup and KeyDown events tracking arrow presses on keyboard.

  • How to Move an Element with Arrow presses on Keyboard using JavaScript. Coding exercise with JavaScript and keyboard events. Track arrow key presses and update the element position on the page. Key press to move element on screen using JavaScript.

JavaScript Element Clicker Game CSS grid JavaScript Dynamic Grid

  • Objective of this section is to create a dynamic fully responsive Game Grid - that can be interacted with and updated using javaScript. Game with dynamic Fully responsive Grid using JavaScript and CSS Grid.

  • JavaScript Game Clicker Project Introduction. Introduce the JavaScript Game created in the upcoming lessons. Set the game and demo the final game project.

  • Setup of HTML Web Page and JavaScript Code. Setup of page structure for the JavaScript Game. Using HTML and setup CSS to prep for Dynamic Elements with JavaScript.

  • Create a Responsive Dynamic Grid using JavaScript.  Use JavaScript to generate a grid that is fully responsive and ready for gameplay elements. Create main container element and grid items.

  • WebPage Elements into Array with JavaScript. As you create the elements with JavaScript track them into a Global Array that can be used to easily select the elements and create interactions. This can be used to select elements by index value.

  • Add Event Listeners make Elements Clickable. Create interactions with page elements and user. Click elements and track click events on elements with JavaScript.

  • JavaScript Code updates tweaks for counters. Update the element counters removing the timeout function call and adding counters on each element object. Add variables to elements using JavaScript.

  • JavaScript Game Scoring and GamePlay Updates improvements. Adding more gameplay - with scoring and better visuals for the player. Use JavaScript to update hits and misses counter and display to the player. Add game difficulty option to increase play dynamically adjusting the game with changes in the main global parameters.

  • JavaScript Game Clickers Code Review. High level overview of game code and the functions used to create the JavaScript game. Updated and options for gameplay. Full code review of JavaScript Game.

JavaScript Slot Machine coding project Dynamic Interactive JavaScript DOM project

  • Explore how you can create elements have user interactions and trigger visual events making your web pages come to life.

  • Project Setup create HTML and JavaScript files. Setup html file prep to add JavaScript coding. Create HTML game container element, link to JavaScript source files. Select main output element using JavaScript.

  • Project Setup create HTML and JavaScript files. Setup html file prep to add JavaScript coding. Create HTML game container element, link to JavaScript source files. Select main output element using JavaScript.

  • JavaScript SlotMachine create interactive Button. Setup of HTML Web Page and JavaScript Code. Select main container element, add button for interaction. Allow user to toggle button content and select and invoke function on button click action. Setup of core Global Game properties to make the application dynamically adjust with new game object values. Append elements to the page with JavaScript. Create elements with JavaScript. Add event listeners to elements with JavaScript.

  • Create Game Elements JavaScript Apply CSS. Add and update the toggle of the clickable button element. Invoke a JavaScript function on click. Use of DOMContentLoaded event to build game board once the DOM is loaded and ready to use. Get document body properties to use values within the JavaScript code document.body.clientWidth. Create element maker function to generate elements within the JavaScript code, add and append new element to the parent, add a class, element tag, and html content within the element.

  • Update CSS styling to set dynamically created elements on page. Adding CSS to position elements, set widths and heights to set the content on the page by applying classes with JavaScript to the newly created page elements.

  • JavaScript adding animation frame to create smooth movement of elements. The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser calls a specified function to update an animation before the next repaint. The method takes a callback as an argument to be invoked before the repaint. Add animation frames that can be added and removed with a global object.

  • Movement of Slot Wheels with JavaScript Page element style updates. Update the position of the element on the page, move the elements restack the order of elements within a parent element. Getting element property values to use within the code to update position. offsetTop with JavaScript. Conditions and calculations to manipulate element style positions top and left to create animation of elements with JavaScript code.

  • JavaScript Game Movement debugging and Fixes. JavaScript Game movement and debugging. How to troubleshoot your JavaScript game application and how to create and optimize gameplay. Update the game area styling with CSS. Adding and removing classes from JavaScript objects. Game playthrough and updates in element positions, style properties done with JavaScript.

  • Movement and Game Results Setting Conditions for win JavaScript. Final spin results and retrieving the values of the output results. Comparison functions and setting up win conditions for JavaScript Game Object. JavaScript

  • JavaScript Slot Machine Win Conditions and payout for matches. How to create a final tally object that can be used to calculate the final results for the player. Track matches and number of occurrences to be able to apply calculations on win.

  • JavaScript Slot Machine Final Code Tweaks and Updates. Improvement of visuals, testing of game play to ensure proper functionality. Update to the global game object values to test dynamic content and game play. Adding of icons for more appealing game visuals, use fo colors to add more appeal to game play.

JavaScript DOM frogger game Project

  • Practice updating and manipulating web page elements while creating a fun interactive game using JavaScript and the DOM. All gameplay is DOM based and can be used and reused to get more familiar with how the DOM works and how you can create interactive and dynamic Web Pages.

  • JavaScript Game Setup Add Elements and create core files. Info setup index and files. Prepare and plan main elements for gameplay. Setup CSS and use of querySelector to select Game Play Area element.

  • How to Create a Dynamic Element Grid JavaScript CSS Game Grid. Using JavaScript to generate elements grid using CSS grid. Add Rows and Columns to the dynamic fully responsive game grid. Setup of game board and game play area.

  • How to move element class with Keyboard events Arrow Keys move element JavaScript Example. Add movement to the game character with event listeners. Listen for arrow key presses and track user actions to player element on the screen. Move class of main character across board.

  • Player Movement with JavaScript Smooth movement animations. Adding smooth movement and animation frame in JavaScript. Animation frames to call functions creating animations of elements on the web page. User keyboard clicks to element page movement.

  • JavaScript Game Objects Background Design adding colors. Update and build JavaScript Frogger gameboard. Add roads and water classes to elements. Check if the frogger is on the safe final block. Use of classList to check which element contains specific classes needed for JavaScript Game

  • JavaScript Game Obstacles added logs and cars. Add interactive items on JavaScript Gameboard. Create elements with classes added to represent the obstacles that will be moving. Create visuals for game play add elements that the player can interact with.

  • JavaScript Game Object Movement of Classes motion and interaction. Selecting and updating classes in Game Animation. Creating gameplay and interactive obstacles that can move automatically on the screen. Update element classes and create motion of elements for the player within the JavaScript Frogger Game. Update game to have option for speed values to increase and decrease game speed.

  • JavaScript Frogger GamePlay Fixes Updates. Play the game and test to debug. Create and catch areas to improve the gameplay and increase game functionality. Use of classlist to detect classes on elements. Setup to start and stop gameplay for game debugging and help with game calculations.

  • Frogger Game Debugging with JavaScript and game updates. Play and check of game conditions, apply game logic to help move player through game. Add movement of frogger on log update of key presses for more responsive key actions and tracking of key events.

  • JavaScript Game Play Design and Improvements add images and graphics. Adding images to increase game play appeal. Update with CSS and JavaScript code. Game testing and debugging methods. Adding visual to game, adjustment of global game values to dynamically change gameplay.

  • Complete JavaScript Frogger Game Code Review. Overview of coding and game design points.








Who this course is for:

  • Anyone who wants to practice writing JavaScript
  • JavaScript Beginners
  • Web developers
  • HTML and CSS coders

Instructor

Laurence Svekis
Instructor, GDE, Application Developer
Laurence Svekis
  • 4.4 Instructor Rating
  • 49,643 Reviews
  • 839,160 Students
  • 329 Courses

I'm here to help you learn, achieve your dreams, come join me on this amazing adventure today
Google Developers Expert - GSuite

Providing Web development courses and digital marketing strategy courses since 2002.

Innovative technology expert with a wide range of real world experience. Providing Smart digital solutions online for both small and enterprise level businesses.

"I have a passion for anything digital technology related, enjoy programming and the challenge of developing successful digital experiences. As an experienced developer, I created my first computer applications in 1990, and my first website in 1998.  I enjoy sharing my knowledge with others and want to help you share in the wonderful opportunities that the internet provides."

"Learning, understanding with a strong passion for education.  The internet has provided us with new opportunities to expand and share knowledge."

Want to learn more about becoming a web developer, do you want to experience the freedom that technology provides for us? Learn how to bring amazing things to life online.  Technology connects us all in many ways.  It opens up doors to those who embrace it and learn how to make those connections real.

"My courses are designed to help you achieve your goals, learn and update skills"

Background : An experienced web application developer, having worked on multiple enterprise level applications, hundreds of websites, business solutions and many unique and innovative web applications.  Web application development areas of expertise include HTML, CSS, JavaScript, JQuery, Bootstrap, PHP and MySQL. Anything to do with web creation and digital experience. Passionate about everything to do with web application development, programming to online marketing with a strong focus on social media and SEO. 

"Understanding technology provides a means to better connect with users.  It also opens so many doors.   Knowledge is the key to success and I want to help you experience what technology has to offer. I'm passionate about web technologies, and look forward to sharing my knowledge and experience with you!"

Top companies choose Udemy Business to build in-demand career skills.
NasdaqVolkswagenBoxNetAppEventbrite
  • Udemy Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Investors
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Accessibility statement
Udemy
© 2022 Udemy, Inc.