cookie를 사용해서 쇼핑 카트 구현하기! var products = { 1: {title : 'Goods1'}, 2: {title : 'Goods2'}, 3: {title : 'Goods3'} } app.get('/products', function(req, res) { var output = '' for(var name in products){ output += `${products[name].title}` } res.send(`Products${output}CART`) }) 간단한 예제이기 때문에 DB 연결은 하지 않고 products 객체를 생성해서 사용 for ~ in문을 사용하여 products에 있는 값을 순회합니다! 이때 name -> 1 products[name] -> { title: ..