Javascript code not working

As said in the tutorial of Javascript (section III),I was told to press right click on the page and click Inspect Element and then check the output under the console bar.I have been trying to run the code numerous time but it keeps showing the error as"Failed to load resource: net::ERR_FILE_NOT_FOUND".I have tried this on other browsers as well but it still won’t work there.

@popwarriorwithin2
please check the file name you are using in your system
<script type=“text/javascript” src=“my-javascript.js”>
change in src may be your file name is different and also use same folder for both html and js file.

@popwarriorwithin2 Can you please share your HTML code?