DOM Manipulation

setTimeout

setTimeout

setTimeout schedules work to happen later. The callback does not run while the timer is being registered, so the page should keep its initial state until the delay passes.

This is useful for delayed notices, optimistic UI states, and short waits after user actions. The important model is scheduling a DOM change, not blocking the rest of the script.

Your task: Schedule the loading message to change to Report ready after a short delay. The message should be updated by the timer callback.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

setTimeout

setTimeout schedules work to happen later. The callback does not run while the timer is being registered, so the page should keep its initial state until the delay passes.

This is useful for delayed notices, optimistic UI states, and short waits after user actions. The important model is scheduling a DOM change, not blocking the rest of the script.

Your task: Schedule the loading message to change to Report ready after a short delay. The message should be updated by the timer callback.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

Console

Run code to see output.