<script> tag either the head or body elements of an HTML document.
<script> document.write("Hello world!"); </script>
Here, we're writing the text "Hello world!" to the document. We'll learn all about the document object and its functions in the Document Object Model section.
If you plan on placeing JS code directly in your body, it's best to place it just before your
</body> closing tag. This will improve page loading time since no HTML will be blocked by any of your scripts loading.
To link externally, make your external file's extension .js and link it to your document with the src attribute:
Ever feel achy from sitting crunched up on your computer table? Try lying down with these optical glasses that allow you to work on your laptop while lying flat on your back. This is the perfect solution with those with limited mobility or those who wish to prevent neck cramps and back strains.$ Check price