• 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
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Constructor Function & Prototype in Javascript

 
Greenhorn
Posts: 6
  • 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: 10873
234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, do you have a question?
 
Ranch Hand
Posts: 129
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
 
Nothing? Or something? Like this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!