JS Questions Short - rs-hash/Learning GitHub Wiki
- How does JavaScript work / Event loop
- Execution context
- Hoisting
- Scope chain
- Var, let, const, temporal dead zone
- this keyword
- call, apply, bind
- Closure
- Constructor functions, classes
- Prototypal inheritance
- Implement debounce
- Implement throttle
- Polyfill for map, reduce, filter, forEach
- Polyfill for call, apply, bind
- Polyfill for flat method
- Infinite depth flatten and flatten by a certain number
- Implement both recursive and iterative approaches
- Currying
- Given an object make the keys as values and values as keys. Handle duplicates, assuming values are only strings
- Implement observable (not very common, good to have)
- Promises
- Polyfill for promises
- Polyfill for Promise. all , allsettled and other methods
- Implement curry
- Spread, rest, destructuring
- Event delegation and event bubbling
- Implement setInterval using setTimeout
- Memoize any function
- Implement async series
- Generator functions