Add an example usage of prototypes...
When this code is load()ed, User objects get an extra birthDate property which is a JavaScript Date object representing the birthdate (rather than a string). This adds the property to existing instances as well, so it doesn't need to be loaded early.
exec/load/birthdate.js
0 → 100644
Please register or sign in to comment