Transfer practice · This program should show 6 before the update and 8 afterward. Repair the one misplaced line. The starting value and addition are correct.
v3 · Activity 1 of 1 · variable-reading · debugging · 2 min Runs here
Use a familiar idea in a different task. Read the changed requirement before running.
This program should show 6 before the update and 8 afterward. Repair the one misplaced line. The starting value and addition are correct.
6 8
Lines must stay in order. Spelling, capitalization and spaces inside a message matter.
local score=7
print(score)The unquoted name reads the stored number 7.
This activity reuses syntax you have already met.
The update correctly stores 15. The problem is in the final print(), where quotation marks stop Luau from reading the stored value.
Inspect the line that produces the wrong output. You do not need to change the starting value or the addition.
Select a word or symbol in this authored example. Your editor draft stays unchanged.
10
5
This is a private experiment copy. It does not replace your answer or complete the activity.
Your output will appear here.
Replace this code with the starter? Download your draft to keep a copy.
Your output will appear here.
Sign in with RoCreators to save private progress across devices. Community verification is separate.