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));
Source by masteringjs.io #
 
PREVIOUS NEXT
Tagged: #javascript #function #expression
ADD COMMENT
Topic
Name
5+7 =