<?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>Pro-Tek Blog &#187; .call</title>
	<atom:link href="http://www.pro-tekconsulting.com/blog/tag/call/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pro-tekconsulting.com/blog</link>
	<description>For UI developers / UI designers and UI trends</description>
	<lastBuildDate>Thu, 05 Sep 2019 03:59:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.34</generator>
	<item>
		<title>What&#8217;s the difference between .call and .apply?</title>
		<link>http://www.pro-tekconsulting.com/blog/whats-the-difference-between-call-and-apply/</link>
		<comments>http://www.pro-tekconsulting.com/blog/whats-the-difference-between-call-and-apply/#comments</comments>
		<pubDate>Wed, 06 May 2015 05:17:13 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[.apply]]></category>
		<category><![CDATA[.call]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=656</guid>
		<description><![CDATA[<p>What&#8217;s the difference between .call and .apply? Call( ) and Apply( ) in JS is most commonly used to invoke a method or used in constructors &#38; classes for Inheritance purposes. The first parameter to be passed in these two methods is an Object (current reference/current context). The difference comes in the concluding parameters. Apply( [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/whats-the-difference-between-call-and-apply/">What&#8217;s the difference between .call and .apply?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>What&#8217;s the difference between .call and .apply?</h4>
<p style="text-align: justify;">Call( ) and Apply( ) in JS is most commonly used to invoke a method or used in constructors &amp; classes for Inheritance purposes.</p>
<p style="text-align: justify;">The first parameter to be passed in these two methods is an Object (current reference/current context). The difference comes in the concluding parameters.</p>
<p style="text-align: justify;">Apply( ) takes Array as it&#8217;s next parameter. The array represents the arguments for the target method.</p>
<p style="text-align: justify;">Call( ) takes arguments in comma separated format.</p>
<p><strong>Usage:</strong><br />
Use apply ( ), if you don&#8217;t know the number of arguments you will be passing, or if they are already in an array.<br />
With call ( ), you can write a method once and then inherit it in another object, without having to rewrite the method for the new object.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/whats-the-difference-between-call-and-apply/">What&#8217;s the difference between .call and .apply?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/whats-the-difference-between-call-and-apply/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
