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 trialcharles bempah
1,295 PointsWhy won't function work
I have No idea why the playList function is not working. Maybe its the browser I'm using to preview it (brave).
Please help
2 Answers
Steven Parker
231,172 PointsThe JavaScript code is OK, but the HTML that loads it has the attributes outside of the tags.
To fix it, move the attributes inside the start tags:
<!-- original code -->
<script> src="js/helpers.js" </script>
<script> src="js/playlist.js" </script>
<!-- fixed code -->
<script src="js/helpers.js"></script>
<script src="js/playlist.js"></script>
charles bempah
1,295 PointsWow basic mistakes. thanks