I am stuck with this exercise


#1


I am not getting the second task..

https://www.codecademy.com/courses/learn-javascript/lessons/javascript-dom/exercises/link-javascript?action=lesson_resume

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?


#2

why?

remove the alert and then try again.


#3

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


#4

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