I was developing a web form that will be used to collect data. I needed to attach it to my WordPress website. I have been successful attaching the HTML and CSS files, so that they can blend with the theme of the website, however, I have been unsuccessful trying to add the JavaScript file. I have followed several guides on how to but I have not been successful. I tried the enqueue_script approach but it didn't work. Here is samples of my code from the functions.php file
<?php
/**
* Income School functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Income_School
*/
add_action( 'wp_enqueue_scripts', 'form_enqueue_style' );
function form_enqueue_script() {
wp_enqueue_script( 'form-js', get_template_directory_uri() . '/js/form.js', array(), false, true);
}
add_action( 'wp_enqueue_scripts', 'form_enqueue_script' );
In my theme folder where the above functions.php can be found, i also created js folder inside my theme folder where i placed my javascript file. However when I try to load my site, the above script cannot come into the footer. While as for the CSS, I just added it simply while I was adding the HTML code in the block, through the Scripts n Styles plugin. Kindly assist me so I can be able to ensure my JS is working well.

