Async Operation in JavaScript

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

Flashcards covering key vocabulary and concepts related to asynchronous operations in JavaScript as discussed in the COMP4216/COMP5216 lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

Callback

A function passed as an argument to another function, to be invoked after some operation.

2
New cards

Event Queue

A data structure that manages asynchronous callbacks, including events like clicks and I/O operations.

3
New cards

Promise

An object that represents the eventual completion or failure of an asynchronous operation, used in modern JavaScript.

4
New cards

Async function

A function declared with the keyword 'async', allowing the use of 'await' for asynchronous operations.

5
New cards

Await

A keyword used to pause the execution of an async function until a Promise is settled.

6
New cards

Synchronous

A programming model where operations are performed one at a time, in sequence.

7
New cards

Callback hell

A situation in JavaScript where multiple nested callbacks make code difficult to read and maintain.

8
New cards

setTimeout

A built-in function that sets a timer to execute a function after a specified amount of time.

9
New cards

setInterval

A built-in function that repeatedly executes a function at specified intervals.

10
New cards

Asynchronous Operation

An operation that allows a program to continue executing while waiting for an external process, like a network request, to complete.