fix(curriculum): pyramid generator step 24 optional comma (#58010)

This commit is contained in:
Anna
2025-01-09 07:11:37 +01:00
committed by GitHub
parent fb9e067a83
commit 762c53b69a
@@ -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.