I've already pretty well at html and css. Now i considering learn JS and when i link my html file to the JS file, it's not working.
Here's my html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test Java Script</title>
<script scr="script.js"></script>
</head>
<body>
<!--<h1>Hello</h1>
-->
<script>
alert("if this page blank, external js file not executed!")
</script>
</body>
</html>
and here's my javascript
document.write("works!")
It's pretty simple, just want to know if it works or not, please help me. Thank you.
script.jsin the same folder as your .html file?