Skip to content

Instantly share code, notes, and snippets.

@jerolan
Created October 16, 2019 20:09
Show Gist options
  • Save jerolan/ad94328e0e372a89928d61be71a56315 to your computer and use it in GitHub Desktop.
Save jerolan/ad94328e0e372a89928d61be71a56315 to your computer and use it in GitHub Desktop.

Revisions

  1. jerolan created this gist Oct 16, 2019.
    5 changes: 5 additions & 0 deletions simpleAdding.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    function simpleAdding(num) {
    let sum = 0;
    for (let i = 0; i <= num; i++) sum += i;
    return sum;
    }