on your sever you will must be having a folder with all the wordpress files. In those files you will find folders wp-content > themes > (current theme you are using on the WordPress). Open this folder containing the theme files. Here create a folder to place all your js files. If a folder for js already exists use that one. Now add your js file in that folder. In the folder containing all your theme files you will find a file 'functions.php'. Open this file and add the following code.
add_action( 'wp_enqueue_scripts', 'maps_load_scripts');
function maps_load_scripts(){
wp_enqueue_script( 'google-maps-js', get_stylesheet_directory_uri().'/(name-of-folder- containing-all-js-files)/(name-of-your-js-file).js', array('jquery'), '1.0', false);
}
This will load your js file on all the pages.
If you want to load the js file on a particular page then all the above code in the condition:
add_action('template_redirect', 'load_js_certain_page');
function load_js_certain_page(){
$page_id = ;// Use the id of the page in WordPress here. You can find the page id from the database or the WordPress backend.
if(is_page($page_id)){
//add the code from the block above here.
}
}