Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

function shorthand javascript

This question is mostlikely referring to an arrow function, which can be written as below:

//This is if assigning the function to a variable/let/const is neccessary
const <Function name> =(<Arguments go here>)=>{
	//Function body here
}

//Without assignment
(<Arguments go here>)=>{
	//Function body here
}
 
PREVIOUS NEXT
Tagged: #function #shorthand #javascript
ADD COMMENT
Topic
Name
1+4 =