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 |
Give an example of closure?
How do you sort an array in javascript?
What would be the result of 3+2+”7″?
What is a null variable?
Why are callbacks used?
Can you access Cookie using javascript?
How do I open a .js file?
What is a closure and why are they so useful to us?
java pgme for class members hours:minutes:seconds then the constructor expects milliseconds as assignment and initialize data members the members function print hh:mm:ss 90,000 milliseconds passed in constructor then the output is 00:01:30
Expand BOM and explain it?
What is the difference between synchronous and asynchronous JavaScrip
What is object in javascript?