var score = 42;
function computeScore () {
    if ( score ) {
        alert(score);
    }
    var score = 0;
    return score + 42;
}
computeScore();