Accessing Objects Properties with Bracket Notation- Error message" ReferenceError: Can't find variable: entreeValue"
See original GitHub issueChallenge 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:
- Created 7 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The solution does not look like what is in the example at all.
@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.