Back
Close

Carpaccio programming JS

jlandure
5,299 views
Previous: Step 3 - Include Tax for CA Next: Step 5 - Open in Texas

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?
// Hi, there
// use console.log to print something
module.exports = (nbItems, pricePerItem, state) => {
};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants