If I do
var a={a:1}
So a is instance of Object with more property?
How does it work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What will happen in that statement is that a variable named
awill be created.The
ainside the{a:1}is a property name, not a reference to the variablea.Hence,
a.awill give you1.