Skip to content

Instantly share code, notes, and snippets.

@AsaoluElijah
Last active May 6, 2019 18:26
Show Gist options
  • Save AsaoluElijah/06e565bc7096afb9256ae287f269b14a to your computer and use it in GitHub Desktop.
Save AsaoluElijah/06e565bc7096afb9256ae287f269b14a to your computer and use it in GitHub Desktop.
Most common ways to create function in JavaScript
//Most popular
function functionName(param1,param2){
//Codes here ☣️
}
//Second popular (PKA: Arrow function)
const functionName = (param1,param2) => {
//Codes here 🎯
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment