Ad
Code
Diff
  • numSum = (num) => num*++num >> 1;
      
    • function numSum(num){
    • var r = (num++ * num) / 2;
    • return r;
    • }
    • numSum = (num) => num*++num >> 1;