オブジェクトのfor文 配列のfor文
const obj = {
facebook: "http://facebook.com",
twitter: "https://twi.co.jp",
youtube: "https://yt.com",
}
for (key in obj) {
console.log(`キー: ${key} URL: ${obj[key]}`);
}const arr = [1, 2, 3, 4];
for (value of arr) {
console.log(`配列要素: ${value}`);
}