Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

<script src> not linking properly

In my index.html file ive added the code:

<script scr="myscripts.js"></script>

The myscripts.js file is located in the same folder on my desktop, but it does not link what so ever. Ive test this by doing console.log("test"), but i get back nothing. Why do i do in a situation like this? UPDATE: I made a copy of everything in a workspace so i could include a snapshot, and it still dosent work. So surely im just making a simple error somewhere: Snapshot

2 Answers

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,740 Points

Hey behar,

Your problem is scr vs. src. Spelling counts! :smile:

Lol, im a derp. Ty!

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,862 Points

Hey there,

You have a typo.

You have scr when you mean to have src. Just remember that it stands for SOURCE. If you delete the vowels, you're left with SRC.

Keep Coding! :) :dizzy: