script tag does what code example
Example 1: js script
<script src="javascript.js"></script>
Example 2: how to use script tag
<script>
document.getElementById("id").innerText = ("");
</script>
<script src="javascript.js"></script>
<script>
document.getElementById("id").innerText = ("");
</script>