
You add JavaScript to HTML using the <script> tag. Place it just before the closing </body> tag so the HTML loads first. You can write code directly between the tags or link an external file: <script src="app.js"></script>. External files keep your code organized and reusable.
Reference:
TaskLoco™ — The Sticky Note GOAT