var show="<table><tr><th>물건명</th><th>가격</th><th>갯수</th></tr>"
// 배열 안에 객체 선언
var arry3 =[
{name:"사과",price:3000,cnt:2},
{name:"오렌지",price:4000,cnt:3},
{name:"딸기",price:5000,cnt:4}
]
// fruit = {name:"사과",price:3000,cnt:2},
arry3.forEach(function(fruit,idx){
show+="<tr><td>"+fruit.name+"</td><td>"+fruit.price+"</td><td>"+fruit.cnt+"</td></tr>"
});
show+="</table>"
div.innerHTML=show