Welcome to the Treehouse Community
Looking to learn something new?
Micole Noddle5,797 Points
How many JS files can one link? I remember Dave saying only to use two, but I could be off, and I went back through the courses to try and find the answer, but couldn't seem to.
For instance, let's say we have a JS folder inside our main project folder and then an "app.js" file and a "students.js" file inside the JS folder. First of all, would this be common practice (to have two or more files in the JS folder)? Second of all, how would we link it to the HTML? Would we write two lines of code before the closing body tag such as:
<script src = "js/app.js"></script>
<script src = "js/students.js"></script>
Is this correct? Incorrect? Any help would be greatly appreciated. Thanks so much!
Isaac Sanchez3,126 Points