Search⌘ K
AI Features

Total Cart Price: Exercise

Understand how to calculate the total price of a shopping cart using RamdaJS. This lesson helps you apply point-free style and functional programming patterns to write concise and clean JavaScript code for real-world tasks.

We'll cover the following...

Calculate a shopping cart’s total price in dollars.

Usage

const price = getTotalPrice(cart); // '$44.20'

Your solution must be point-free.

Javascript (babel-node)
import {} from 'ramda';
import cart from './cart';
const getTotalPrice = () => {};