• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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: 12253
259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, do you have a question?
 
Ranch Hand
Posts: 140
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
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic