JavaScript for Web Warriors

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Learn to use JavaScript, the popular scripting language that allows web page authors to develop interactive web pages and sites. Carey/Vodnik's JAVASCRIPT FOR WEB WARRIORS, Seventh Edition introduces a variety of techniques that focus on what you need to know to begin using JavaScript right away. Step-by-step tasks within each chapter highlight particular techniques essential for building actual JavaScript programs. Guided activities reinforce skills and build in complexity as you progress. You also study debugging techniques. Using accompanying MindTap digital resources, you read and immediately practice with embedded JavaScript coding exercises in an authentic integrated development environment (IDE). Learning objectives, summaries, review and key terms highlight major concepts while reinforcement exercises let you further practice new techniques. After completing your course, you will able to use JavaScript to build professional quality web applications.

Author(s): Patrick Carey, Sasha Vodnik
Edition: 7
Publisher: Cengage Learning
Year: 2021

Language: English
Commentary: True PDF
Pages: 736

Cover
Brief Contents
Contents
Preface
Chapter 1: Introduction to JavaScript
Exploring the JavaScript Language
Writing a JavaScript Program
Writing Basic JavaScript Code
Building Expressions with Variables
Understanding Events
Structuring JavaScript Code
Creating a JavaScript Source File
Validating Web Pages
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 2: Working with Functions, Data Types, and Operators
Working with Functions
Defining a Function
Writing a Function
Calling a Function
Returning a Value from a Function
Managing Events with Functions
Using Event Handlers
Events as Object Properties
Event Listeners
Events and Anonymous Functions
Applying a Function to an Event
Using Built-in JavaScript Functions
Understanding Variable Scope
let and var Declaration Scopes
Local and Global Scope
Working with Data Types
Working with Numeric Values
Working with Boolean Values
Working with Strings
Escape Characters and Sequences
Using Operators to Build Expressions
Arithmetic Operators
Assignment Operators
Comparison Operators
Conditional Operators
Understanding Falsy and Truthy Values
Logical Operators
Special Operators
Understanding Operator Precedence
Using Expressions with Web Form Controls
Working with Input Control Values
Working with Checkboxes
Using the change Event with Web Form Controls
Locating Errors with the Browser Console
Accessing the Browser Console
Locating an Error in Your Program
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 3: Building Arrays and Controlling Flow
Storing Data in Arrays
Declaring and Initializing Arrays
Elements and Indexes
Creating an Array
Multidimensional Arrays
Exploring HTML Collections
Referencing an Element within a Collection
Searching through the DOM
Viewing Arrays and HTML Collections with the Console
Working with Program Loops
The while Loop
The do while Loop
The for Loop
Writing a for Loop
Exploring Array Methods for Generating Loops
Adding Decision Making to Your Code
The if Statement
The if else Statement
The else if Statements
Nested if and if else Statements
Conditional Statements and Browser Testing
The switch Statement
Managing Program Loops and Conditional Statements
The break Statement
The continue Statement
Statement Labels
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 4: Debugging and Error Handling
Introduction to Debugging
Load-Time Errors
Runtime Errors
Logic Errors
Starting Debugging with the Browser Console
Running Javascript in Strict Mode
Tracing Errors to Their Source
Tracing Errors with the window.alert() Method
Tracing Errors with the Console Log
Using Comments to Locate Bugs
Tracking Program Flow with Debugging Tools
Accessing your Browser’s Debugging Tools
Adding and Removing Break Points
Stepping through the Program Execution
Tracking Variables and Expressions
Examining the Call Stack
Managing Errors
Handling Exceptions with the try catch Statement
Throwing an Exception
The try catch finally Statement
The error Parameter in the catch Statement
Applying Exception Handling to a Program
Customizing Your Error Handling
Catching Errors with the error Event
Error Handling Functions
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 5: Creating a Web App Using the Document Object Model
Designing a Web App
Introducing Nodes
Restructuring a Node Tree
Running Timed Commands
Working with Popup Windows
Creating an Overlay
Exploring the Browser Object Model
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 6: Enhancing and Validating Forms
Exploring Forms and Form Elements
Working with Selection Lists
Working with Option Buttons
Formatting Data Values in a Form
Responding to Form Events
Working with Hidden Fields
Exploring Form Submission
Validating Form Data with JavaScript
Testing a Form Field Against a Regular Expression
Creating a Custom Validity Check
Managing Form Validation
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 7: Manipulating Data in Strings, Arrays, and Other Objects
Retrieving Content from a Text File
Working with Text Strings
Introducing Regular Expressions
Programming with Regular Expressions
Exploring Array Methods
Exploring the Math Object
Exploring the Date Object
Exploring Template Literals
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 8: Creating Customized Objects, Properties, and Methods
Understanding Object-Oriented Programing
Creating an Object Literal
Working with Object Classes
Working with Object Prototypes
Introducing Closures
Working with Public, Private, and Privileged Methods
Combining Objects with Prototype Chains
Data Storage with Associative Arrays
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 9: Managing State Information and Security
Understanding Sessions and State Information
Sharing Data Between Forms
Introducing Web Storage
Storing Data in Web Storage
Introducing Cookies
Writing Data into a Cookie
Reading a Cookie
Deleting a Cookie
Exploring Security Issues
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 10: Programming with Event Objects and Third-Party APIs
Working with Events as Objects
Exploring Mouse, Touch, and Pointer Events
Programming a Drag and Drop Action
Exploring the Drag and Drop API
Working with Keyboard Events
Creating an Interactive Map
Mapping Your Position with Geolocation
Adding Directions to a Map
Introducing the Device Orientation API
Preparing an App for Mobile Use
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 11: Managing Data Requests with AJAX and Fetch
Introducing Server Requests
Exploring HTTP Messages
Introducing AJAX
Viewing the Status of a Request and Response
AJAX and Callback Hell
Introducing Arrow Functions
Exploring the Promise Object
Using the Fetch API
Working with XML
Creating an Autocomplete Search Box
Working with Third-Party APIs
Exploring Security Issues with APIs
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Chapter 12: Introducing jQuery
Getting Started with jQuery
Working with jQuery Selectors
Handling Events with jQuery
Working with Effects and Animations
Exploring jQuery Plugins
Summary
Key Terms
Review Questions
Hands-On Projects
Case Projects
Appendix A: Installing and
Configuring a
Testing Server
Appendix B: Working with
HTML and CSS
Glossary
Index