Crenox

About Me Using Object Constructor

Sep 1st, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function Me(name, age, country, occupation, interests)
  2. {
  3. this.name = name;
  4. this.age = age;
  5. this.country = country;
  6. this.occupation = occupation;
  7. this.interests = interests;
  8. }
  9.  
  10. var Sammy = new Me("Sammy Samkough", 15, "USA", "Programmer + many other things", "Everything interests me");
Advertisement
Add Comment
Please, Sign In to add comment