how to create object and assign the value in object?
2339
18-Mar-2011
Updated on 21-Sep-2020
Amit Singh
18-Mar-2011var obj =new Object();
or
obj={};
Assign the value in object
obj["name"]="amit";
or
obj.name="amit";