Increment

Report a typo

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

Remember the difference between prefix and postfix increment.

Sample Input 1:

1 7 -4

Sample Output 1:

7

Sample Input 2:

5 5 5

Sample Output 2:

18
Write a program in JavaScript
// Write your code here
___

Create a free account to access the full topic