first-file.js and add below code:
Now create another JS file as
second-file.js and add the following code.
var script = document.createElement('script');
script.src = "https://freewebmentor.org/js/first-file.js";
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.