Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Function expression vs Function declaration
a(); // -> ? :)
var a = function () {
console.log('a1');
};
function a() {
console.log('a2');
}
a(); // -> ? :)
function b() {
console.log('b1');
}
function b() {
console.log('b2');
}
b(); // -> 'b2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.