Get Programming with JavaScript - Listing 5.18

Listing 5.18 - Functions with two parameters

const showSum = (number1, number2) => { const total = number1 + number2; console.log(`The sum is ${total}`); }; showSum(30, 23); showSum(2.8, -5);