Javascript Local Variable Is Undefined While It Is Defined Above In

Javascript Local Variable Is Undefined While It Is Defined Above In