Last active
December 17, 2015 10:18
-
-
Save fedir/5593332 to your computer and use it in GitHub Desktop.
Create associative array in JS // ref. : http://www.xul.fr/ecmascript/associatif.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = new Array(); | |
o["un"] = 1; | |
o["deux"] = 2; | |
console.log(o.un) | |
console.log(o["deux"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment