Skip to content

Instantly share code, notes, and snippets.

@miller3818
Created July 3, 2014 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miller3818/7cf89ad0690d7a7cc47e to your computer and use it in GitHub Desktop.
Save miller3818/7cf89ad0690d7a7cc47e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
var speak = function(saywhat) {
console.log(saywhat);
};
var Dog = function() {
var name,breed;
};
Dog.prototype.speak = speak;
firstDog = new Dog;
firstDog.name = "Oscar";
firstDog.breed = "Golden";
firstDog.speak('woof');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment