question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accessing Objects Properties with Bracket Notation- Error message" ReferenceError: Can't find variable: entreeValue"

See original GitHub issue

Challenge Accessing Objects Properties with Bracket Notation has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/601.5.17 (KHTML, like Gecko) Version/9.1 Safari/601.5.17. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// Setup
var testObj = {
  "an entree": "hamburger",
  "my side": "veggies",
  "the drink": "water"
};

// Only change code below this line

testObj["an entree"];
testObj["the drink"];

getting an error message… any idea please?

Error message**" ReferenceError: Can’t find variable: entreeValue"****

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
luke818hcommented, Apr 15, 2017

The solution does not look like what is in the example at all.

1reaction
erictleungcommented, Apr 6, 2016

@LibanTheDev go for it! 👍 Please read the contributing guidelines before taking care of the issue and visit the Contributors Help if you have any questions about helping.

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to access object property through bracket variable ...
I am attempting to access one of the object propertie through a bracket notation, but I can not figure out why it is...
Read more >
Property accessors - JavaScript - MDN Web Docs - Mozilla
Property accessors provide access to an object's properties by using the dot notation or the bracket notation.
Read more >
dot-and-bracket-notation-in-javascript - <capscode/>
To access javascript object properties using bracket notation, the key should be. Property identifiers have to be a String or a variable that...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
Since undefined is not an object type, calling a function or a property on such a variable causes the TypeError: Cannot read property...
Read more >
How to Access Object Properties Dynamically Using Bracket ...
Javascript allows you to access the properties of an object using dot notation or bracket notation. The latter can be quite useful if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found