We can put the script tag inside the ‘head’ or ‘body’ tag. Though it should be noted that each choice of putting the ‘script’ tag has its own consequences. For now, you can put the script tag anywhere you want.
Printing Hello World
Hit Ctrl+Shift+J to see the output in the browser console.
- Google Chrome
- Microsoft Edge