wordpress pass parameters variables arguments to enqueued script

  1. Use the wp_enqueue_script function in your theme's functions.php file to enqueue the script.
  2. Use the $deps parameter to specify any script dependencies.
  3. Use the $ver parameter to specify a version number for the script.
  4. Use the $in_footer parameter to indicate whether the script should be placed in the footer.

That's a very practical strategy for WordPress.