What is need to run it in another environment?


#1

I have done my 2.12 exersize successfully. Then I copied it to my computer and run it but that did not work. So it work in codecademy environment and do not work in another. Why? What I can do to run it on any web-site with any browser?


#2

Hi Леонід,

Assuming you kept the file names the same and put all of your files in the same directory, make sure you have a link to jQuery before your other <script> tag.

<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<script src="script.js"></script>
        <!-- ↑ or whatever your javascript file is named -->

If it's still not working, please post the code in each file and a screenshot of the folder you're keeping the files in :slight_smile:
Thanks!


#3

Now it works. Thank you.