How does JavaScript function call with prototype function name.argument work?
<p>How does JavaScript function call with prototype function name.argument work in the following program?</p>

<pre><code> function getLAdd() {
     // this sets all the variables containing positions of ball and bar with their respective ids.
     var ladd = 0;
     var pball = $("#ball");
     var pbar = $("#bar");
     var bar_position = pbar.position();
     var ball_position = pball.position();
     if (ball_position.top &gt;= window.innerHeight - 100) {
         if (ball_position.left - 10 &gt;= bar_position.left &amp;&amp; ball_position.left - 10 &lt;= bar_position.left + 100) {
             ladd = -2;
         }
         if (ball_position.left + 10 &lt;= bar_position.left + 200 &amp;&amp; ball_position.left + 10 &gt;= bar_position.left + 100) {
             ladd = 2;
         }
     }
// how does getLAdd.ladd work ? Is this a type of dynamic call ?
     if (ladd == 0) {
         ladd = getLAdd.ladd;
     }
     if (ball_position.left &lt;= 15 || ball_position.left &gt;= window.innerWidth - 40) 
         ladd = -ladd;

     getLAdd.ladd = ladd;
     return ladd;
 }
</code></pre>
