JavaScript Questions
Describe the difference between a cookie, sessionStorage and localStorage in browsers
Describe the difference between <script>, <script async> and <script defer>
What is the difference between a JavaScript variable that is: null, undefined or undeclared?
What are the differences between JavaScript ES2015 classes and ES5 function constructors?
Explain the differences between CommonJS modules and ES modules in JavaScript
What is a typical use case for anonymous functions in JavaScript?
What is a closure in JavaScript, and how/why would you use one?
What is the definition of a higher-order function in JavaScript?
What is the difference between .call and .apply in JavaScript?
What is the difference between mouseenter and mouseover event in JavaScript and browsers?
Explain the difference between synchronous and asynchronous functions in JavaScript
What are the pros and cons of using Promises instead of callbacks in JavaScript?
What are the differences between XMLHttpRequest and fetch() in JavaScript and browsers?
How do you abort a web request using AbortController in JavaScript?
Why is extending built-in JavaScript objects not a good idea?
What are the benefits of using spread syntax in JavaScript and how is it different from rest syntax?
What are iterators and generators in JavaScript and what are they used for?
Explain the difference between mutable and immutable objects in JavaScript
What is the difference between a Map object and a plain object in JavaScript?
What are the differences between Map/Set and WeakMap/WeakSet in JavaScript?
Why might you want to create static class members in JavaScript?
What advantage is there for using the JavaScript arrow syntax for a method in a constructor?
What tools and techniques do you use for debugging JavaScript code?