Skip to content

Instantly share code, notes, and snippets.

@BolajiAyodeji
Created March 3, 2019 15:12
Show Gist options
  • Save BolajiAyodeji/1db91e2989cf345276afd984c32cc752 to your computer and use it in GitHub Desktop.
Save BolajiAyodeji/1db91e2989cf345276afd984c32cc752 to your computer and use it in GitHub Desktop.
Defining Functions
// Function Declaration
function walk() {
console.log('walk');
}
// Named Function Expression
let run1 = function walk() {
console.log('run1');
};
// Anonymous Function Expression
let run2 = function () {
console.log('run2');
};
let move = run2;
run1()
run2()
move()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment