๐ŸŸจ

JavaScript Interview Questions

50 questions ยท Closures, async, prototypes, ES6+ and core JavaScript interview questions.

50 results

1
JavaScriptBeginner#fundamentals#types

What are the data types in JavaScript?

Open
2
JavaScriptBeginner#scope#es6

Difference between var, let and const?

Open
3
JavaScriptBeginner#scope

What is hoisting?

Open
4
JavaScriptIntermediate#closures#functions

What is a closure?

Open
5
JavaScriptBeginner#operators#coercion

Explain == vs ===.

Open
6
JavaScriptBeginner#coercion

What are truthy and falsy values?

Open
7
JavaScriptIntermediate#this#functions

How does 'this' work in JavaScript?

Open
8
JavaScriptIntermediate#functions#this

Difference between call, apply and bind?

Open
9
JavaScriptIntermediate#functions#es6

Difference between arrow functions and regular functions?

Open
10
JavaScriptIntermediate#prototypes#oop

What is prototypal inheritance?

Open
11
JavaScriptIntermediate#oop#es6

What is the difference between an ES6 class and a constructor function?

Open
12
JavaScriptAdvanced#event-loop#async

Explain the event loop.

Open
13
JavaScriptAdvanced#event-loop#async

What are microtasks and macrotasks?

Open
14
JavaScriptIntermediate#async#promises

What is a Promise and what are its states?

Open
15
JavaScriptAdvanced#async#promises

Difference between Promise.all, allSettled, race and any?

Open
16
JavaScriptIntermediate#async

How does async/await work?

Open
17
JavaScriptIntermediate#async#performance

How do you run async calls in parallel with async/await?

Open
18
JavaScriptBeginner#async

What is callback hell and how do you avoid it?

Open
19
JavaScriptIntermediate#dom#events

What is event bubbling, capturing and delegation?

Open
20
JavaScriptIntermediate#dom#events

Difference between stopPropagation and preventDefault?

Open
21
JavaScriptAdvanced#performance#functions

What is debouncing and throttling?

Open
22
JavaScriptBeginner#arrays

Explain map, filter and reduce.

Open
23
JavaScriptBeginner#arrays

Difference between forEach and map?

Open
24
JavaScriptBeginner#arrays

Difference between slice and splice?

Open
25
JavaScriptBeginner#arrays

What do find, findIndex, some and every do?

Open
26
JavaScriptBeginner#es6

What is destructuring?

Open
27
JavaScriptBeginner#es6

Difference between spread and rest operators?

Open
28
JavaScriptIntermediate#objects

How do you deep clone an object?

Open
29
JavaScriptIntermediate#es6#operators

What is optional chaining and nullish coalescing?

Open
30
JavaScriptBeginner#fundamentals

Difference between null and undefined?

Open
31
JavaScriptIntermediate#es6#collections

Difference between Map/Set and plain objects/arrays?

Open
32
JavaScriptIntermediate#objects

What is the difference between shallow copy and deep copy?

Open
33
JavaScriptBeginner#es6#strings

What are template literals?

Open
34
JavaScriptAdvanced#functions

What is currying?

Open
35
JavaScriptIntermediate#functions

What is a higher-order function?

Open
36
JavaScriptAdvanced#performance#functions

What is memoization?

Open
37
JavaScriptBeginner#browser#storage

What are localStorage, sessionStorage and cookies?

Open
38
JavaScriptIntermediate#browser#async

How does fetch differ from XMLHttpRequest?

Open
39
JavaScriptIntermediate#browser#security

What is CORS?

Open
40
JavaScriptBeginner#async

What is the difference between synchronous and asynchronous code?

Open
41
JavaScriptAdvanced#es6

What are generators and iterators?

Open
42
JavaScriptIntermediate#es6#modules

What is the difference between a module and a script? (import/export)

Open
43
JavaScriptIntermediate#objects

What is the difference between Object.freeze and const?

Open
44
JavaScriptBeginner#numbers

What is NaN and how do you check for it?

Open
45
JavaScriptIntermediate#numbers

Why is 0.1 + 0.2 !== 0.3?

Open
46
JavaScriptIntermediate#dom#events

What is event delegation useful for in dynamic lists?

Open
47
JavaScriptIntermediate#browser#performance

What is the difference between defer and async on a script tag?

Open
48
JavaScriptAdvanced#performance#memory

What causes memory leaks in JavaScript?

Open
49
JavaScriptBeginner#types

What is the difference between typeof and instanceof?

Open
50
JavaScriptIntermediate#fundamentals

What is strict mode?

Open