- console.log(a); // undefined
- var a = 2;
- console.log(a); // 2
- greet();
- function greet (){
- console.log("GHello Boy"); // GHello Boy
- }
- greet1();
- var greet1 = () => {
- console.log("GHello Boy 1"); // GHello Boy
- }
- const Rectangle = class {
- //
- }
Hoisting
Posted by Anonymous on Tue 19th Nov 2024 13:39
raw | new post
modification of post by Anonymous (view diff)
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.