META Experience QA - rs-hash/GETTHATJOB GitHub Wiki
FRONT END
For a recursive description of DOM elements i.e. var dom = { type:'div', props:{id:'hello', children:[{type:'h1', children:'HELLO'}]}}. Define a function that prepares a actual dom elements.
Prepare a setTimeout and clearTimeout and clearAllTimeouts . Should be global and have a garbage collection system for all running timeouts on demand.
create a function to clearAllTimeouts. And create a render function that takes a nested object of dom elements and appends them to the document body
the difference between apply/call - balanced BST complexity
Tell us about your JS experience?
Improve a given JS snippet, find particular node in dom tree.
What is this in JavaScript. Asked about Queue and Stack in web.
what's the data structure of DOM, what's the difference between apply and call.
How to mimic stack and queue in javascript
What does apply function do?
covering JS fundamentals like "this", event delegation, event listeners. At the end I was also asked some straightforward data structures questions about queues, stacks, and implementing them in JS
What data structure is the DOM based off of
Assuming the DOM has a balanced number of nodes in the tree, how many levels will it have for n nodes
Describe the difference between a queue and a stack. What’s the simplest way to implement a queue in JS?What methods would you use?
What’s the simplest way to implement a stack in JS? What methods would you use?
Given two identical DOM tree structures, A and B, and a node from A, find the corresponding node in B.
Write a throttle and/or debounce function.
Given two Identical DOM tress A and B, check if a Node in A also exists in B
understanding of timeouts, prototypes, the DOM, and your knowledge about different javascript collections.
The second coding round was an algorithm and data structure problem with a front end slant, you need to have a good understanding of the DOM
runtime for search algorithms
It was a tree traversal question. Given a tree with specific nodes to visit, traverse another tree with the same structure and visit the nodes in same positions.
(difference between call and apply, map and forEach, etc
what is 'this', what is closure, var vs const vs let, DOM tree