Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- That would look like: init:function(){this.hand=[];this.age=2};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement