See my example and comments:
<html>
<head>
<title>Prova !1</title>
<script>
function test (a) // a has never used???
{
var v = 5;
v = !1; // v is always false
return v; // returns false
}
</script>
</head>
<body>
<label id='2'> the answer is</label>
<script>
window.onload = function ()
{
var i ;
i = document.getElementById('2');
//i[0].innerText += " "+test (0);
i.innerHTML += " "+test(0); // the outcome is : the answer is false
}
</script>
</body>
</html>
What exactly do you want to do with this weird code?