SpiceQA
Questions
Tags
Users
Badges
Why can't I directly access a property of an object literal?
user_1642344
0
Created Mar 11, 2016
Edited Mar 11, 2016
Viewed 906
Follow
Why the following syntax
{a:1,b:2}.constructor
is invalid, whereas
[1,2].constructor
is valid?
javascript
22
0
Add comment
+
Share
2 Answers
Related