Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sum of all numbers using function javascript

// sum of all number 


function sum(){
    let  InValue =0

    for (let index = 0; index < arguments.length; index++) {
      InValue +=arguments[index];
    }
    console.log(`Total sum of all number is = ${InValue} `);
}


sum(10,10,10);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #numbers #function #javascript
ADD COMMENT
Topic
Name
3+8 =