Html – Can I call an anonymous function inside a <scrip> tag linked to an external js file?
HTML File(firstHTML.html) <!DOCTYPE html> <html> <body> <h2>My First Web Page</h2> <p id="demo">First Paragraph</p> <p id="demo2">Second Paragraph should be something different</p> <script src="myScript.js"> show3(); </script> </body> </html> JavaScript File(myScript.js) let show3 = function() { document.getElementById('demo2').innerHTML='I am trying to change the second…