Javascript function alert is undefined
<p>I am calling the function:</p>

<pre><code>checkScroll("rating");
</code></pre>

<p>I have this function:</p>

<pre><code>function checkScroll(param) {
  alert(param);
}
</code></pre>

<p>Why is the alert undefined? </p>
