Use a variable
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
Use a variable
A variable is a named box that holds a value. name = "Sam" puts Sam in the box name. Then print(name) shows what is inside.
Put Sam in a box called name, then print(name).
Click Run to see the output here.