What are factory functions in JavaScript ? | Objects | javascript Interview Questions | NextRound.in