<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Factory Function Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/factory-function/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/factory-function/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How does this javascript factorial function work?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-does-this-javascript-factorial-function-work/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-does-this-javascript-factorial-function-work/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 03 Aug 2021 10:03:51 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Factory Function]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Parameters]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7305</guid>

					<description><![CDATA[<p>Factory Function When a function returns an object, we call it a factory function. It can produce object instance without [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-does-this-javascript-factorial-function-work/">How does this javascript factorial function work?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Factory Function</h2>



<p class="wp-block-paragraph">When a function returns an object, we call it a factory function. It can produce object instance without <em>new</em> keywords or <em>classes</em>.</p>



<h2 class="wp-block-heading"><strong>Ex:-</strong></h2>



<script src="https://gist.github.com/vijaypk376/aed68402f3f002a5a65aad7e5c2cad11.js"></script>



<h2 class="wp-block-heading">Factory Function with Parameter</h2>



<h2 class="wp-block-heading"><strong>Ex:-</strong></h2>



<script src="https://gist.github.com/vijaypk376/f680fed77d649686f08ca7ad05f3b50c.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-does-this-javascript-factorial-function-work/">How does this javascript factorial function work?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-does-this-javascript-factorial-function-work/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
