Introduction to JavaScript
The Introduction to JavaScript course provides an in-depth look at the essential concepts of JavaScript, one of the most popular programming languages for web development. Covering a wide range of topics, from JavaScript basics, variables, arrays, and operators, to functions, built-in objects, conditionals, loops, and event handling, this course aims to equip students with the necessary knowledge to create interactive and dynamic web applications. Additionally, the course delves into the HTML Document Object Model, the CSS Object Model, and error handling, ensuring a comprehensive understanding of JavaScript and its role in web development.
Benefits
- Comprehensive Coverage: The course offers a thorough examination of JavaScript concepts, enabling students to develop a strong foundation in the language and its applications.
- Practical Examples: Real-world examples and exercises are provided throughout the course, allowing students to apply their newly acquired skills in various contexts and gain a deeper understanding of JavaScript.
- Hands-on Learning: Through a series of exercises, students are encouraged to practice and refine their JavaScript skills, promoting better retention of the material.
- Engaging Content: The course is designed to be interactive and engaging, keeping students interested and motivated to learn.
- Experienced Authors: Created by industry experts with extensive experience in JavaScript, the course content is relevant, up-to-date, and tailored to meet the needs of modern web development.
Outline
- JavaScript Basics
- JavaScript vs. EcmaScript
- The HTML DOM
- JavaScript Syntax
- Accessing Elements
- Where Is JavaScript Code Written?
- JavaScript Objects, Methods, and Properties
- Alerts, Writing, and Changing Background Color (Exercise)
- Variables, Arrays, and Operators
- JavaScript Variables
- A Loosely Typed Language
- Google Chrome DevTools
- Storing User-Entered Data
- Using Variables (Exercise)
- Constants
- Arrays
- Working with Arrays (Exercise)
- Associative Arrays
- Playing with Array Methods
- JavaScript Operators
- The Modulus Operator
- Playing with Operators
- The Default Operator
- Working with Operators (Exercise)
- JavaScript Functions
- Global Objects and Functions
- Working with Global Functions (Exercise)
- User-defined Functions
- Writing a JavaScript Function (Exercise)
- Returning Values from Functions
- Built-In JavaScript Objects
- Strings
- Math
- Date
- Helper Functions
- Returning the Day of the Week as a String (Exercise)
- Conditionals and Loops
- Conditionals
- Short-circuiting
- Switch / Case
- Ternary Operator
- Truthy and Falsy
- Conditional Processing (Exercise)
- Loops
while
and do…while
Loopsfor
Loopsbreak
and continue
- Working with Loops (Exercise)
- Array:
forEach()
- Event Handlers and Listeners
- On-event Handlers
- Using On-event Handlers (Exercise)
- The addEventListener() Method
- Anonymous Functions
- Capturing Key Events
- Adding Event Listeners (Exercise)
- Benefits of Event Listeners
- Timers
- Typing Test (Exercise)
- The HTML Document Object Model
- CSS Selectors
- The
innerHTML
Property - Nodes, NodeLists, and HTMLCollections
- Accessing Element Nodes
- Accessing Elements (Exercise)
- Dot Notation and Square Bracket Notation
- Accessing Elements Hierarchically
- Working with Hierarchical Elements (Exercise)
- Accessing Attributes
- Creating New Nodes
- Focusing on a Field
- Shopping List Application
- Logging (Exercise)
- Adding EventListeners (Exercise)
- Adding Items to the List (Exercise)
- Dynamically Adding Remove Buttons to the List Items (Exercise)
- Removing List Items (Exercise)
- Preventing Duplicates and Zero-length Product Names (Exercise)
- Manipulating Tables
- CSS Object Model
- Changing CSS with JavaScript
- Hiding and Showing Elements
- Checking and Changing Other Style Properties
- Increasing and Decreasing Measurements
- Custom data Attributes
- Gotcha with
fontWeight
- Font Awesome
classList
Property- Showing and Hiding Elements (Exercise)
- Errors and Exceptions
- Runtime Errors
- Globally Handled Errors
- Structured Error Handling
- Try/Catch (Exercise)
Required Prerequisites
Useful Prerequisites
- CSS
- Programming experience