1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
cowyo/vendor/github.com/sourcegraph/annotate/testdata/html.txt.html
2017-10-03 14:43:55 -04:00

33 lines
601 B
HTML
Executable File

function Animal(name) {
this.name = name;
}
Animal.prototype.sayHello = function() {
return 'Hello from ' + this.name;
};
Animal.prototype.makeNoise = function() {
return this.noise || <1>&#39;&lt;chirp&gt;&#39;;</1>
};
function Dog(name, breed) {
this.name = name;
this.breed = breed;
this.noise = &#39;Woof!&#39;;
}
Dog.prototype = new Animal();
<WOOF>Dog</WOOF>.prototype.sayExtendedHello = function() {
return this.sayHello() + &#39;, &#39; + this.breed;
};
Dog.prototype.bark = function() {
return this.noise;
};
module.exports = {
Animal: Animal,
Dog: Dog,
};