Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to assign set a function as Variable

let a = 5
let b = 10
let sum = function(){
return a+b
}
console.log(sum())
Source by onecompiler.com #
 
PREVIOUS NEXT
Tagged: #How #assign #set #function #Variable
ADD COMMENT
Topic
Name
2+3 =