Round 1
Questions:
-
Event capturing, bubbling & delegation
-
Accessibility
-
Output based
// Problem const Foo = function(a) { function bar() { return a; } this.baz = function() { return a; }; }; Foo.prototype.biz = function() { return a; }; const f = new Foo(7); f.bar(); // ? f.baz(); // ? f.biz(); // ?
Follow up: How to make the first and third also return 7?
-
Write fibonacci. 1, 1, 2, 3, 5, 8, 13, 21, 34...
- Follow-up:
let memoizedFib = memoize(fib) memoizedFib(1000) ==> result is computed memoizedFib(1000) ==> no re-computation, the previous result has been cached and this call simply returns the value.
Write a generalised memoize fn.
-
Write basic HTML, JS and CSS for this. (JS Handlers and Questions around Perf)
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.