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
Define a function to sum up any number of numbers.