The code doesnt work at all

Tell us what’s happening:
Describe your issue in detail here.

I did what the lesson said. I went to the solution, copied it, and still didn’t work. Can someone help me?
Your code so far


// Setup
var testObj = {
"an entree": "hamburger",
"my side": "veggies",
"the drink": "water"
};
var json = require(index.json);
// Only change code below this line
var entreeValue = testObj["an entree"]; // Change this line
var drinkValue = testObj["the drink"]; // Change this line
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36

Challenge: Accessing Object Properties with Bracket Notation

Link to the challenge:

I just realized the test code I added made it break, never mind

Can I ask what the point of the require statement was?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.