I keep getting problems running code on localhost in any browser. When I test my code in JSfiddle it works fine. In my browser CSS loads and even jQuery library loads but my external vanilla javascript files never work. I get this error in the console:
script.js:1 Uncaught ReferenceError: $ is not defined
at file:///C:/Users/Alex/Desktop/myfile/script.js:1:1
I'm pretty sure there are no errors linking to my js files. Here is how I am linking to my files:
<html>
<head>
<meta charset="utf-8">
<title>TitleofProject</title>
<link type="text/css" rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="script.js"></script>
</head>
I tried wrapping my external javascript files in:
$(window).load(function() {
}};
but this does not work either.
Javascript is allowed in my browser settings.