Hoisting is the default behavior in JavaScript, which moves all declarations to the top of the scope before code execution. It essentially gives us the advantage that no matter where functions and variables are declared, they will be relocated to the top of their scope, whether global or local.