Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save leben-jp/9fa60125468c2ac6936bf95693aeac13 to your computer and use it in GitHub Desktop.
Save leben-jp/9fa60125468c2ac6936bf95693aeac13 to your computer and use it in GitHub Desktop.
var key, Hash, val, temp;
Hash =
{
dog: "犬",
cat: "猫",
elefant: "象",
pig: "豚",
bird: "鳥",
};
Hash.hito = "人";
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