Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node.js anonymous function

x = (arg1,arg2)=>{return arg1+arg2}
y = function(arg1,arg2){
  return arg1+arg2;
}
//not so sure
z = (arg1,arg2)=>arg1+arg2;
All three should be the same addition function.
 
PREVIOUS NEXT
Tagged: #anonymous #function
ADD COMMENT
Topic
Name
3+9 =