I know that when I write code directly in HTML pages JavaScript is shown but what if I just call the file, for example,
<script src="script.js"></script>
Will the code be shown?
I know that when I write code directly in HTML pages JavaScript is shown but what if I just call the file, for example,
<script src="script.js"></script>
Will the code be shown?
Yes, there is nothing you can do to prevent this. Take the test.
Hello @AmadeuAntunes it will not be shown in the code, but anyone who can see the directory where the file is located will be able to see the code.