1

I was just reading Javascript: Module Pattern vs Constructor/Prototype pattern? and I was curious to know that when we extend our class with $.fn.extend or $.extend which pattern is used, Module Pattern or Constructor/Prototype pattern?

Community
  • 1
  • 1
Rocky Singh
  • 15,128
  • 29
  • 99
  • 146

1 Answers1

4

[✓] None of the above.

This is the “copy all of this object properties to this other one” pattern: it just copies in target the properties of all other objects.

Arnaud Le Blanc
  • 98,321
  • 23
  • 206
  • 194