title: Best use of the arguments property in JavaScript?
body: <p>What's the right way to use the arguments property of a function?
  This is how I'm currently using it, but I'm pretty sure I'm not using it correctly:</p>
  
  <p>First, I define my parameters:</p>
  
  <pre><code>parameters = {};
  parameters.ID = $tr.data('ID');
  parameters.Name = 'Name goes here';
  parameters.td = $td;
  UpdateName(parameters);
  </code></pre>
  
  <p>And in the function:</p>
  
  <pre><code>var UpdateName = function(){
      var local = {};
      local.ID = arguments[0].ID;
      local.Name = arguments[0].Name;
      local.td = arguments[0].td;
  
      local.jqXHR = $.ajax('Remote/Ajax.cfc', {
          data: {
              method:'UpdateName'
              ,returnformat:'json'
              ,ID:local.ID
              ,Name:local.Name
          }
      });
      local.jqXHR.success(function(result){
          if (result.MSG == '') {
              local.td.text(local.Name).addClass('success');
          } else {
              local.td.addClass('err');
          };
      });
      local.jqXHR.error(function(result){
          local.td.addClass('err');
      });
  }
  </code></pre>