Can I just insert JavaScript by using ?

Note: you should use child theme ( here I’ll reference main theme )

I believe you’ve downloaded that jsbat.js file somewhere in your wordpress root directory
consider this your root directory of web

/xampp/htdocs/wordpress_site/wp-content/themes/theme-name/assets/js/jsbat.js

now you’ll need to find functions.php file in your theme. Typically this resides in this folder:

/xampp/htdocs/wordpress_site/wp-content/themes/theme-name/functions.php

edit functions.php file, and add following code:

add_action( 'wp_enqueue_scripts', 'fy_load_scripts' );
function fy_load_scripts(){
       wp_enqueue_script( 'jsbat-script-js', get_template_directory_uri(). '/assets/js/jsbat.js', array( 'jquery' ), '1.0.0', true );
}

this is just generalized answer, please modify ( you won’t need to create function ‘fy_load_scripts’ but in case you don’t know what to do just copy and paste the code in functions.php file and the directory structure should be matched as well )

Hope this helps
Good luck!