Facebook Pixel

JavaScript Interview Questions Asked by Specific Companies

Real JS interview questions asked by Amazon, Flipkart, Walmart, Ola, and Oyo.

JavaScript Interview Questions Asked by Specific Companies

Here are real JS interview questions asked by specific companies.

Amazon

  • sum(1)(2)(3)(4)..(n): implement a curried sum function.
  • Debounce: implement debounce from scratch.
  • Promise.polyfill: implement Promise.all.
  • Event loop: predict the output of mixed sync, microtask, and macrotask code.

Flipkart

  • Debouncing: implement debounce and explain when to use it.
  • Event delegation: explain and implement.
  • Deep clone: implement a deep clone function.
  • Array methods: implement map, filter, reduce polyfills.

Walmart

  • Throttling: implement throttle from scratch.
  • Debouncing vs Throttling: explain the difference and when to use each.
  • Prototypes: explain prototypal inheritance.
  • Closures: explain closures with a real example.

Ola

  • async and defer: explain the difference and their impact on rendering.
  • Event loop: explain how JS handles async.
  • this keyword: explain the binding rules.

Oyo

  • Event bubbling: explain event propagation.
  • Event delegation: implement with a real example.
  • stopPropagation: explain and when to use.

Google, Microsoft, Uber

  • Machine coding: build a UI component in 90 minutes.
  • System design: design a large frontend system.
  • DSA: data structures and algorithms.
  • Deep JS: closures, event loop, this, promises, prototypes.

The Takeaway

Company-specific questions: Amazon (currying, debounce, Promise.all), Flipkart (debounce, event delegation, deep clone), Walmart (throttle, debounce vs throttle, prototypes), Ola (async/defer, event loop), Oyo (event bubbling, delegation). Top companies also ask machine coding, system design, and DSA.

sum(1)(2)(3)(4)..(n) (currying), implement debounce, implement Promise.all polyfill, and predict event loop output (sync, microtask, macrotask ordering).

Implement debounce and explain when to use it, explain and implement event delegation, implement a deep clone function, and implement map/filter/reduce polyfills.

Implement throttle from scratch, explain the difference between debouncing and throttling and when to use each, explain prototypal inheritance, and explain closures with a real example.

Explain the difference between async and defer attributes and their impact on rendering, explain how JS handles async (event loop), and explain the this keyword binding rules.

Explain event bubbling (event propagation in DOM), explain and implement event delegation with a real example, and explain stopPropagation and when to use it.

Ready to master React completely?

Want to upskill yourself, crack your next interview, and get your dream job? Join our comprehensive course to dive deeper with high-quality video tutorials, solve interview questions, and a premium community.

Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.