Objects are the foundation for many built-in features of JavaScript, and are a powerful tool for building web apps. In this course, you will learn about creating objects and how to use the built-in Number, String, Date, and Math objects.
Learning Objectives
Objects
- start the course
- create JavaScript objects using object literals, and access and manipulate object properties
- create JavaScript objects using constructor functions and a new keyword
- iterate through the enumerable properties of a JavaScript object
Built-in Objects and Functions
- use the built-in Math object to do calculations, manipulate numeric data, and perform math operations
- work with the Date object to manipulate the date, including working with the local time zone, UTC, and GMT date and times
- manipulate string objects by concatenating, splicing, adjusting case, finding patterns, and removing, adding, and replacing substrings
- use ES6 native built-in promises to handle asynchronous operations
Event Handlers
- respond to user actions with mouse event handlers such as click, double click, and the wheel
- manage keyboard events from within elements and from within the document to provide a keyboard-friendly interface
- use page event handlers to respond to page loads and unloading, scrolling, and resizing of the browser window
- implement interactive events like onblur, onfocus, and onsubmit to provide interactivity or react to user actions
- generate events and listen for events in a Node-based environment using EventEmitter
Practice: JavaScript Features
- use the built-in JavaScript event handlers to receive and react to events occurring on a web page