• 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/8

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;

8 Cards in this Set

  • Front
  • Back

Describe a callback function

Passing a function as an argument through another function - often seen within methods

Describe the difference between function declarations and expressions

Declaration: Defines a named function without requiring variable assignment (ex: function bar () { return: 3;}). Declarations are hoisted and the entire function body is lifted with it




Expression: Must start with “var”, and is not hoisted. Must be defined above code that is invoking

What is asynchronous execution?

Decouples data layer from presentation layer to create dynamic content on webpages without the need to reload a site.




With event-based asynchronous APIs, developers register an event handler for a given object (e.g. HTML Element or other DOM objects) and then call the action. The browser will perform the action usually in a different thread, and trigger the event in the main thread when appropriate.

Describe JavaScript Methods

JavaScript methods are the actions that can be performed on objects. A JavaScript method is actually a function definition stored as a property value (in an object).




var person = { firstName: "John",


lastName : "Doe",


fullName : function() { return this.firstName + " " + this.lastName; }};




document.getElementById("demo").innerHTML = person.fullName();

Regular expressions

Everything is essentially a character, and we are writing patterns to match a specific sequence of characters

What is this?

this is a DOM element. this sets the scope of the callback function to the element which is the subject of the callback

jQuery Method Chaining

Allows us to run multiple jQuery commands, one after the other, on the same element(s). This way, browsers do not have to find the same element(s) more than once.

Event Object

need to fill in info