Decrement

Report a typo

Write the sum function that returns the sum of three variable values, where each is decreased by one. Use variables a, b and c as function parameters.

Remember the difference between prefix and postfix increment.

Sample Input 1:

10 11 -2

Sample Output 1:

16

Sample Input 2:

1 1 0

Sample Output 2:

-1
Write a program in JavaScript
// Write your code here
___

Create a free account to access the full topic