JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

Eric Owusu
Eric Owusu
246 Points

Challange Task 1 of 2. There two files. not sure thr required html to add to the j.s file. can you help please

help with challenge task 1 of 2 html file & shout.js file

3 Answers

Remember that the html tag to add Javascript files needs a closing tag, for example <script src = "whatever.js"></script>

Michael Williams
PRO
Michael Williams
Pro Student 8,057 Points

First, you don't add HTML to the javascript file. Only javascript goes inside javascript files.

Second, you need to add <script> tags to point the html in the direction of the javascript. Watch this video again. Around the 2:25 mark, it'll give you a pretty good idea of how to solve this challenge.

Óscar Hernández sandoval
Óscar Hernández sandoval
9,256 Points

Do not forget to add <script>text/Javascript</script>