Codington
0 of 6 problems solved • 0%
Use in a course

Exercise prompt

Console Mini Receipt

A customer needs a small console receipt. Write it from scratch.

Your task

A customer buys two notebooks for 25 each. Write three console.log() calls to make this receipt:

Notebook Price: 25 Total: 50

On the price line, pass the label and number as separate arguments. Calculate the total with 25 * 2 rather than writing 50 directly.