Build a Calculator - Step 16

Tell us what’s happening:

Im using arrow functions but why does my code
const calculateSquare = num => num ** 2
Fail, but yet
const calculateSquare = (num) => {return num ** 2}
Passes

Your code so far

function calculateSum(num1, num2) {
  return num1 + num2;
}

console.log(calculateSum(2, 5));
console.log(calculateSum(10, 10));
console.log(calculateSum(5, 5));

function calculateDifference(num1, num2) {
  return num1 - num2;
}

console.log(calculateDifference(22, 5));
console.log(calculateDifference(12, 1));
console.log(calculateDifference(17, 9));

function calculateProduct(num1, num2) {
  return num1 * num2;
}

console.log(calculateProduct(13, 5));


function calculateQuotient(num1, num2) {
  return num2 === 0 ? "Error: Division by zero" : num1 / num2;
}

console.log(calculateQuotient(7, 11));
console.log(calculateQuotient(3, 0));


// User Editable Region

const calculateSquare = num => num ** 2

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

Build a Calculator - Step 16

put round parenthesis around the parameter

I will open an issue for this restrictive test

thankyou, also the step 17 has the same bug with the removal of the parenthesis for a single param