I am stuck with this exercise


I am not getting the second task..


I have added following line in main.js

alert('Hello JavaScript!');

and following line in the index.html

<script src ='js/main.js'></script>

and the screenshot of the output is here:

What is the problem?



remove the alert and then try again.


Got it.. I removed the extra space after "src", then it worked.


This topic was automatically closed after 7 days. New replies are no longer allowed.