Created
May 16, 2023 15:30
-
-
Save suhailgupta03/6f17c304406e6a64f35ba64e76f9e784 to your computer and use it in GitHub Desktop.
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
| 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