Table of Contents | Previous


Index

Symbols

- (bitwise NOT) operator 44
- (unary negation) operator 43
-- (decrement) operator 43
! (logical NOT) operator 46
!= (not equal) operator 42
!== (strict not equal) operator 42
% (modulus) operator 43
%= operator 41
&& (logical AND) operator 46
& (bitwise AND) operator 43
&= operator 41
*/ comment 81
*= operator 41
+ (string concatenation) operator 47
++ (increment) operator 43
+= (string concatenation) operator 47
+= operator 41
/* comment 81
// comment 81
/= operator 41
< (less than) operator 42
<< (left shift) operator 44, 45
<<= operator 41
<= (less than or equal) operator 42
== (equal) operator 42
=== (strict equal) operator 42
-= operator 41
> (greater than) operator 42
>= (greater than or equal) operator 42
>> (sign-propagating right shift) operator 44, 45
>>= operator 41
>>> (zero-fill right shift) operator 44, 45
>>>= operator 41
?: (conditional) operator 48
^ (bitwise XOR) operator 44
^= operator 41
| (bitwise OR) operator 43
|= operator 41
|| (logical OR) operator 46
(comma) operator 48

A

AND (&&) logical operator 46
AND (&) bitwise operator 43
arguments array 87
arithmetic operators 42
% (modulus) 43
-- (decrement) 43
- (unary negation) 43
++ (increment) 43
Array object
creating 101
overview 101
arrays
associative 94
defined 101
deleting elements 48
indexing 102
Java 139
literals 29
populating 102
referring to elements 102
regular expressions and 104
two-dimensional 103
undefined elements 27
ASCII
glossary entry 157
Unicode and 34
assignment operators 41
%= 41
&= 41
*= 41
+= 41
/= 41
<<= 41
-= 41
>>= 41
>>>= 41
^= 41
|= 41
defined 39

B

bitwise operators 43
& (AND) 43
- (NOT) 44
<< (left shift) 44, 45
>> (sign-propagating right shift) 44, 45
>>> (zero-fill right shift) 44, 45
^ (XOR) 44
| (OR) 43
logical 44
shift 45
BLOb, glossary entry 157
Boolean literals 30
Boolean object 104
conditional tests and 30, 72
Boolean type conversions (LiveConnect) 148
booleanValue method 155
break statement 77

C

case sensitivity 27
object names 94
property names 94
regular expressions and 66
case statement
See switch statement
catching exceptions 82
CGI, glossary entry 157
char arguments 140
class-based languages, defined 113
classes
defining 114
Java 140
LiveConnect 142, 143
client
glossary entry 157
client-side JavaScript 16
glossary entry 157
comma () operator 48
comments, types of 81
comment statement 81
comparison operators 41
!= (not equal) 42
!== (strict not equal) 42
< (less than) 42
<= (less than or equal) 42
== (equal) 42
=== (strict equal) 42
> (greater than) 42
>= (greater than or equal) 42
conditional (?:) operator 48
conditional expressions 48
conditional statements 72-74
if...else 72
switch 73
conditional tests, Boolean objects and 30, 72
constructor functions 96
global information in 132
initializing property values with 123
containership
specifying default object 80
with statement and 80
continue statement 78
CORBA, glossary entry 157
core JavaScript, glossary entry 157

D

data types
Boolean conversions 148
converting 26
converting with LiveConnect 147-155
and Date object 26
JavaArray conversions 151
JavaClass conversions 152
JavaObject conversions 151
in JavaScript 17, 25
JavaScript to Java conversion 147
Java to JavaScript conversion 154
null conversions 151
number conversions 147
other conversions 153
string conversions 149
undefined conversions 150
Date object
creating 104
overview 104
Debugger 18
decrement (--) operator 43
default objects, specifying 80
delete operator 48, 100
deleting
array elements 48
objects 48, 100
properties 48
deprecate, glossary entry 157
directories, conventions used 13
do...while statement 75
document conventions 13

E

ECMA, glossary entry 157
ECMAScript, glossary entry 158
ECMA specification 19
JavaScript documentation and 21
JavaScript versions and 19
terminology 21
else statement
See if...else statement
escape function 91
escaping characters 33
Unicode 36
eval function 89
exceptions
catching 82
handling 81-84
handling in Java 144
Java, handling in JavaScript 141
throwing 82
exec method 62
expressions
See also regular expressions
conditional 48
overview 39
that return no value 53
types of 39
external functions, glossary entry 158

F

floating-point literals 30
floatValue method 155
for...in statement 80, 94
for loops
continuation of 78
sequence of execution 74
termination of 77
for statement 74
function keyword 85
Function object 107
functions 85-91
arguments array 87
calling 86
defining 85
Function object 107
predefined 88-91
recursive 87
using built-in 88-91

G

getDay method 105
getHours method 107
getMember method 143
getMinutes method 107
getSeconds method 107
getTime method 106
global object 21

H

HTML
glossary entry 158
HTTP
glossary entry 158

I

if...else statement 72
increment (++) operator 43
inheritance
class-based languages and 114
multiple 133
property 129
initializers for objects 95
in operator 50
instanceof operator 50
integers, in JavaScript 31
internationalization 34
IP address, glossary entry 158
isFinite function 89
isNaN function 89

J

Java
See also LiveConnect
accessing JavaScript 142
accessing with LiveConnect 138
arrays in JavaScript 139
calling from JavaScript 138
classes 140
communication with JavaScript 137-155
compared to JavaScript 17, 113-134
exceptions in JavaScript 141
to JavaScript communication 142
JavaScript exceptions and 144
methods requiring char arguments 140
objects, naming in JavaScript 139
object wrappers 137
packages 140
JavaArray object 138, 139
JavaArray type conversions 151
JavaClass object 138, 140
JavaClass type conversions (LiveConnect) 152
JavaObject object 138, 139
JavaObject type conversions 151
java package 139
JavaPackage object 138, 140
JavaScript
accessing from Java 142
background for using 11
communication with Java 137-155
compared to Java 17, 113-134
differences between server and client 16
ECMA specification and 19
to Java Communication 138
object wrappers 155
overview 16
special characters 32
versions and Navigator 12
JSException class 142, 144
JSObject, accessing JavaScript with 143
JSObject class 142

L

labeled statements
with break 77
with continue 78
label statement 77
left shift (<<) operator 44, 45
length property 111
links
with no destination 53
literals 29
Array 29
Boolean 30
floating point 30
integers 31
object 31
string 32
LiveConnect 137-155
accessing Java directly 138
converting data types 147-155
glossary entry 158
Java to JavaScript communication 142
objects 138
logical operators 45
! (NOT) 46
&& (AND) 46
|| (OR) 46
short-circuit evaluation 47
loops
continuation of 78
for...in 80
termination of 77
loop statements 74-79
break 77
continue 78
do...while 75
for 74
label 77
while 76
lowercase 27

M

matching patterns
See regular expressions
match method 62
Math object 109
methods
defined 86
defining 98
static 159
MIME, glossary entry 158
modulus (%) operator 43

N

Navigator
JavaScript versions supported 12
Navigator JavaScript. See client-side JavaScript
netscape package 139
Netscape packages
See packages
new operator 51, 96
NOT (!) logical operator 46
NOT (-) bitwise operator 44
null keyword 25
null value conversions (LiveConnect) 151
Number function 91
Number object 110
numbers
Number object 110
parsing from strings 90
number type conversions (LiveConnect) 147

O

object manipulation statements
for...in 80
this keyword 51
with statement 80
object model 113-134
objects 93-112
adding properties 97, 98
confirming property type for 50
constructor function for 96
creating 94-97
creating new types 51
deleting 48, 100
determining type of 50
establishing default 80
getting list of properties for 94
indexing properties 97
inheritance 121
initializers for 95
iterating properties 94
JavaScript in Java 143
literals 31
LiveConnect 138
model of 113-134
overview 93
predefined 101
single instances of 95
operators
arithmetic 42
assignment 41
bitwise 43
comparison 41
defined 39
logical 45
order of 54
overview 40
precedence 54
special 47
string 47
OR (|) bitwise operator 43
OR (||) logical operator 46

P

packages, Java 140
Packages object 139
parentheses in regular expressions 61, 64
parseFloat function 90
parseInt function 90
parse method 106
pattern matching
See regular expressions
PI property 109
predefined objects 101
primitive value, glossary entry 158
properties
adding 98, 122
class-based languages and 115
confirming object type for 50
creating 122
getting list of for an object 94
indexing 97
inheritance 121, 129
initializing with constructors 123
iterating for an object 94
overview 93
static 159
prototype-based languages, defined 113
prototypes 121

Q

quotation marks
for string literals 32

R

RegExp object 55-69
regular expressions 55-69
arrays and 104
creating 55
defined 55
examples of 66
global search with 66
ignoring case 66
parentheses in 61, 64
remembering substrings 61, 64
special characters in 57, 68
using 62
writing patterns 56
replace method 62
return statement 86

S

search method 62
server-side JavaScript 16
glossary entry 158
setDay method 105
setTime method 106
short-circuit evaluation 47
sign-propagating right shift (>>) operator 44, 45
special characters in regular expressions 57, 68
special operators 47
split method 62
statements
break 77
conditional 72-74
continue 78
do...while 75
exception handling 81-84
for 74
for...in 80
if...else 72
label 77
loop 74-79
object manipulation 79-81
overview 71-84
switch 73
while 76
static, glossary entry 159
String function 91
string literals 32
Unicode in 35
String object
overview 111
regular expressions and 62
strings
changing order using regular expressions 67
concatenating 47
operators for 47
regular expressions and 55
searching for patterns 55
type conversions (LiveConnect) 149
subclasses 114
sun package 139
switch statement 73

T

test method 62
this keyword 96, 99
described 51
for object references 100
throwing exceptions 82
throw statement 82
toString method 155
try...catch statement 82
typeof operator 52

U

unary negation (-) operator 43
undefined property 26
undefined value 27
conversions (LiveConnect) 150
unescape function 91
Unicode 34-37
described 34
escape sequences 36
string literals and 35
Unicode Consortium 37
values for special characters 35
uppercase 27
URLs
conventions used 13
glossary entry 159

V

variables
declaring 27
in JavaScript 27
naming 27
scope of 28
undefined 27
var statement 27
versions of JavaScript 12
Visual JavaScript 18
void operator 53

W

while loops
continuation of 78
termination of 77
while statement 76
with statement 109
described 80
wrappers
for Java objects 137
for JavaScript objects 155
WWW, glossary entry 159

X

XOR (^) operator 44

Z

zero-fill right shift (>>>) operator 44, 45

Table of Contents | Previous

Last Updated: 10/29/98 15:51:16

Copyright (c) 1998 Netscape Communications Corporation