Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript function add two numbers

//Simple Function to add two numbers
const addTwoNums = (num1, num2) => {
    let sum = num1 + num2;
    return sum
}
console.log(addTwoNums(60, 9)) //function call and log the answer to the console
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #javascript #function #add #numbers
ADD COMMENT
Topic
Name
6+5 =