JavaScript

Step 3: Link the script to your webpage by going to index.html, and adding the following in the head:
<script src="script.js" defer></script>
The attribute src stands for source, and specifies the file to link. The attribute defer specifies to defer running the script until after the webpage has fully loaded.
Last step Next step