[Iterable VS Enumerable] ๊น๋ํ๊ฒ ์ ๋ฆฌํ๊ณ ๊ฐ์๋ค
ํ ๋ฐฉ ์ ๋ฆฌ ๋ปํจ์๋ปํ์
์์Iterable๋ฐ๋ณต ๊ฐ๋ฅํfor (value of arr)์ํํ๋ฉด์ ๊ฐ์ ์ ๊ทผํ ์ ์๋๊ฐ iterator ๊ฐ์ฒด๊ฐ ์๋ ๋ฐ์ดํฐ ํ์
Array, map, set,nodeList, StringEnumerable์ด๊ฑฐ ๊ฐ๋ฅํ for ( key in obj)๊ฐ์ฒด์ key์ ์ ๊ทผํ ์ ์๋๊ฐ๊ฐ์ฒด ํ์
Object ์์ ๋ก ์ดํด๋ณด์// ๋ฐฐ์ด ์์let arr = ['Junha', 'Rany', 'Leo']arr.hobit = 'Prodo'// ๊ฐ์ฒด ์์let obj = { firstKey: ['Nunu','Garen'], secondKey:['Yumi','Galio','Ryze'], thirdKey:['Minsu','heejung']}obj.fourthKey = 'Junha' ..