How to link two JS files

Hi, i’m making a website and it requires me to link two JS files. Can anyone help me in doing this? I’m pasting the error I get every time when i run the website :-

Access to script at ‘file:///C:/Users/Bipin/Desktop/JS%20-%20Basics/Trial/afterLoad.js’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.

GET file:///C:/Users/Bipin/Desktop/JS%20-%20Basics/Trial/afterLoad.js net::ERR_FAILED