Chapter 4 The Basics of Java Script TABLE

Chapter 4 The Basics of Java. Script

TABLE 4. 1 The Reserved Words of Java. Script Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 2

FIGURE 4. 1 Primitives and objects Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 3

TABLE 4. 2 Precedence and Associativity of the Numeric Operators Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 4

TABLE 4. 3 Properties of Number Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 5

TABLE 4. 4 String Methods Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 6

TABLE 4. 5 Methods for the Date Object Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 7

TABLE 4. 5 Methods for the Date Object (Continued) Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8

FIGURE 4. 2 An example of the output of document. write Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 9

FIGURE 4. 3 An example of the output of alert Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 10

FIGURE 4. 4 An example of the output of confirm Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 11

FIGURE 4. 5 An example of the output of prompt Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 12

TABLE 4. 6 Relational Operators Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 13

TABLE 4. 7 Operator Precedence and Associativity Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 14

FIGURE 4. 6 Dialog box from borders 2. html Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 15

FIGURE 4. 7 Display of borders 2. html Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 16

FIGURE 4. 8 Display of date. html Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 17

FIGURE 4. 9 Display of nested_arrays. html Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 18

FIGURE 4. 10 Display of parameters. html Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 19

FIGURE 4. 11 Display of medians. html Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 20

TABLE 4. 8 Predefined Character Classes Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 21

FIGURE 4. 12 Display of forms_check. html Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 22

FIGURE 4. 13 Display of debugdemo. html with Internet Explorer 6 Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 23

FIGURE 4. 14 Display of the Netscape 7 Java. Script Console Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 24
- Slides: 24