Why is that? It seems that the system doesn’t care about the *50 if it isn’t in brackets. I would understand if it would give out an error but why does it outright ignore the *50 when not put inside the brackets?
The parens are the demarcation of the arguments list. Anything outside of that will not be seen by console.log(), only the line interpreter, which parses that once the return value has come back from the method.
const addAB = (a, b) => a + b;
c = addAB(3, 4) * 6 // the return value times 6
console.log(c) // 42
console.log(addAB(3, 4)) * 6
7
NaN
Any expression we write inside the parens will be evaluated before it is logged (as in before it is sent down to the method). The method itself has no return value, save undefined, which is not a number so any math done with it will result in the same, NaN.