How do you call function from a JS file in HTML?

I'm trying to call a form validate function from my js file but my html file says not function exists even though i connected the js and html file together and another function i made is working just fine on the html page.
image.png
image.png
image.png
Was this page helpful?