Enqueuing script is adding extra text for google maps [closed]

When you call google, the key variable name is missing.

wp_register_script( 'googlemap', 'https://maps.googleapis.com/maps/api/js?123123123123' , '', '', false );

Should be :

wp_register_script( 'googlemap', '//maps.googleapis.com/maps/api/js?key=123123123123123123123123' , '', '', false );