Skip to content

Instantly share code, notes, and snippets.

@suhailgupta03
Created May 16, 2023 15:30
Show Gist options
  • Select an option

  • Save suhailgupta03/6f17c304406e6a64f35ba64e76f9e784 to your computer and use it in GitHub Desktop.

Select an option

Save suhailgupta03/6f17c304406e6a64f35ba64e76f9e784 to your computer and use it in GitHub Desktop.
sum(); // sum func will be pulled up b.cz of hoisting
mult(); // mult func will be pulled up b.cz of hoisting
div(); // the division function will be pulled up because of
// hoisting
function sum() {
console.log("sum");
}
function mult() {
console.log("mult");
}
function div() {
console.log("div");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment