Javascript understanding
<p>This is probably a stupidly basic question for this community, but if someone could explain it to me I would be very great full, I am so confused by it.  I found this tutorial on the net and this was example.</p>

<pre><code>&lt;script type="text/javascript"&gt;
    function sports (x){
        alert("I love " + x);
    }
    sports ("Football");
    sports ("Rally");
    sports ("Rugby");
&lt;/script&gt;
</code></pre>

<p>Why does this display the 3 variables: Football, Rally and Rugby?</p>

<p>Is it because x = sports? So when the variables of sports are defined they get displayed? </p>

<p>I think I confused myself more when writing this so I hope it kind of makes sense :(</p>
