HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 21 February 97

Foil 6 The JavaScript Language -- Expressions - II

From Feb 17/19 Delivered Lecture for Course CPS616 -- aJavaScript Language Objects and Frames CPS616 spring 1997 -- Feb 17 and 19 1997. by Geoffrey Fox * Important Information in IMAGE
Secs 221.7 Addon
Bitwise logical operators & (AND) | (OR) ^ (XOR) operate on the two numbers expressed in 32 bit integer form and perform indicated logical operation on each bit separately
<< is bitwise left shift discarding bits at left (high order) and zero filling at right
>> is bitwise right shift propagating the sign bit in high order (oposition 31)
>>> is zero fill right shift with no special treatment of sign bit
Boolean operations are && (AND), || (OR), ! (NOT) and can only operate on boolean variables which are true or false
Comparison Operators are == > >= < <= != which can be used on numerical OR string variables
Concatenation operator + joins two strings together
  • Note + is called . in PERL
x= "Hello "; y= "World!";
x + y is "Hello World!"


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Fri Feb 21 1997