JavaScript JavaScript Basics Hello, JavaScript! Add JavaScript to HTML

Paul Narrea
seal-mask
.a{fill-rule:evenodd;}techdegree
Paul Narrea
Full Stack JavaScript Techdegree Student 2,940 Points

The browser will not retrieve and run the "script.js" file from the js folder. <script> scr="js/script.js"></script>

Browser doesn't appear to be recognizing the js folder. As it will not retrieve the script js file that was made during this lesson.

When looking at the inspection bar there only appears to be a css folder.

1 Answer

Rick Gleitz
Rick Gleitz
41,875 Points

Hi Paul, Simply change your scr to src. It helps to think of this as source so you get the letter order right.

Hope this helps.

Paul Narrea
seal-mask
.a{fill-rule:evenodd;}techdegree
Paul Narrea
Full Stack JavaScript Techdegree Student 2,940 Points

Thank you Rick!

I see the error now and the code runs. However previously my "js" folder wasn't showing but now it does. Strange, cant tell if this has to do with the typo. Regardless the code works so I suppose I need not worry for now lol. Thanks agian!