Murach's JavaScript and jQuery (3rd Ed.) Chapter 2 © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
The Calculate MPG application © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
The Calculate MPG application (continued) © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
The HTML and JavaScript for the application © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
JavaScript’s primitive data types © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Examples of number values © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Examples of string values © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.) The two Boolean values © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
How to declare and assign a value to a variable in one statement © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
JavaScript’s arithmetic operators © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
The order of precedence for arithmetic expressions © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Examples of simple arithmetic expressions © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Code that calculates sales tax © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
The most useful compound assignment operators © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Three ways to increment a counter variable by 1 © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
A floating-point result that isn’t precise © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Common methods of the window object © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.) A statement that calls the prompt() method with the object name omitted © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
One property of the window object © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Two methods of the window object © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Examples that use the parseInt() and parseFloat() methods © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.) The same examples with the parse methods embedded in the alert() method © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Exercise 2-1 Modify the MPG application © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Two methods of the document object © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Examples of the write() and writeln() methods © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.) The output in a browser © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)