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

hi i am leaning java script basic. I am unable to link my Java script file with HTML file. can anybody guide me.

in html file i have wrote <script scr="script.js"></script> in html body but when i refresh the browser not dialogue box having script.js msg opened.

1 Answer

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hi Haleema Mehmood,

I think you made a typo in the attribute. In the snippet you shared above it says scr instead of src

<script src="script.js"></script>

Thanx