javascript---the advantage of accessing the properties of object as array(objects as associative arrays
in javascript,we often use . operator to access the properties of an object like followings:
var
obj
=
new
myObj();
//
initialize the obj with new
var