Exam · JavaScript: the browser, events and application state

Take the exam and earn your certificate.

A real, server-scored exam for this course. Score strictly above 80% to pass and get a genuine, verifiable certificate.

Before you start

We ask for your name and email first, the same as a PDF download, so we know you are here and your certificate can carry the right name.

We privately record your name, email and request IP for this exam request. Read the privacy notice and retention policy.

Visit Mickai on LinkedIn

Complete the security check before submitting.

Cloudflare Turnstile helps prevent automated submissions. How this check uses data.

You can retake the exam any time. Each attempt draws a fresh set of questions.

Written practice, ungraded

Write your response in your own notes, then compare it with the sample answer. This practice is separate from the scored exam and does not affect your certificate.

Practice 1

Explain the paper load-order plan for the course classic script and distinguish its recorded module example.

Compare with a sample answer

The classic app script uses defer so it runs after parsing and can find the cards. The course module test opened from disk was blocked in Edge; modules are described as deferred automatically, and the course advises testing them through a server. This explanation did not load either script.

The sample retains timing and the specific historical module result.

Practice 2

Explain a fictional delegated button-click path, distinguishing target, currentTarget and keyboard activation.

Compare with a sample answer

A click starts at target and bubbles to the list listener. currentTarget is the list whose listener is running. closest finds the relevant button or no match. A real button supports Enter and Space activation in the recorded example; this paper explanation is not a keyboard test of a whole page.

The sample separates origin, listener element, matching and native control behaviour.

Practice 3

Explain on paper how shortlist state, visible pressed state and keyboard focus should remain distinct. Describe a safe text choice without an injection example.

Compare with a sample answer

Keep shortlisted names in one state object and render pressed attributes and the status text from it. Update existing buttons rather than replace them so the focused element is retained. Keep toggle labels stable. Treat supplied text as text with textContent rather than interpreting it as HTML. This is a design explanation, not a security or focus acceptance test.

The sample retains state/output, element identity and defensive text handling.

Practice 4

Describe a fictional form error response and a non-focus success status. Include the browser/server boundary.

Compare with a sample answer

Describe errors beside their fields, associate them with aria-describedby, mark invalid fields and move focus to the first error. Use an initially present status region for a short result that does not take focus. Email shape is not delivery or ownership; a real server must recheck input. The course demonstration sends nothing and uses invented details. No form or announcement was tested here.

The sample uses the source error/status pattern without claiming live delivery or screen-reader acceptance.

Practice 5

Explain a paper storage plan for a harmless fictional shortlist and two limits. Do not supply a credential or perform a storage test.

Compare with a sample answer

Encode the list with JSON text and handle reads, parsing and writes with try/catch so failures can fall back to an empty list or a warning. Keep passwords, tokens and personal details out. File-URL storage behaviour is undefined and may differ from the recorded Edge example; private or blocked storage can also be unavailable. This plan did not read or write storage.

The sample retains text encoding, error handling and storage limits.

Practice 6

List three conceptual review concerns and corrections for an assistant draft, with an honest acceptance boundary. Do not reproduce or test an injection.

Compare with a sample answer

Check for user text interpreted as markup and prefer textContent; check for new listeners registered during every render and register one delegated listener once; check for imitation clickable content and use real buttons. These are paper review concerns, not executed checks or proof of security, keyboard usability, screen-reader behaviour or WCAG conformance.

The sample retains defensive concerns without payloads or vulnerability reproduction.

About this exam

Is this exam graded?

Yes. Every question is scored on our server, never in your browser, and you need a score strictly above 80% to pass. The questions are a real, reviewed bank for this course, drawn fresh for each attempt.

Is it only multiple choice?

Yes. This is a multiple-choice knowledge assessment, with at least one question from each chapter in every attempt. Written exercises are separate practice and are not automatically scored. Passing does not establish practical professional competence or independently verify identity.

Is there a time limit?

Yes, 45 minutes, shown as a countdown once you start. If time runs out, whatever you have answered is submitted automatically.

Do I need to download the PDF first?

No. This course's full text is on its own page, so you can read it online and come straight here when you feel ready.

What do you do with my name and email?

We privately record your name, email, request IP, course and privacy acknowledgement for this request. Newsletter consent is separate and optional. See /privacy.html for storage and retention. A passed exam creates a server-stored named certificate. An email confirmation is not identity assurance.

Can I retake it if I fail?

Yes, straight away. Each attempt draws a fresh set of questions and shuffles the answer order, so it will not be identical to your last attempt, and an attempt can only be submitted once.

Is the certificate real?

It is a genuine, server-issued certificate with its own verification page and a unique ID, not a self-declared one. It records that you passed this course's exam on this date. It is not an accredited qualification, a professional licence or proof of employment.