HOW DO YOU ASSIGN OBJECT PROPERTIES?

Amit Singh

Total Post:562

Points:2810
Posted by  Amit Singh
 1147  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:562

    Points:2810
    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".

      Modified On Mar-26-2018 06:04:24 AM

Answer

NEWSLETTER

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