Commits

Antonio Alvarado Hernández committed 31b412e

Added the `Learning` folder into `Nodejs`

These random stuff are used to learn miscellaneous but arbitrary
aspects of `node.js`.

  • Participants
  • Parent commits e14270d

Comments (0)

Files changed (1)

File Nodejs/Learning/this.js

+var abc = 1;
+
+function foo () {
+    function baz() {
+        console.log(abc);
+    }
+    console.log(abc);
+    baz();
+}
+
+function bar () {
+    function baz() {
+        console.log(this);
+    }
+    console.log(this);
+    baz();
+}
+
+foo();
+bar();
+
+var Proxymier = function (options) {
+
+    if (!options)
+        throw new Error("Missing 'options' value");
+
+    var self = this;
+
+    self.options = options;
+}
+
+var p =