Are you referring to the following two statements?

// This cannot be true with the following statement.
addSubtract(1)(2)(3) === 0;
// This cannot be true with the preceding statement.
addSubtract(1)(2)(3)(4)(5)(6) === 5;

If you disagree, please provide an example function addSubtract such that both of the above statements are true. Please note the use of === and not just ==.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store