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 trialHaleema Mehmood
Courses Plus Student 189 Pointshi 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
Treehouse StaffHi 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>
Haleema Mehmood
Courses Plus Student 189 PointsHaleema Mehmood
Courses Plus Student 189 PointsThanx