Concatanation in javascript error
<p>My following javascript file displays nothing , although I was expecting a link there . Somebody please tell me the reason </p>

<pre><code>&lt;p id="demo"&gt;&lt;/p&gt;

&lt;script type="text/javascript"&gt;

var u = 'somewebsite';
var q += '&lt;a href="'+u+'"&gt;';
var q += '&lt;/a&gt;';

document.getElementById("demo").innerHTML=q;
&lt;/script&gt;
</code></pre>
