a)
<!doctype html>
<html>
<head>
<title>An example for object method</title>
<script src= "js/test.js"></script>
</head>
<body>
<h3>Here is an example for object method</h3>
<p id = "demo"></p>
</body>
</html>
b)
<!doctype html>
<html>
<head>
<title>An example for object method</title>
</head>
<body>
<h3>Here is an example for object method</h3>
<p id = "demo"></p>
<script src= "js/test.js"></script>
</body>
</html>
How will these two blocks of code differ while loading a webpage? The first block is not loading the JavaScript file, while the second one is running fine.