Why I can’t load my JavaScripts using an hook inside my functions.php file?

The simplest and most-common cause for this issue is that you have failed to fire wp_footer() immediately before the closing </body> tag in your footer.php file:

    <?php wp_footer(); ?>
</body>