Thursday, May 20, 2021

Javascript runs before HTML even if at end of body

 My javascript is running before my HTML loads, even if I put it right before the like this:

<body>
    <h1>Title</h1>
    <script>
        alert("yo");
    </script>
</body>

Any ideas why that may be happening?


learn javascript

No comments:

Post a Comment

Features of the JS language

 Features of the JS language The main features of this programming language are: Dynamic typing. That is, the data type will only be determi...