fix(curriculum): Updated code example for RPG game explanation on variables (#53519)

This commit is contained in:
Bhumit Patel
2024-02-03 02:51:14 -05:00
committed by GitHub
parent 5d1fa66e08
commit 6dc7885c8e

View File

@@ -10,10 +10,10 @@ dashedName: step-7
Variables can be <dfn>assigned</dfn> a value. When you do this while you declare it, this is called <dfn>initialization</dfn>. For example:
```js
let camperbot = "Bot";
let age = 32;
```
This would initialize the `camperbot` variable with a value of `Bot`, a string.
This would initialize the `age` variable with a value of `32`, a number.
Initialize your `xp` variable to have a value of `0`, a number.