Foundations
Predict Reassignment
Predict Reassignment
Read this code without running it:
js
let deliveryStatus = "packed";
const firstLog = deliveryStatus;
deliveryStatus = "shipped";
const secondLog = deliveryStatus;
deliveryStatus = "delivered";Your task: Set the answer variables in the starter code to the values held by firstLog, secondLog, and deliveryStatus after all the code runs.
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.
Predict Reassignment
Read this code without running it:
js
let deliveryStatus = "packed";
const firstLog = deliveryStatus;
deliveryStatus = "shipped";
const secondLog = deliveryStatus;
deliveryStatus = "delivered";Your task: Set the answer variables in the starter code to the values held by firstLog, secondLog, and deliveryStatus after all the code runs.