All quizzesEasy
Observables & HTTP
Preview — 3 of 10 questions
Which of the following best describes an RxJS Observable?
AA Promise that can emit multiple values
BA lazy data producer that emits zero or more values over time, to which consumers subscribe
CA synchronous array of values with functional methods
DA class that wraps a single value and notifies listeners on change
What are the three callbacks accepted by subscribe()?
Anext, error, complete
BonStart, onData, onEnd
Cresolve, reject, finally
Demit, catch, done
What does the async pipe do in an Angular template?
AIt makes the template expression execute asynchronously in a Web Worker
BIt delays template rendering by one tick to avoid change detection issues
CIt subscribes to an Observable or Promise and returns the latest emitted value, automatically unsubscribing when the component is destroyed
DIt caches the result of a Promise and replays it to new subscribers
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.