I have two arrays sd[16][16] and gd[16][16] in javascript. I need to compare the values of the arrays.

```
var score=0;
document.write("<table>");
for(c1=0; c1<16; c1++)
{   document.write("<tr>");
    for(c2=0; c2<16; c2++)
        document.write("<td onClick='changeColor(this);'>" + gd[c1][c2] + "</td>");
    document.write("</tr>");
}
document.write("</table>");

function changeColor(tdd)
{
    if(tdd.bgColor=='white')
    {
        tdd.bgColor='red'; 
        if (gd[c1][c2] == sd[c1][c2])
            score+=5; 
        else
            score-=2; 
    }
    else
    {
        tdd.bgColor='white'; 
    }
}

```

However, when I try to display the score later, the score is not displayed.

```
function scc()
{
    document.getElementById('scf').innerHTML = score;
}
</script>
<br><br><center><button type='button' onclick='scc()'> Click to see current score</button> <p id="scf">0</p> </center>
<br><br> <center><input type="submit" value="Get Solution"/></center>

```

Could someone please tell me what I am doing wrong?