• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/6

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

6 Cards in this Set

  • Front
  • Back
What is the difference between an event handler returning false and calling Event.preventDefault()?
Returning false not only prevents the browser's default behavior but also stops propagation of the event.
How do you test that a symbol is undefined?
if (typeof mySymbol == "undefined") { /* ... */ }

Note the use of "undefined" as a string.
What's the difference between referencing an undefined variable vs. an undefined property of a variable?
The former throws a ReferenceError, while the latter resolves to undefined (the only value of the special undefined type).
In the jQuery UI $.widget() framework, how do you refer to the jQuery object on which a jQuery UI widget was instantiated?
this.element

Note that this yields a *jQuery* object, not a DOM element.
What's the signature for setTimeout()?
setTimeout(code, milliseconds, [lang])

'code' may be a function or an expression.

http://www.w3schools.com/jsref/met_win_settimeout.asp
What's the signature for setInterval()?
setInterval(code, milliseconds, [lang])

'code' may be a function or an expression.

http://www.w3schools.com/jsref/met_win_setinterval.asp