Monday, 25 March, 2019 UTC


Summary

Object creation is fundamental to all object-oriented languages, but in JavaScript it is left to the programmer to work out how best to do it, and often the practice that you encounter isn't the best because it's borrowed from other languages. In this extract from my recent book the emphasis is on object factories rather than the more familiar constructor.