SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Let's define an Animal Class */
  2. function Animal() {
  3.     this.color = "Black";
  4.     this.speak = function() {
  5.         console.log("I can't speak...");
  6.     }
  7. }
  8.  
  9. /* Now let's create an animal object */
  10. var animal = new Animal();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top