Presentation is loading. Please wait.

Presentation is loading. Please wait.

Murach's JavaScript and jQuery (3rd Ed.)

Similar presentations


Presentation on theme: "Murach's JavaScript and jQuery (3rd Ed.)"— Presentation transcript:

1 Murach's JavaScript and jQuery (3rd Ed.)
Chapter 2 © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

2 The Calculate MPG application
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

3 The Calculate MPG application (continued)
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

4 The HTML and JavaScript for the application
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

5 JavaScript’s primitive data types
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

6 Examples of number values
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

7 Examples of string values
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

8 Murach's JavaScript and jQuery (3rd Ed.)
The two Boolean values © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

9 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.)

10 JavaScript’s arithmetic operators
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

11 The order of precedence for arithmetic expressions
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

12 Examples of simple arithmetic expressions
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

13 Code that calculates sales tax
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

14 The most useful compound assignment operators
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

15 Three ways to increment a counter variable by 1
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

16 A floating-point result that isn’t precise
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

17 Common methods of the window object
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

18 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.)

19 One property of the window object
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

20 Two methods of the window object
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

21 Examples that use the parseInt() and parseFloat() methods
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

22 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.)

23 Exercise 2-1 Modify the MPG application
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

24 Two methods of the document object
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

25 Examples of the write() and writeln() methods
© 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)

26 Murach's JavaScript and jQuery (3rd Ed.)
The output in a browser © 2017, Mike Murach & Associates, Inc. Murach's JavaScript and jQuery (3rd Ed.)


Download ppt "Murach's JavaScript and jQuery (3rd Ed.)"

Similar presentations


Ads by Google