FreeCodeCampChina / freecodecamp.cn

FCC China open source codebase and curriculum. Learn to code and help nonprofits.

Home Page:https://fcc.asia/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

为什么过不去?例题和实际无联系。

FEILELAI opened this issue · comments

Challenge Accessing Objects Properties with Bracket Notation has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// 初始化变量
var testObj = {
  "an entree": "hamburger",
  "my side": "veggies",
  "the drink": "water"
};

// 请只修改这条注释以下的代码

var entreeValue = testObj;   // 请修改这一行
var drinkValue = testObj;    // 请修改这一行

var entreeValue = testObj["an entree"]; // 请修改这一行
var drinkValue = testObj["the drink"]; // 请修改这一行