Carpaccio programming JS
jlandure
22.9K views
Step 8
Now, we want to add the discount beginning at 1k for small customers.
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 discounted price for our small customers.
Let's go to the next step.
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Suggested playgrounds