DEV Community

Cover image for Popular JavaScript Interview Questions
Hidayt Rahman
Hidayt Rahman

Posted on

Popular JavaScript Interview Questions

Basic Questions

  • What is JavaScript
  • Why JavaScript

DOM Questions

  • How to select all element with class?
  • What querySelector returns?
  • How to find an element in the tree?
  • How to select top most parent element?
  • How to select next element?
  • How to remove element?
  • How to add attribute?
  • How to select a data attribute?
  • How to set value on the data attribute?
  • How to apply style on element?

Demandable Questions

  • What is closure?
  • What is hoisting?
  • What is Higher Order Function?
  • What is Pure Function?
  • What is Recursion?
  • Where we should use Recursion?
  • What is reduce function?
  • What is map function?
  • What is filter function?
  • Difference between == and ===?
  • What is the difference between call, apply and map?

Basic DS and Algo

  • Calculate the functional arguments?
  • Find the largest number?
  • Return the unique numbers from the array?
  • Return the duplicate numbers from the array?
  • Find the falsy values and return them?
  • compare two arrays and returns true if both are same.
  • compare two objects and return true if both are same.
  • return flat array from the multi dimensional zig-zag array?

Advance Questions

  • What is function Curry?
  • How and where we can use function curry?
  • What is Debouncing in JavaScript?
  • What is throttling in JavaScript ?
  • Difference between throttling and debouncing?
  • What is event capturing and how we use?
  • What is event bubbling and how we use?
  • What is event delegation and how we use?

Save this article, I will update it regularly :)

Discussion (0)