Skip to content

Instantly share code, notes, and snippets.

@leben-jp
Last active February 25, 2018 10:15
Show Gist options
  • Save leben-jp/85e5ac6ec24876d2be3e78d837a8d6a7 to your computer and use it in GitHub Desktop.
Save leben-jp/85e5ac6ec24876d2be3e78d837a8d6a7 to your computer and use it in GitHub Desktop.
var key, Hash, val;
Hash =
{
dog: "犬",
cat: "猫",
elefant: "象",
pig: "豚",
bird: "鳥",
};
//↓削除
delete Hash.elefant;
//delete 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