Advertisement
Guest User

Untitled

a guest
May 27th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. When you build a prototype, you want to build out the functions, but for the properties, you want to wrap them inside an init function.
  2.  
  3. That would look like: init:function(){this.hand=[];this.age=2};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement