learn kro favicon img

Top 50 advanced Javascript questions

Here are 50 advanced JavaScript questions that you may encounter during an interview:

  1. What is the event loop in JavaScript?
  2. How do you handle asynchronous code in JavaScript?
  3. What is a microtask in JavaScript?
  4. What is a macrotask in JavaScript?
  5. What is a Task queue in JavaScript?
  6. What is a Job queue in JavaScript?
  7. What is the difference between a microtask and a macrotask in JavaScript?
  8. What is a Promise in JavaScript?
  9. What is the difference between a resolved promise and a rejected promise in JavaScript?
  10. What is a catch block in a Promise in JavaScript?
  11. What is a finally block in a Promise in JavaScript?
  12. What is a Promise.all() in JavaScript?
  13. What is a Promise.race() in JavaScript?
  14. What is a Promise.resolve() in JavaScript?
  15. What is a Promise.reject() in JavaScript?
  16. What is a generator function in JavaScript?
  17. What is the purpose of the yield keyword in a generator function in JavaScript?
  18. What is the purpose of the next() method in a generator function in JavaScript?
  19. What is the purpose of the return() method in a generator function in JavaScript?
  20. What is the purpose of the throw() method in a generator function in JavaScript?
  21. What is a async function in JavaScript?
  22. What is the purpose of the await keyword in an async function in JavaScript?
  23. What is the difference between a regular function and an async function in JavaScript?
  24. What is a async generator function in JavaScript?
  25. What is the purpose of the yield* keyword in an async generator function in JavaScript?
  26. What is a proxy in JavaScript?
  27. What is the purpose of a proxy in JavaScript?
  28. What is a reflect in JavaScript?
  29. What is the purpose of a reflect in JavaScript?
  30. What is a decorator in JavaScript?
  31. What is the purpose of a decorator in JavaScript?
  32. What is a mixin in JavaScript?
  33. What is the purpose of a mixin in JavaScript?
  34. What is a higher-order function in JavaScript?
  35. What is the purpose of a higher-order function in JavaScript?
  36. What is a curried function in JavaScript?
  37. What is the purpose of a curried function in JavaScript?
  38. What is a partial function in JavaScript?
  39. What is the purpose of a partial function in JavaScript?
  40. What is a composable function in JavaScript?
  41. What is the purpose of a composable function in JavaScript?
  42. What is a monad in JavaScript?
  43. What is the purpose of a monad in JavaScript?
  44. What is a functor in JavaScript?
  45. What is the purpose of a functor in JavaScript?
  46. What is a monoid in JavaScript?
  47. What is the purpose of a monoid in JavaScript?
  48. What is a semigroup in JavaScript?
  49. What is the purpose of a semigroup in JavaScript?
  50. What is a chainable function in JavaScript?

You Might Like:

Let’s say we have a complex object, and we’d like to convert it into a string, to send it over ...
Read More
Let’s meet a new built-in object: Date. It stores the date, time and provides methods for date/time management. For instance, ...
Read More
The two most used data structures in JavaScript are Object and Array.
  • Objects allow us to create a single ...
    Read More
Let’s step away from the individual data structures and talk about the iterations over them. In the previous chapter we ...
Read More
As we know from the chapter Garbage collection, JavaScript engine keeps a value in memory while it is “reachable” and can ...
Read More
Till now, we’ve learned about the following complex data structures:
  • Objects are used for storing keyed collections.
  • Arrays are ...
    Read More
Iterable objects are a generalization of arrays. That’s a concept that allows us to make any object useable in a ...
Read More
1. The following recursive code will cause a stack overflow if the array list is too large. How can you ...
Read More
1. difference between Function.prototype.apply and Function.prototype.call? The only difference between apply and call is how we pass the arguments in ...
Read More
Solve 10 Days of JavaScript HackerRank Problems Today we’ve solved several JavaScript coding interview problems from hackerrank.com. Here we’ve presented ...
Read More

Leave a Comment

Your email address will not be published. Required fields are marked *