ajax Flashcards

1
Q

PlainObject

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

AJAX Request necessities

A

URL string,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

var $body = $(‘body’)

the doller in the value before body tells the computer its jquery

A

the doller in the value before body tells the computer its jquery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Call Stack

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly