Question:Define a function to sum up any number of numbers. 

Answer 
<script>
        function add(...numbers){
             
          let total=0;
          for(let n of numbers){
              total+=n;
          }
             return total;
        }

        document.write(add(3,4,3,5,7,3,23,7));
    </script>
 

+ Report
Total Preview: 678
Define a function to sum up any number of numbers.
Copyright © 2024. Powered by Intellect Software Ltd
  ","http://vcampusbd.com/answers/47483/define-a-function-to-sum-up-any-number-of-numbers","http://vcampusbd.com/images/vcampus_quiz.jpg","Javascript"); }); });