<html> <head> <title>Associative Array Demo</title> <script> var a = new Object(); a["Name"]="Jhon"; a["Age"]=23; a["Language"]="English"; for(var i in a ) { document.write(i+"="+a[i]+"<br>"); } </script> </head> <body> </body> </html>
Name=Jhon
Age=23
Language=English