Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript function expression

const mul = function(x, y){
    return x * y;
}; //semicolon needs to be there as it is expression

console.log(mul(10, 20));
 
PREVIOUS NEXT
Tagged: #javascript #function #expression
ADD COMMENT
Topic
Name
9+2 =