javascript: why console.log in this code does not work?

var output = [];
var x=1;
console.log(x);
function fizzfuzz(){
    output.push(x);
    x++;
    console.log(output);
}

I coded this in google chrome to add one number to an empty array one by one and show it, but when ever I run console it does not work.