Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Simple code example of adding two numbers in javascript

<script>
function addNumbers(a, b) {  
    return a + b;  
}  
var sum = addNumbers(15, 25);  
document.write('Sum of the numbers is: ' + sum); 
</script>
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Simple #code #adding #numbers #javascript
ADD COMMENT
Topic
Name
5+9 =