html script fuincion code example
Example 1: how to enter javascript in html
<script type="text/javascript">
alert("This alert box was called with the onload event");
</script>
Example 2: simple javascript function
function idk() {
alert('This is an alert!')
}
//call the function to make the function run by saying "Name of function + ()"
idk()