mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
Fix Accessing Objects Properties with Bracket Notation output
This commit is contained in:
parent
8069e3b9e0
commit
0ea783e69a
@ -3328,7 +3328,7 @@
|
||||
"var drinkValue = testObj; // Change this line"
|
||||
],
|
||||
"tail": [
|
||||
"(function(a,b) { return \"entreeValue = '\" + a + \"', shirtValue = '\" + b + \"'\"; })(entreeValue,drinkValue);"
|
||||
"(function(a,b) { return \"entreeValue = '\" + a + \"', drinkValue = '\" + b + \"'\"; })(entreeValue,drinkValue);"
|
||||
],
|
||||
"solutions": [
|
||||
"var testObj = {\n \"an entree\": \"hamburger\",\n \"my side\": \"veggies\",\n \"the drink\": \"water\"\n};\nvar entreeValue = testObj[\"an entree\"];\nvar drinkValue = testObj['the drink'];"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user