0

I have a program isOvel.js which has a function isOvel(str) and I want to use this function isOvel(str) in an another program translate.js. Am just started with Javascript functional programming, your help will be much appreciated.!! I could not find any duplicates, please post it if any.

chivas_hvn
  • 351
  • 3
  • 9
  • 23

1 Answers1

0

Javascript file isn't "program" is "file" you can include several files on your page.

<html>
  <head>
    <title>My page</title>
    <script src="isOvel.js" type="text/javascript"></script>
    <script src="translate.js" type="text/javascript"></script>
  </head>
  <body></body>
</html>
Sky Voyager
  • 11,413
  • 4
  • 45
  • 70
  • Am trying to call and test `isOvel()` functionality from another js program, not building any webpage so please let me know how I can call it. – chivas_hvn Nov 18 '15 at 19:34
  • Did you see onload event ? http://stackoverflow.com/questions/20180251/when-to-use-window-onload – Sky Voyager Nov 18 '15 at 19:36