The <script> Tag
In HTML, JavaScript code is inserted between <script>
and </script>
tags.
JavaScript Functions and Events
A JavaScript function
is a block of JavaScript code, that can be executed when "called" for.
For example, a function can be called when an event occurs, like when the user clicks a button.
Learn about how to insert JavaScript in this tutorial: https://www.w3schools.com/js/js_whereto.asp