seniorHTML5

Explain the 'Permissions API'.

Updated Apr 28, 2026

Short answer

A consistent way to query the status of API permissions (like camera, location).

Deep explanation

Before the Permissions API, you had to actually trigger the permission prompt to see if a user had denied it. Now, you can query the state ('granted', 'denied', or 'prompt') without bothering the user.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More HTML5 interview questions

View all →