I am not sure why i can\'t do this. Why cant I declare a variable outside a function before it gets used. I get error an error saying temp is an undefined function or var