Back to All Flashcards
Card 1 of 5 0%
0Hard
0Learning
0Know It
Question
Loading…
Click to reveal answer
Answer
All 5 Cards
#1
Q: Difference between let, const, var?
A: var: function-scoped, hoisted. let: block-scoped, reassignable. const: block-scoped, not reassignable.
#2
Q: What is a Promise?
A: An object representing the eventual result (or failure) of an async operation.
#3
Q: How does async/await work?
A: async makes a function return a Promise; await pauses execution until the Promise resolves.
#4
Q: What is the DOM?
A: Document Object Model — the browser's tree-like representation of an HTML page.
#5
Q: Arrow function syntax example?
A: const add = (a, b) => a + b;
Explore All 125 Free Decks