my html isn't javascripting even though i put my <script src=app.js></script> directly above the </body>
why is the javascript not javascripting


you'd need to do
<script src="app.js"></script>
(you need the quotation marks for it to work)

no but like the i do it correctly with the quotes and none of the code runs
like the tab just freezes

maybe you have a piece of code that is never exiting? did you misname a for
loop variable or something/mess something up with while loops? (It's a common mistake to misname an increment variable when you start getting into that kind of thing.)
In general, it means some part of the code is always running without stopping.

afaik it has to be in the body, at the end.
like this:
<body>
<!-- ...put all your html here... -->
<script src="app.js"></script>
</body>```

If your tab freezes, and you don't have any other JS running in your HTML apart from the "app.js" file, it means the file is included successfully, and it running, but something inside is not right, most likely an infinite for-loop, while-loop, or a simple recursive function call (function calling itself, over and over), which usually is the case that result in screen/tab freeze.
or sign up to leave a post.