• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Constructor Function & Prototype in Javascript

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[color=#444444] [size=12]

Constructor Function & Prototype in Javascript


What is a constructor function and what it does?
It is a function that creates an object class or the function that allows you to create multiple instances of a class very easily. Constructor function technically speaking is like a normal function but
1) They named with the capital letter first.- it is a best practice to write constructor function first name with a capital letter.
2) They should execute with the new operator.






[/size][/color]
 
Saloon Keeper
Posts: 12428
269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, do you have a question?
 
Ranch Hand
Posts: 141
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be better to post your question to the right forum: Javascript and related forum
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic