Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Reassigning a Variable | Manipulating Data
Introduction to JavaScript

Swipe to show menu

book
Challenge: Reassigning a Variable

Task

Swipe to start coding

You're building a file downloader for a web app. When the download starts, the status message should display "Downloading...". Once the download is complete, the status message should change to "Download Complete!".

Reassign statusMessage to "Download Complete!" after the first console.log statement.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 5
We're sorry to hear that something went wrong. What happened?

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Challenge: Reassigning a Variable

Task

Swipe to start coding

You're building a file downloader for a web app. When the download starts, the status message should display "Downloading...". Once the download is complete, the status message should change to "Download Complete!".

Reassign statusMessage to "Download Complete!" after the first console.log statement.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 5
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt