how to create object and assign the value in object? Amit Singh208518-Mar-2011javascriptjavascript 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";