Messages
Topics
Lists
Groups
Marketplace
Jobs
JavaScript Daily
4 years ago
JavaScript Constructor Functions made simple.
#javascript #webdev
JavaScript Constructor Functions made simple. Constructor functions or, briefly, constructors, are regular functions, but there's a common agreement to name them with capital letter first. Constructor functions should only be called using new . Such a call implies a creation of empty this at the start and returning the populated one at the end.