23.04.2013 Views

javascript

javascript

javascript

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

members, changing, 10<br />

MintChocolateChunk() constructor, 154<br />

Object(), 43, 50, 365<br />

object literals, creating, 9<br />

Object.create(), 171, 173, 188, 195<br />

Object.defineProperties(), parameters, 187<br />

Object.defineProperty(), parameters, 186<br />

Object.prototype, functions as inheriting<br />

members from, 184<br />

prototype object, 146<br />

Strawberry(), 163, 165<br />

this private variable, 146<br />

VanillaBean() constructor, 149<br />

wildMaineBlueberry object, 146<br />

WildMaineBlueberry(), 147–148<br />

See also Browser Object Model (BOM);<br />

constructors; DOM; functions;<br />

methods; variables<br />

open(), 426<br />

operators<br />

!! idiom, 352<br />

!== operator, 71<br />

?: operator, 90, 105, 351<br />

. operator, 13<br />

() operator, 221, 226, 239<br />

[] operator, 10, 17, 30, 41, 65, 260<br />

*= operator, 61, 63<br />

/= operator, 61, 63<br />

+ operator, 25<br />

+= operator, 61, 63<br />

-= operator, 61, 63<br />

alert(), 90<br />

associativity, 57<br />

binary operators, 60<br />

bitwise operators, 61<br />

chaining && expressions, 87<br />

chaining || and && expressions, 89<br />

chaining || expressions, 85<br />

combining math and assignment<br />

operations, 61<br />

comma (,) operator, 93<br />

comparing objects, arrays, and functions, 72<br />

concatenation operator, 3<br />

conditionally returning one of two values,<br />

90<br />

converting operands to numbers, 63<br />

decrement (--) operator, 66<br />

delete operator, 12, 94, 155<br />

deleting a member, element, or variable, 94<br />

equality (==) operator, 70<br />

evaluating an expression asynchronously,<br />

58<br />

greater than (>) operator, 75<br />

greater than or equal to (>=) operator, 80<br />

grouping operator, 70<br />

identity (===) operator, 5, 69, 107<br />

in operator, 94, 127<br />

increment (++) operator, 66<br />

incrementing or decrementing values, 66<br />

instanceof operator, 157<br />

less than (

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!