Last active
October 4, 2018 02:10
-
-
Save eugenio-oliveira/4d349e3b40abaa5d6d95bd9226bc7083 to your computer and use it in GitHub Desktop.
Formas de declarar funções em JavaScript
This file contains hidden or 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
//Anonymous Functions | |
var test1 = function(){ | |
console.log("Anonymous Function Started"); | |
} | |
//Arrow Functions | |
const test2 = () => { | |
console.log("Arrow Function Started"); | |
} | |
//Declared Functions | |
function test3(){ | |
console.log("Declared Function Started"); | |
} | |
test1(); | |
test2(); | |
test3(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment