Anonymous user
Add a variable to a class instance at runtime: Difference between revisions
Add a variable to a class instance at runtime (view source)
Revision as of 03:56, 11 October 2009
, 14 years ago→{{header|JavaScript}}: add lang tag and blurb
(added PowerShell) |
m (→{{header|JavaScript}}: add lang tag and blurb) |
||
Line 146:
=={{header|JavaScript}}==
This kind of thing is fundamental to JavaScript, as it's a prototype-based language rather than a class-based one.
e.foo = 1</lang>
=={{header|Perl}}==
|