JS Fine no errors?

Is there anything wrong with this script, or is Chrome just not cooperating.

<script type=“text/javascript”>
if (luckyNumber==7) {
document.write(“Hey, 7 is my lucky number too!”);
} else if (luckyNumber==13 || luckyNumber==24){
document.write(“Woo. “+luckyNumber+”? That’s an unlucky number!”);
}
</script>

Where is the value of luckyNumber set in the first place?

Is the script running before the page loads? If not then the document.write will overwrite the page and create a new one.

Stupid me forgot the var.