Foundations
Track a Status
Track a Status
Use let when a variable needs to hold one value now and a different value later.
Your task: Create a syncStatus variable that starts as "waiting". Log it, change it to "synced", then log it again.
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.
Track a Status
Use let when a variable needs to hold one value now and a different value later.
Your task: Create a syncStatus variable that starts as "waiting". Log it, change it to "synced", then log it again.