Cracking Frontend Developer Interview - Part 2

Riya Jain
3 min readMay 26, 2021

--

“This is the second part of Cracking Front-End Developer Interview which covers some of the questions asked on JavaScript. You can read the 1st part here.”https://riya-rj-jain.medium.com/cracking-frontend-developer-interview-1ae7370c4a79

“JavaScript waits for none”
“JavaScript is the duct tape of the Internet”

Questions asked on JavaScript:

  1. What is hoisting? Explain with example? Temporal Dead Zone?
  2. Difference between call, apply and bind. Give example.
  3. What is closure and what are the advantages of using closure?
  4. Event bubbling, event capturing/trickling, and event delegation
  5. Explain with examples of a deep and shallow copy.
  6. How Javascript code is executed?
  7. Explain features of ES6.
  8. JS engine archietecture.
  9. What is prototypal inheritance? Give example.
  10. Write Polyfill for my bind method.
  11. What is an event loop?
  12. splice vs slice method.
  13. What is type of null,undefined,function ,NaN.
  14. Difference between == and ===.
  15. Implement a product method that will return the product of two numbers.
  16. What is function currying? Give example
  17. What are promises in js? Difference between async-await vs promises.
  18. What are the advantages of using Axios over Fetch API?
  19. What is debouncing and create your own debouncing?
  20. Difference between debouncing and throttling with examples.
  21. Scope chain.
  22. Explain the CORS mechanism.
  23. Difference between setTimeout vs setInterval.
  24. What is optional chaining?
  25. Map vs filter vs forEach
  26. What is type coercion?
  27. How async/await works?
  28. Remove falsy values from Array.
  29. Shuffle elements in an array.
  30. How to empty an array?
  31. Falsy values in js.
  32. Different ways of creating an object.
  33. Deep copy of an object.
  34. Spread operator vs rest operator.
  35. What is a strict mode in js?
  36. What is eval()?
  37. Remove duplicate values from an array.
  38. Difference between null and undefined.
  39. Check if a given object is empty or not.
  40. Explain JWT in detail.
  41. Difference between stop propagation and prevent default method.
  42. What is array destructuring?
  43. Difference between the arrow and normal function.
  44. Practice more output questions in JS (related with this, closure, error). Attached link for output questions of javascript. https://github.com/lydiahallie/javascript-questions

46.Increment and decrement operator.

47.What is reference error and syntax error.

48.Explain what the callback function is and provide a simple example.

49.Given a string, reverse each word in the sentence.

50.Given two strings, return true if they are anagrams of one another.

51.How does this keyword works. Provide some examples.

52.What is the difference between var, let, and const.

53.Calculate the sum of all elements in a multidimensional array of infinite depth.

54.Find a maximum consecutive repeating char in a given string.

55.Design API polling mechanism. The API is called after a fixed interval. The API is a stock API that fetches the latest price of a stock. Upon fetching the results, render UI.

56.Filter movie list by average rating, name.Sort filtered list by any field inside movie object.

If you want to learn JavaScript, there are plenty of websites that provide free JavaScript tutorials.Top places to learn JavaScript

  1. Follow Akshay Saini on youtube for learning JavaScript in-depth.

2.Make projects on Javascript. Here are 30days of challenge Javascript.

“The more you let go of comfort, the more it comes along. In fact, it chases you.”

If you need any kind of help related to this you can ping me on LinkedIn https://www.linkedin.com/in/riya-jain-6691b8127/ and I will be happy to share my knowledge with you all.

Part 3 will be of ReactJs Related Questions. Till then Stay Tuned!:)

#frontendDeveloper #javaScript #htmlcss #interviewquestions

--

--