Answers for "Simple code example of adding two numbers in javascript"

0

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>
Posted by: Guest on April-10-2022

Code answers related to "Simple code example of adding two numbers in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language