What is a javascript factory?



What is a javascript factory?..

Answer / Prawin Kumar

A JavaScript Factory is a function that creates and returns an object with predefined properties. In AngularJS, it's often used to create services or providers.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Is angularjs difficult to learn?

1 Answers  


What is dom stand for?

1 Answers  


Explain ng-disabled directive?

1 Answers  


What is Controller in AngularJS?

1 Answers  


Explain the angularjs factory?

1 Answers  


What is @injectable()? Why use?

1 Answers  


When should we use angular?

1 Answers  


What is pipes?

1 Answers  


What are differences between constructors and oninit?

1 Answers  


What is arrow function , write its syntax?

1 Answers  


What is angular 5? Whats new in it?

1 Answers  


What is cross site script inclusion (xssi)?

1 Answers  


Categories