Hoisting is a process of pushing the declared variables to the top of the program while running it. For Ex:
doSomething(foo); // used before var foo; // declared later