changing how the code is going to take the var outside of the function if the console.log text is in or outside of code