Please explain how do i get total value If i have not Assigned it?


Please look at the Picture for The Problem

1.Execute Once
2.remove 'Total' variable
3.Execute Once Again

Try The Above Steps


Even though you might remove the variable from your code, it is not removed from memory. Refresh the page and run it again. total will be undefined.