html js tags code example
Example 1: script tag in html
<script>
// Write JS here
</script>
<script src="link/to/js/file.js"></script>
Example 2: how to use script tag
<script>
document.getElementById("id").innerText = ("");
</script>
<script>
// Write JS here
</script>
<script src="link/to/js/file.js"></script>
<script>
document.getElementById("id").innerText = ("");
</script>