There is such a structure of JavaScript code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> initSky() { function imitate() { } function tracker() { } } </script> <script> $('#btn').click(function() { for (j; j <= finDay; j++) { imitate(); }; }); </script> How to call the imitate () function without changing its location?