I have a small chunk of code I can\'t seem to get working. I am building a website and using JavaScript for the first time. I have my JavaScript code in an external file \'M
In Layman terms, you need to include external js file in your HTML file & thereafter you could directly call your JS method written in an external js file from HTML page. Follow the code snippet for insight:-
caller.html
external.js
function letMeCallYou()
{
alert("Bazinga!!! you called letMeCallYou")
}
Result :