โœ๏ธ Content byMd. Rakibul Islam
1

How would you use bitwise operators to implement a simple permissions/flags system?

โ†’
2

Explain how 'this' binding works across the four invocation patterns in JavaScript (regular function, method, constructor, arrow function).

โ†’
3

How does V8's hidden class and inline caching optimization affect how you should write JavaScript objects?

โ†’
4

What is structural sharing and why does it matter when working with deep copies and state management?

โ†’
5

Explain how floating-point representation can cause subtle bugs in real applications, and how do you mitigate them?

โ†’
6

How would you debug a memory leak caused by closures retaining references in a large JavaScript application?

โ†’
7

What is the difference between primitive wrapper objects and primitive values in JavaScript, and when does autoboxing occur?

โ†’
8

How does the abstract equality (==) algorithm actually work step-by-step in the ECMAScript specification?

โ†’
9

What are the differences between the engine's call stack, heap, and event loop in relation to JavaScript's execution model?

โ†’
10

Explain Symbol's role in JavaScript and a real-world scenario where it solves a problem other types can't.

โ†’
11

What is a labeled `break` statement and when would you use it?

โ†’
12

Explain the nullish coalescing operator `??` and how it differs from `||` for default values.

โ†’
13

What is optional chaining `?.` and how does it relate to conditional control flow?

โ†’
14

How would you refactor a long `switch` statement using an object lookup table? When is this pattern better?

โ†’
15

How does `switch` differ from `if...else if` in terms of performance and use case?

โ†’
16

What is the 'early return' pattern and how does it improve control flow readability?

โ†’
17

Scenario: You're reviewing a colleague's code and see `if (value == null)` โ€” is this a bug or intentional? Explain.

โ†’
18

Scenario: Write a function to find the first duplicate in an array using a loop. Optimize from O(nยฒ) to O(n).

โ†’
19

What is 'callback hell' and what techniques can you use to avoid it?

โ†’
20

What is a higher-order function? Name some built-in JavaScript higher-order functions.

โ†’

Showing 1โ€“20 of 78 questions

Javascript MOCK Interview Questions โ€” All Levels | UyTech