To me at this stage, JS encountered a bottleneck learning.
Last night was even a good book, my appetite for now ~
Try closure of debugging in chrome.
python -m http.server <script> var fn; function foo() { var a = 2; function baz() { console.log(a); } fn = baz; } function bar() { fn(); } foo(); bar(); var name = "windows"; var p = { name: 'Peter', getName: function() { var self = this return function() { return self.name; } } } var getName = p.getName(); var _name = getName(); console.log(_name); </script>