ajax Flashcards
PlainObject
PlainObject
The PlainObject type is a JavaScript object containing zero or more key-value pairs. The plain object is, in other words, an Object object. It is designated “plain” in jQuery documentation to distinguish it from other kinds of JavaScript objects: for example, null, user-defined arrays, and host objects such as document, all of which have a typeof value of “object.” The jQuery.isPlainObject() method identifies whether the passed argument is a plain object or not, as demonstrated below:
1 2 3 4 5 6 7 8 9 10 11 var a = []; var d = document; var o = {};
typeof a; // object
typeof d; // object
typeof o; // object
jQuery.isPlainObject( a ); // false
jQuery.isPlainObject( d ); // false
jQuery.isPlainObject( o ); // true
AJAX Request necessities
URL string,
var $body = $(‘body’)
the doller in the value before body tells the computer its jquery
the doller in the value before body tells the computer its jquery
Call Stack
The call stack is the mechanism that the JavaScript interpreter uses to keep track of its place in a
script that calls multiple functions.
It’s how JavaScript knows where it is, sort of like, I don’t know, a finger in a book.