modern javascript rules 2020 where to place script tag to attach js to html doc code example
Example 1: hello world javascript
// Output Hello World! in the console.
console.log("Hello World!");
Example 2: javascript hello world
I would do something like this:
<script>
alert("Hello World!");
</script>