CodeZettaInterview Hub

HTML · APIs · Senior · Best Practice

How do you feature-detect HTML APIs safely?

Short Interview Answer

Check property/method existence; provide fallbacks; avoid UA sniffing.

Detailed Explanation

Example: 'showModal' in HTMLDialogElement.prototype. Progressive enhancement first.

Did you know this answer?