JavaScript knowledge reference

Essential JavaScript Concepts

Explore all 134 knowledge cards from one complete menu. Each concept includes a quick tip, concise explanation, memory formula, example, and real-world uses for everyday reference, technical discussions, and interview preparation.

Topic 01

Core JavaScript Concepts

25 questions

Question 01

1. What is JavaScript, and why is it important?

Back to question menu
Question 02

2. What are the different data types in JavaScript?

Back to question menu
Question 03

3. What is the difference between var, let, and const?

Back to question menu
Question 04

4. What is hoisting?

Back to question menu
Question 05

5. What is a closure?

Back to question menu
Question 06

6. What is the difference between == and ===?

Back to question menu
Question 07

7. What is an arrow function?

Back to question menu
Question 08

8. What does the this keyword mean?

Back to question menu
Question 09

9. What is event bubbling?

Back to question menu
Question 10

10. What is event delegation?

Back to question menu
Question 11

11. What is a Promise?

Back to question menu
Question 12

12. What are async and await?

Back to question menu
Question 13

13. What is the difference between null and undefined?

Back to question menu
Question 14

14. What is the DOM?

Back to question menu
Question 15

15. What is scope in JavaScript?

Back to question menu
Question 16

16. What is a callback function?

Back to question menu
Question 17

17. What is callback hell?

Back to question menu
Question 18

18. What is JSON, and how is it used?

Back to question menu
Question 19

19. What is the difference between synchronous and asynchronous JavaScript?

Back to question menu
Question 20

20. What is a higher-order function?

Back to question menu
Question 21

21. What is currying?

Back to question menu
Question 22

22. What is debouncing?

Back to question menu
Question 23

23. What is throttling?

Back to question menu
Question 24

24. What is the difference between map() and forEach()?

Back to question menu
Question 25

25. What is the difference between a library and a framework?

Back to question menu
Back to question menu
Topic 02

1. JavaScript Fundamentals

3 questions

Question 26

What is a JavaScript engine?

Back to question menu
Question 27

What is the difference between client-side and server-side JavaScript?

Back to question menu
Question 28

What happens if a variable is assigned without a declaration?

Back to question menu
Back to question menu
Topic 03

2. Variables and Data Types

6 questions

Question 29

What is a variable?

Back to question menu
Question 30

What are primitive data types?

Back to question menu
Question 31

What is the difference between primitive values and objects?

Back to question menu
Question 32

What are arrays, functions, and objects?

Back to question menu
Question 33

What does the typeof operator do?

Back to question menu
Question 34

What is type coercion?

Back to question menu
Back to question menu
Topic 04

3. Operators and Conditions

4 questions

Question 35

What are unary, binary, and ternary operators?

Back to question menu
Question 36

What is operator precedence?

Back to question menu
Question 37

What is short-circuit evaluation?

Back to question menu
Question 38

What is the difference between spread and rest syntax?

Back to question menu
Back to question menu
Topic 05

4. Arrays

5 questions

Question 39

How do you add and remove array elements?

Back to question menu
Question 40

What is the difference between find() and filter()?

Back to question menu
Question 41

What is the difference between slice() and splice()?

Back to question menu
Question 42

How do sorting and reversing affect arrays?

Back to question menu
Question 43

What are array destructuring and array-like objects?

Back to question menu
Back to question menu
Topic 06

5. Loops

5 questions

Question 44

What is a loop?

Back to question menu
Question 45

Which loop should you choose?

Back to question menu
Question 46

What is the difference between break and continue?

Back to question menu
Question 47

What is the difference between for...of and for...in?

Back to question menu
Question 48

How does forEach() compare with for...of?

Back to question menu
Back to question menu
Topic 07

6. Functions

11 questions

Question 49

What function forms are available?

Back to question menu
Question 50

What is the difference between named and anonymous functions?

Back to question menu
Question 51

What is the purpose of anonymous functions?

Back to question menu
Question 52

What is a function expression?

Back to question menu
Question 53

What is the difference between parameters, arguments, and defaults?

Back to question menu
Question 54

What are first-class functions?

Back to question menu
Question 55

Why use callback functions?

Back to question menu
Question 56

What is a pure function?

Back to question menu
Question 57

What is function composition?

Back to question menu
Question 58

What is functional programming?

Back to question menu
Question 59

What do call(), apply(), and bind() do?

Back to question menu
Back to question menu
Topic 08

7. Strings

2 questions

Question 60

What are template literals?

Back to question menu
Question 61

What does string immutability mean?

Back to question menu
Back to question menu
Topic 09

8. The DOM

4 questions

Question 62

What is the difference between HTML and the DOM?

Back to question menu
Question 63

How do DOM selector methods differ?

Back to question menu
Question 64

What is the difference between innerHTML and textContent?

Back to question menu
Question 65

How do you create, clone, and remove DOM nodes?

Back to question menu
Back to question menu
Topic 10

9. Error Handling

3 questions

Question 66

What do try, catch, finally, and throw do?

Back to question menu
Question 67

What is error propagation?

Back to question menu
Question 68

What are common error types and good handling practices?

Back to question menu
Back to question menu
Topic 11

10. Objects, Sets, and Maps

5 questions

Question 69

What are classes and objects?

Back to question menu
Question 70

How do object access and iteration work?

Back to question menu
Question 71

What is the difference between a shallow and deep copy?

Back to question menu
Question 72

What is a Set?

Back to question menu
Question 73

What is the difference between a Map and an object?

Back to question menu
Back to question menu
Topic 12

Asynchronous JavaScript

3 questions

Question 74

Explain the JavaScript event loop.

Back to question menu
Question 75

How do you implement and use a Promise?

Back to question menu
Question 76

How do you handle errors with async and await?

Back to question menu
Back to question menu
Topic 13

11. Browser Events

6 questions

Question 77

What is event handling?

Back to question menu
Question 78

What is an event object?

Back to question menu
Question 79

What are capturing, target, and bubbling phases?

Back to question menu
Question 80

What is the difference between preventDefault() and stopPropagation()?

Back to question menu
Question 81

What is the difference between target and currentTarget?

Back to question menu
Question 82

How do you remove an event listener?

Back to question menu
Back to question menu
Topic 14

12. Senior Events

2 questions

Question 83

What is event capturing?

Back to question menu
Question 84

How do you stop event propagation?

Back to question menu
Back to question menu
Topic 15

13. Debouncing and Throttling

2 questions

Question 85

When should you use debounce?

Back to question menu
Question 86

What is the difference between debounce and throttle?

Back to question menu
Back to question menu
Topic 16

14. Event Loop

2 questions

Question 87

In what order will synchronous logs and a zero-delay timer run?

Back to question menu
Question 88

Where do Promise callbacks fit in the event loop?

Back to question menu
Back to question menu
Topic 17

15. Prototypes and Inheritance

3 questions

Question 89

What is prototypal inheritance?

Back to question menu
Question 90

How does prototypal inheritance differ from class inheritance?

Back to question menu
Question 91

Should you modify built-in prototypes?

Back to question menu
Back to question menu
Topic 18

16. Async Functions and Promises

2 questions

Question 92

What does an async function return?

Back to question menu
Question 93

What is the relationship between async/await and Promises?

Back to question menu
Back to question menu
Topic 19

17. Pure Functions

1 questions

Question 94

When are pure functions useful?

Back to question menu
Back to question menu
Topic 20

18. Browser Compatibility

2 questions

Question 95

What is polyfilling?

Back to question menu
Question 96

What are the drawbacks of polyfills?

Back to question menu
Back to question menu
Topic 21

19. Closures

2 questions

Question 97

Where are closures used?

Back to question menu
Question 98

What are the drawbacks of closures?

Back to question menu
Back to question menu
Topic 22

20. Browser Storage

1 questions

Question 99

What is the difference between cookies, localStorage, and sessionStorage?

Back to question menu
Back to question menu
Topic 23

21. Application Performance

6 questions

Question 100

How would you optimise a new front-end application?

Back to question menu
Question 101

Why bundle and compress JavaScript?

Back to question menu
Question 102

What are minification and uglification?

Back to question menu
Question 103

What are source maps?

Back to question menu
Question 104

What is code splitting?

Back to question menu
Question 105

What is tree shaking?

Back to question menu
Back to question menu
Topic 24

22. Image Performance

2 questions

Question 106

How would you optimise large images?

Back to question menu
Question 107

Why specify image width and height?

Back to question menu
Back to question menu
Topic 25

23. Code Quality and Testing

2 questions

Question 108

How would you manage code quality at scale?

Back to question menu
Question 109

Which testing layers would you use?

Back to question menu
Back to question menu
Topic 26

24. Front-End Security

2 questions

Question 110

What is an XSS attack?

Back to question menu
Question 111

How do you prevent XSS?

Back to question menu
Back to question menu
Topic 27

25. Content Delivery Networks

4 questions

Question 112

What is a CDN and how does it work?

Back to question menu
Question 113

What are the advantages of a CDN?

Back to question menu
Question 114

What are the disadvantages of a CDN?

Back to question menu
Question 115

Which CDN providers could you use?

Back to question menu
Back to question menu
Topic 28

26. Front-End Architecture

5 questions

Question 116

What are micro-frontends?

Back to question menu
Question 117

When would you use micro-frontends?

Back to question menu
Question 118

What are the benefits of micro-frontends?

Back to question menu
Question 119

What are the disadvantages of micro-frontends?

Back to question menu
Question 120

What criteria would justify moving from a frontend monolith?

Back to question menu
Back to question menu
Topic 29

27. Runtime and Memory

6 questions

Question 121

What is the temporal dead zone?

Back to question menu
Question 122

What does strict mode change?

Back to question menu
Question 123

Is JavaScript pass-by-value or pass-by-reference?

Back to question menu
Question 124

How does JavaScript garbage collection work?

Back to question menu
Question 125

What commonly causes memory leaks in browser applications?

Back to question menu
Question 126

When should you use WeakMap or WeakSet?

Back to question menu
Back to question menu
Topic 30

28. Modern JavaScript and Browser APIs

8 questions

Question 127

What is a Symbol and when is it useful?

Back to question menu
Question 128

How do the Promise combinators differ?

Back to question menu
Question 129

Why does fetch not reject for HTTP errors?

Back to question menu
Question 130

How do you cancel asynchronous browser work?

Back to question menu
Question 131

How do ES modules differ from CommonJS?

Back to question menu
Question 132

What is the difference between optional chaining and nullish coalescing?

Back to question menu
Question 133

When should you use a Web Worker?

Back to question menu
Question 134

What is CORS and how does it work?

Back to question menu
Back to question menu

Get In Touch


Ready to discuss your next project? Drop me a message.