<html>
<head>
<script src="./first.js"></script>
<script src="./second.js"></script>
</head>
</html>
In the first.js file, I want to call the functions from second.js:
secondFun(); // calling a function from second.js file
This is second.js file:
function secondFun() {
console.log('second function called!!')
}