capitalizing words in string 310
capWords function
capitalizing words in string 310
case variance in an identifier
syntax errors 349
catch statement
exception handling 360
<CENTER> tag
tree example 95
character classes
common representations 326
negating 325
sequences and meanings 326
using 324
charAt method, String object 300
class interfaces, introduction to OOP 197
classes, introduction to OOP 195
clearInterval method, Global object 290 , 295
client-side security 375
close method,Window object
closing the browser example 207
closing browsers
JavaScript and 208
code hiding 15
combination operators 36
comments
styles 35
using in statements 35
comparison function
creating custom 175
comparison operator (= =)
if statement 125
compared to assignment operator (=) 63
comparison operators, case sensitivity in string comparison 40
compilers 5
compound statements, creating 41
concat method
Array object 173
String object 300
concatenating variables 24
displaying contents of variable 26
conditional expressions
age check example 47
checking that array elements are defined 150
switch case statements 68
switch statements 43
syntax 44
using in onClick event 47
values based on conditions 44
conditional statements 43
confirm method,Window object 132 , 204 , 207
constructors, introduction to OOP 195
conventions used in this book 7
cookies, password protection of page 375
counting down from 10–1 example 84
counting words in string 311
using alert statements for debugging 352
countWords function
counting words in string 311
custom comparison function, creating 175
custom events
in Visual Basic .NET 286
onSame event 286
custom numeric comparison function ,
creating 178
custom objects, creating 221
defining custom toString method 228
objects as arrays 226
prototypes 221
Rectangle object 222, 226
calcArea method 223