fix(curriculum): update description and hint for js pyramid project (#54538)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Ethan Hancock
2024-04-26 06:26:37 +00:00
committed by GitHub
co-authored by Huyen Nguyen
parent 8cf4708cee
commit 918e1a473d
@@ -11,17 +11,17 @@ Another method essential for this project is the `.pop()` method. It removes the
When a method returns a value, you can think of it as giving the value back to you, making it available for use in other parts of your code.
Declare a `popped` variable, and assign it the result of `rows.pop()`. Then, log your `popped` variable.
Create a new variable called `popped` and assign it the result of `rows.pop()`. Then, log `popped` to the console.
# --hints--
You should declare a `popped` variable.
You should declare a variable called `popped`.
```js
assert.match(code, /popped/);
```
You should use `let` to declare your `popped` variable.
You should use `let` to declare your variable called `popped`.
```js
assert.match(code, /let\s+popped/);