HOW DO YOU ASSIGN OBJECT PROPERTIES?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
 1038  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    How do you assign object properties?

    we create object as

    var obj = new Object(); or var obj = {};

    we assign object properties as: 

    obj["name"] = "amit" or obj.name = "amit".

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!