<script>
const products = [
{name: '반팔티', price: 15000 },
{name: '긴팔티', price: 20000 },
{name: '핸드폰케이스', price: 15000 },
{name: '후드티', price: 30000 },
{name: '바지', price: 25000 }
];
go(
products,
products => filter(p => p.price < 20000, products),
products => map(p=> p.price, products),
price => reduce(add, prices),
console.log
);
//
</script>
코드창에 이렇게 작성했는요!
콘솔창에 이런 메시지가 뜨는데 어떻게 해결해야 되나요 ?
Uncaught ReferenceError: go is not defined
감사해요!!