mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): pyramid generator step 24 optional comma (#58010)
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ assert.match(code, /let\s+cities/);
|
||||
You should assign an array of the strings `"London"`, `"New York"`, and `"Mumbai"` to the `cities` variable.
|
||||
|
||||
```js
|
||||
assert.match(code, /let\s+cities\s*=\s*\[\s*("|'|`)London\1\s*,\s*("|'|`)New York\2\s*,\s*("|'|`)Mumbai\3\s*\]/);
|
||||
assert.match(code, /let\s+cities\s*=\s*\[\s*("|'|`)London\1\s*,\s*("|'|`)New York\2\s*,\s*("|'|`)Mumbai\3\s*,?\s*\]/);
|
||||
```
|
||||
|
||||
You should use `console.log()` to log the entire `cities` array to the console.
|
||||
|
||||
Reference in New Issue
Block a user