JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops For Loops

Robin Yume
Robin Yume
5,293 Points

Code won't run

I followed along in workspace, notated the same code as instructor and yet code is still not running in the preview? Help, please!

https://w.trhou.se/a8tv2psir5

1 Answer

Darryl Mah
Darryl Mah
5,446 Points

Double check your reference to the JS file. You have it pointing to the JS folder but that folder is empty. The .js file is actually in your home route. ;)

A helpful tip, for the future, If you look into your dev tools console should see an error that your code couldn’t find the file you were referring too.

Happy coding and keep learning! :)

Robin Yume
Robin Yume
5,293 Points

Thank you! :D Your right, I went into the folder, but lapsed and didn't check the file was existing IN the folder.