mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-05 21:03:24 -05:00
fix(curriculum): Remove quotes from object keys (#52437)
This commit is contained in:
@@ -76,9 +76,9 @@ assert(code.match(/testObj\.\w+/g).length > 1);
|
||||
```js
|
||||
// Setup
|
||||
const testObj = {
|
||||
"hat": "ballcap",
|
||||
"shirt": "jersey",
|
||||
"shoes": "cleats"
|
||||
hat: "ballcap",
|
||||
shirt: "jersey",
|
||||
shoes: "cleats"
|
||||
};
|
||||
|
||||
// Only change code below this line
|
||||
@@ -90,9 +90,9 @@ const shirtValue = testObj; // Change this line
|
||||
|
||||
```js
|
||||
const testObj = {
|
||||
"hat": "ballcap",
|
||||
"shirt": "jersey",
|
||||
"shoes": "cleats"
|
||||
hat: "ballcap",
|
||||
shirt: "jersey",
|
||||
shoes: "cleats"
|
||||
};
|
||||
|
||||
const hatValue = testObj.hat;
|
||||
|
||||
Reference in New Issue
Block a user