Returns json data about a single user.
-
URL
/users/:id
-
Method:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body ng-app="demo" > | |
| <script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/chart.js/latest/Chart.min.js"></script> |
| //What will be the output of the following code: | |
| var myObject = { | |
| foo: "bar", | |
| func: function() { | |
| var self = this; | |
| console.log("outer func: this.foo = " + this.foo); | |
| console.log("outer func: self.foo = " + self.foo); | |
| (function() { | |
| console.log("inner func: this.foo = " + this.foo); | |
| console.log("inner func: self.foo = " + self.foo); |