After researching various image sliders online, I came across this specific one. It worked perfectly fine when I included the JavaScript directly in a script tag within the HTML file. However, as soon as I tried to link it via a .js file, the slider stopped functioning, and I couldn't determine the root cause of the issue. The console output indicated an error reading "addEventListener" at line 10. Any insights or assistance would be greatly appreciated!
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
overflow: hidden;
}
.
.
.
</footer>
</main>
</body>
</html>