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

Exercise prompt

Use Multiple Arrow Parameters

Separate multiple arrow-function parameters with commas, just as in a function declaration.

Example

const add = (first, second) => first + second;

Your task

Declare the concise arrow function calculateTotal with price and quantity parameters. Use it to display exactly:

Total: 28