File: simple.js

package info (click to toggle)
golang-github-sourcegraph-syntaxhighlight 0.0~git20170531.bd320f5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 272 kB
  • sloc: javascript: 9; ruby: 8; makefile: 7; python: 5; ansic: 5
file content (10 lines) | stat: -rw-r--r-- 179 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
// foo is a cool function
function foo() {}

/* bar is a cool var */
var bar = 3;

A.prototype.foo = function() {
  this.noise || '<chirp>';
  return 'Hello from ' + this.name;
}