Have the function SimpleAdding(num) add up all the numbers from 1 to num. For the test cases, the parameter num will be any number from 1 to 1000.

Simple Adding Coderbyte Solution In Java
Simple Adding Coderbyte Solution In Python
Simple Adding Coderbyte Solution In JavaScript
Using the JavaScript language, have the function SimpleAdding(num) add up all the numbers from 1 to num. For the test cases, the parameter num will be any number from 1 to 1000.
This is a simple iterative function that add each number in sequence.
Steps for solution
1) Set var tot to 0.
2) Loop from 1 to num and add i by tot to get new tot.
3) Return tot for answer.