Why is an internal <script> block commonly placed just before the closing </body> tag?
<script>
</body>
It prevents visitors from viewing the JavaScript source code.
It automatically moves the JavaScript into a separate .js file.
.js
It lets the browser parse and display the page content before executing the script.
HTML requires every <script> element to be the final element in <body>.
<body>