Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

anonymous function javascript

//Anonymous function; It's not assigned to an indentifier

Array.forEach((arguments) => {
	//This is an anonymous function
})

function forEach(arguments) {
	//This is NOT an anonymous function
}
Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #anonymous #function #javascript
ADD COMMENT
Topic
Name
1+8 =