Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript Function Add Two Numbers

// program to add two numbers using a function
// declaring a function
function add(a, b) {
    console.log(a + b);
}

// calling functions
add(3,4);
add(2,9);
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #javascript #Function #Add #Two #Numbers
ADD COMMENT
Topic
Name
4+9 =