>
> 3. Method dynamically attached to an object - here we don't have
> special syntax, so we'll still need to use the "function" keyword.
>

Not necessarily.  Object literal extensions are a possibility here,
especially if you are attaching more than one method:

    obj.{
        addMethodA() { ... },
        addMethodB() { ... }
    };

kevin
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to