Respond to an unknown method call: Difference between revisions

m
→‎{{header|JavaScript}}: Clean up the wording...
m (→‎{{header|JavaScript}}: Clean up the wording...)
Line 41:
 
=={{header|JavaScript}}==
There is no standard way to do this, but some implementations provide suitable traps.<br>
non-standard
{{works with|Firefox}} feel free to improve
<lang javascript>var example = new Object;
example.foo = function () {
Anonymous user