JavaScript

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

6 Terms

1
New cards

Callback

a function passed as an argument to another functionwhich is invoked after the completion of another function's execution.

2
New cards

asynchronous

Functions running in parallel with other functions. A good example is JavaScript setTimeout()

3
New cards

passing function as an argument

When you pass a function as an argument, remember not to use parenthesis.

4
New cards

Two arguments of Promise.then()

Promise.then() takes two arguments, a callback for success and another for failure.

Both are optional, so you can add a callback for success or failure only.This allows for handling asynchronous operations in a more manageable way, enabling chaining of actions after the completion of a Promise.

5
New cards

XMLHttpRequest

is a built-in browser object (API) that allows JavaScript to make HTTP requests (like GET, POST, PUT, DELETE, etc.) to a server without doing a full page refresh. This is the core technology behind AJAX (Asynchronous JavaScript and XML), although nowadays it's more common to work with JSON than XML.

6
New cards