Back
Close

Carpaccio programming JS

jlandure
5,315 views

Step 2

Now, we want to display the unit price for the article using the parameters of the function.

Are you able to display the unit price?
// Hi, there
// use console.log to print something
module.exports = (nbItems, pricePerItem, state) => {
};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

It's again basic but we now take input to print output.

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