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 JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Adding Data to Arrays

Kenneth Li
Kenneth Li
3,298 Points

Problem with the workspace. It doesn't work. I followed all instructions 10 times. javascript doesn't show up.

Index.html file <script scr="js/helpers.js"></script> <script scr="js/playlist.js"></script>

playlist.js file

var playlist = []; playlist.push('Hello my way');

printList( playlist );

Nothing happens You can try it yourself.

2 Answers

Christian Thomsen
Christian Thomsen
13,345 Points

You transposed the r and the c when linking to your js files. If you switch from scr= to src= it should work for you!

Clare A
Clare A
23,994 Points

Hi Kenneth, Just noticed the script tag in your html file contains "scr=" rather than "src=" - try fixing that and run again?