Carpaccio programming JS
jlandure
23.5K views
Step 4
Now, we want to display the price if the customer take more than one item. We also want to display the price all taxes included for the state "CA" If the state is not "CA", please display the price without tax.
Are you able to display the price?
1
2
3
4
5
6
// Hi, there
// use console.log to print something
module.exports = (nbItems, pricePerItem, state) => {
};
With this step, we have a new version to allow our customer to buy more than one item! Great!
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Suggested playgrounds