Hash Javascript

Hash are permutation of associative array.

var myArray = new Array();
 myArray['one'] = 1;
 myArray['two'] = 2;
myArray['three'] = 3;  // show the values stored
for (var i in myArray) {    
    console.log('key is: ' + i + ', value is: ' + myArray[i]);


key is: one, value is: 1

key is: two, value is: 2

key is: three, value is: 3

References :



About rahul23134654

Hi, I am Rahul Meha , B.E. in (I.T.)
This entry was posted in UI Js. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s