Skip to content

Instantly share code, notes, and snippets.

View chandanch's full-sized avatar
📘
Design, Build, Transform, Graph, Nxt Gen Solutions 😀

Chandan CH chandanch

📘
Design, Build, Transform, Graph, Nxt Gen Solutions 😀
View GitHub Profile
<!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>
@chandanch
chandanch / API.md
Last active July 13, 2021 10:18 — forked from iros/API.md
Documenting your REST API

Show User

Returns json data about a single user.

  • URL

    /users/:id

  • Method:

//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);