Example use of drupal_add_js to write inline JS in module

Warning message

JQuery Cycle must be installed in order to run the slideshow. Please go to Status Report for instructions.

If you want to add small JS without creating a new JS file, you can create a module and put the below code in your custom .module file.

  '(function ($) {
// You can write here anything you like to perform. 
 alert("this is test"); })(jQuery);',
    'type' => 'inline',
    'scope' => 'footer',
    'group' => JS_THEME,
    'weight' => 5,