Home
<!DOCTYPE html> <html> <body> <h1>Demo: Hoisting</h1> <script> alert(UseMe); var UseMe; function UseMe() { alert("UseMe function called"); } </script> </body> </html>
Result: