How do you assign object properties?

How do you assign object properties?

obj["age"] = 17 or obj.age = 17. 

By:Rajesh Kumar
Date:2026-03-10 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Javascript SUB Links

Javascript SUB interview questions and answers for experienced and fresher