I am new to web developments and learning JavaScript. In my webpage,I want to create two different buttons. And by only clicking them ,it will lead to execute the javascript codes which are stored in different files. Two seperate buttons will execute two different javascript codes. How to do that?
I have a code in mywebpage.html and it works fine -

But when I change this to
It does not work anymore. What is the issue?
<script>tags.