mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-25 18:02:11 -05:00
chore(i18n,learn): processed translations (#51907)
This commit is contained in:
@@ -54,7 +54,24 @@ assert.match(code, /myStorage\.car\.inside/);
|
||||
`gloveBoxContents` should still be declared with `const`.
|
||||
|
||||
```js
|
||||
assert.match(code, /const\s+gloveBoxContents\s*=\s*myStorage\.car\.inside\[\s*("|')glove box\1\s*\]|const\s*{\s*('|")glove box\2:\s*gloveBoxContents\s*}\s*=\s*myStorage\.car\.inside;/);
|
||||
assert.match(code, /const\s+gloveBoxContents\s*=/);
|
||||
```
|
||||
|
||||
You should not change the `myStorage` object.
|
||||
|
||||
```js
|
||||
const expectedMyStorage = {
|
||||
"car":{
|
||||
"inside":{
|
||||
"glove box":"maps",
|
||||
"passenger seat":"crumbs"
|
||||
},
|
||||
"outside":{
|
||||
"trunk":"jack"
|
||||
}
|
||||
}
|
||||
};
|
||||
assert.deepStrictEqual(myStorage, expectedMyStorage);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user