Just started using JS, some question which turned up immideately:

I made a HTML file just basic code and used src code to connect with JS file. JS file also contains easy code just to test, however it doesn't seem to work.

Here the code:

<script src="myscript".js></script>



alert ("Hi there");

I have installed wamp server. Now when I enter localhost in my chrome I see this files. When I open the HTML file nothing happens. When opening the JS file I don't see anything being executed, I only see the plain text. How is this possible? I have viewed lots of tutorials and also turned on Javascript, so whats the problem? Please help.