What is constructor?
Answer / susheel kumar
A constructor is a special type of member function for
automatic initialization of an object.
when ever an object is created the constructor will be
executed automatically.
the name of constructor same as that of its class.the
constructor is declared with no return type,not even void.
constructor should be declared in the public section most
of the time.
| Is This Answer Correct ? | 5 Yes | 0 No |
What is the difference between innerhtml and append() in javascript?
What is the use of spread operator?
Can you pass a anonymous function as an argument to another function?
What is singleton class in javascript? Explain
How do I enable cookies and javascript?
Is jquery easier than javascript?
What is constructor?
What are all the looping structures in javascript?
How do I retrieve a cookie with a given name using a regular expression?
How do you change the style/class on any element using javascript?
What are self Executing Functions?
How to shift and unshift using javascript?