Last active
February 25, 2018 10:15
-
-
Save leben-jp/2c421d392fd114387d1b1433516d5ffd to your computer and use it in GitHub Desktop.
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 key, Hash, val; | |
Hash = | |
{ | |
dog: "犬", | |
cat: "猫", | |
elefant: "象", | |
pig: "豚", | |
bird: "鳥", | |
}; | |
//↓更新 | |
Hash.elefant = "ぞう"; | |
//↓こちらも可 | |
//Hash["elefant"] = "ぞう"; | |
for (key in Hash) { | |
val = Hash[key]; | |
console.log("key -> " + key + ", val -> " + val); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment