Skip to content

Instantly share code, notes, and snippets.

@eugenio-oliveira
Last active October 4, 2018 02:10
Show Gist options
  • Save eugenio-oliveira/4d349e3b40abaa5d6d95bd9226bc7083 to your computer and use it in GitHub Desktop.
Save eugenio-oliveira/4d349e3b40abaa5d6d95bd9226bc7083 to your computer and use it in GitHub Desktop.
Formas de declarar funções em JavaScript
//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