Having trouble with java script

I’m starting to learn how to make a website using HTML,css, and js. When I try to open my html file on google chrome to see if my js function is working it says “Uncaught ReferenceError”. I than went to sources and realized that my javascript file isn’t there. I’m not sure what I am doing wrong and why my js file isn’t in sources.

Thank you for the help!