Calc , problem 3

PHOTO EMBED

Thu Apr 08 2021 14:28:54 GMT+0000 (UTC)

Saved by @latifa_amaireh

function sumAndMultiply(a, b, c) {
  let add = sum(a,b)[0] + c;
  let product = multiply(a,b)[0] * c;

  return [add,product,`${a} and ${b} and ${c} sum to ${add}.`,`The product of ${a} and ${b} and ${c} is ${product}.`]
}

testSumAndMultiply(4,7,5);
content_copyCOPY