title: JavaScript Syntax
body: <p>My programing background is that I learned a little Java in school.  JavaScript syntax tends to confuse me for some reason. The JavaScript code below is a pattern of syntax that I don't know what to make of:</p>
  
  <pre><code>foo.ready = function(variable){... var whatever = variable.bar();
  </code></pre>
  
  <p>One of my main points of confusion is the parameter.  For a contrasting example, in <em>Java</em>, if I call a method with one parameter, the call sends one parameter.  I don't see how the parameter named 'variable' is ever set.</p>