SyntaxFix
Write A Post
Hire A Developer
Questions
Declare the variable outside of functions
function dosomething(){ var i = 0; // Can only be used inside function } var i = ''; function dosomething(){ i = 0; // Can be used inside and outside the function }