Potential Interview Questions Flashcards
1
Q
Event delegation/Event bubbling
A
2
Q
Big-O Notation
A
The time complexity (not amount of time for completion) of an algorithm
- 0(1) = constant time (the fastest time possible), the number of operations never grows as the input grows in size
- 0(n) = linear time, each input value is operated on once, example: using a loop to iterate over every element in an array, object, or string
- 0(n^2) = quadratic time, number of operations multiplied by 4 for each doubling of the input size n, example: nested loop
- 0(2^n) = exponential time, extremely slow, the number of operations doubles for each additional input, example: brute-force password search
- 0(n!) = factorial time, slowest time ever
3
Q
AJAX
A
4
Q
DOM
A
5
Q
Scope
A
6
Q
Reference vs Primitive Data Types
A
7
Q
Closures
A
8
Q
Callbacks
A
9
Q
Asynchronous vs Synchronous
A
10
Q
Event Loop
A
11
Q
API
A
12
Q
REPL
A
13
Q
REST
A
14
Q
Prototypal Inheritance
A