Your colleague has added an external script that compliments the internal one.
The problem is that something’s off and there’s an error in the console.
Function isLoaded
should remain where it is and should be called from the external script.
This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task
index.html
<!DOCTYPE HTML>
<html>
<head>
<title>Script practice</title>
</head>
<body>
<h2 style="text-align: center">
Open console
</h2>
<script src="script.js">
function isLoaded() {
console.log('Script loaded');
}
</script>
</body>
</html>
script.js
isLoaded();