title: in drupal 7, how to add drupal_add_js in the module?
body: <p>I made a module and wish to add js file to that module, I enable the module and obvious it works. But I didn't see the js file that module should take with.</p>
  
  <p>I just put the code in the hook_menu() like this</p>
  
  <pre><code>function my2form_menu() {
        drupal_add_js(drupal_get_path('module', 'my2form') . '/abc.js');
  }
  </code></pre>
  
  <p>is it ok?</p>