Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How do I make a return function in javascript

                         An Example of a return function
function add15(number) {
    let newNumber = number + 15;
    return newNumber;
}
let fifteen = add15(5);
console.log(fifteen);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #How #I #return #function #javascript
ADD COMMENT
Topic
Name
1+3 =