Frontend track

JavaScript interview questions and answers

Panel-ready Frontend Master questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

70 Qs
42 Moderate TypeScript Frontend

What is unknown versus any?

Short take

Simple meaning

Any turns off checking, so I can access any property and hide bugs.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
44 Moderate Web APIs Frontend

What is Intersection Observer used for?

Short take

Simple meaning

It tells you when an element enters the viewport without scroll listeners.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
45 Moderate Web APIs Frontend

What is the History API?

Short take

Simple meaning

PushState and replaceState change the URL without a full reload, which SPAs use for routing.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
47 Moderate JavaScript Frontend

What is optional chaining?

Short take

Simple meaning

The question mark dot stops the lookup and returns undefined if the left side is null or undefined.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
49 Moderate JavaScript Frontend

What memory leak might you cause with addEventListener?

Short take

Simple meaning

If I add a window resize listener in useEffect and forget the cleanup, the handler keeps the component closure alive after unmount.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
51 Moderate JavaScript Frontend

What is the difference between slice and splice?

Short take

Simple meaning

Slice returns a shallow copy of a portion and does not change the original, which is what I want in React.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 3 of 4 Next
Chat with us