1/9
Flashcards covering key vocabulary and concepts related to asynchronous operations in JavaScript as discussed in the COMP4216/COMP5216 lecture.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Callback
A function passed as an argument to another function, to be invoked after some operation.
Event Queue
A data structure that manages asynchronous callbacks, including events like clicks and I/O operations.
Promise
An object that represents the eventual completion or failure of an asynchronous operation, used in modern JavaScript.
Async function
A function declared with the keyword 'async', allowing the use of 'await' for asynchronous operations.
Await
A keyword used to pause the execution of an async function until a Promise is settled.
Synchronous
A programming model where operations are performed one at a time, in sequence.
Callback hell
A situation in JavaScript where multiple nested callbacks make code difficult to read and maintain.
setTimeout
A built-in function that sets a timer to execute a function after a specified amount of time.
setInterval
A built-in function that repeatedly executes a function at specified intervals.
Asynchronous Operation
An operation that allows a program to continue executing while waiting for an external process, like a network request, to complete.