reference javascript file in javascript file code example
Example: how to write code in external javascript file
function myFunction() {
document.getElementById("demo").innerHTML = "Paragraph changed.";
}
function myFunction() {
document.getElementById("demo").innerHTML = "Paragraph changed.";
}