Pergunta de entrevista da empresa ServiceNow

Round1: 1. sort 0's and 1's in an array 2. browser history implementation with stack, visit the site, back and forward, returning the current after these actions 3. Implementing setTimeOut without using setTimeOut 4. Implementing forEach without using .forEach on an array Round2: 1. Implement debounce functionality 2. Promises 3. Event Bubbling 4. Object freeze 5. Event related questions, target, node and element 6. CSS position related questions