mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
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:
co-authored by
Huyen Nguyen
parent
8cf4708cee
commit
918e1a473d
+3
-3
@@ -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/);
|
||||
|
||||
Reference in New Issue
Block a user