Created
November 24, 2019 04:56
-
-
Save bhaveshdaswani93/bef38584a7394a129d8988d780085d5d to your computer and use it in GitHub Desktop.
function declaration example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//es5 function expressiong | |
const funcAuth = function(email,password) { | |
//some logic | |
return 'You are login successfully'; | |
} | |
//funciton expression with es6 arrow function | |
const funcSing = (name) => { | |
return `${name} sings: La ala laaa`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment