Skip to main content

All Questions

Tagged with
2 votes
3 answers
498 views

JavaScript var visibility

Given this code: function MyClass() { var v = '1'; this.hi = function() { console.log('Value of V is ' + v); var v = '2'; console.log('Value of V is ' + v); ...
alexeypro's user avatar
  • 3,673