FrontEnd Engineer | ZETA | HYD
Summary
I had a good interview experience for a FrontEnd Engineer role at ZETA, which included three specific coding questions focusing on JavaScript fundamentals, memoization, and implementing an Undo/Redo functionality within 60 minutes.
Full Experience
Round 1
- What would be the output of below code snippet
console.log(1)const promise = new Promise((resolve) => { console.log(2) resolve() console.log(3) })
console.log(4)
promise.then(() => { console.log(5) }).then(() => { console.log(6) })
console.log(7)
setTimeout(() => { console.log(8) }, 10)
setTimeout(() => { console.log(9) }, 0) - Implement Memoize funcion. Run it with input of different datatypes
- Implement a JS class HistoryManager that mimics Undo/Redo functionality
Need to complete all the questions within 60 minutes.
Interviewer had good Frontend expertise. Overall interview experience was good
Interview Questions (3)
JavaScript Event Loop Output Prediction
What would be the output of the below code snippet
console.log(1)const promise = new Promise((resolve) => { console.log(2) resolve() console.log(3) })
console.log(4)
promise.then(() => { console.log(5) }).then(() => { console.log(6) })
console.log(7)
setTimeout(() => { console.log(8) }, 10)
setTimeout(() => { console.log(9) }, 0)
Implement Memoize Function
Implement Memoize function. Run it with input of different datatypes
Implement HistoryManager with Undo/Redo
Implement a JS class HistoryManager that mimics Undo/Redo functionality