<?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>JavaScript Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/category/javascript/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Mon, 19 Jun 2023 13:29:52 +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>Top 50 JavaScript Interview Questions with Answers</title>
		<link>https://www.scmgalaxy.com/tutorials/top-50-javascript-interview-questions-with-answers/</link>
					<comments>https://www.scmgalaxy.com/tutorials/top-50-javascript-interview-questions-with-answers/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Mon, 01 May 2023 11:42:26 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=10162</guid>

					<description><![CDATA[<p>A. A programming languageB. A markup languageC. A web browser Answer: A A. Hello4B. TypeErrorC. Hello Answer: A A. nullB. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-50-javascript-interview-questions-with-answers/">Top 50 JavaScript Interview Questions with Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img fetchpriority="high" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-23-1024x576.png" alt="" class="wp-image-10163" width="664" height="373" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-23-1024x576.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-23-300x169.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-23-768x432.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-23.png 1200w" sizes="(max-width: 664px) 100vw, 664px" /><figcaption class="wp-element-caption"><strong><em>JavaScript Interview Questions with Answers</em></strong></figcaption></figure>
</div>


<ol class="wp-block-list">
<li>What is JavaScript?</li>
</ol>



<p class="wp-block-paragraph">A. A programming language<br>B. A markup language<br>C. A web browser</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="2">
<li>What is the output of console.log(&#8220;Hello&#8221; + 4)?</li>
</ol>



<p class="wp-block-paragraph">A. Hello4<br>B. TypeError<br>C. Hello</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="3">
<li>Which one of the following is considered a falsy value in JavaScript?</li>
</ol>



<p class="wp-block-paragraph">A. null<br>B. NaN<br>C. undefined</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="4">
<li>What is the difference between == and ===?</li>
</ol>



<p class="wp-block-paragraph">A. Both are the same<br>B. == only compares values, while === compares both values and data types<br>C. === only compares values, while == compares both values and data types</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="5">
<li>What is an example of a higher-order function in JavaScript?</li>
</ol>



<p class="wp-block-paragraph">A. setTimeout()<br>B. console.log()<br>C. Math.random()</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="6">
<li>What is the output of console.log(5 == &#8220;5&#8221;)?</li>
</ol>



<p class="wp-block-paragraph">A. true<br>B. false<br>C. undefined</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="7">
<li>What is the output of console.log(typeof null)?</li>
</ol>



<p class="wp-block-paragraph">A. null<br>B. object<br>C. undefined</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="8">
<li>What is the output of console.log([1, 2, 3] + [4, 5, 6])?</li>
</ol>



<p class="wp-block-paragraph">A. [1, 2, 3, 4, 5, 6]<br>B. 123456<br>C. NaN</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="9">
<li>Which one of the following is an example of a JavaScript event?</li>
</ol>



<p class="wp-block-paragraph">A. click<br>B. div<br>C. span</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="10">
<li>What is the output of console.log(+&#8221;5&#8243;)?</li>
</ol>



<p class="wp-block-paragraph">A. 5<br>B. &#8220;5&#8221;<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="11">
<li>What is the output of console.log(10%3)?</li>
</ol>



<p class="wp-block-paragraph">A. 1<br>B. 3<br>C. 0</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="12">
<li>Which one of the following is a valid JavaScript variable name?</li>
</ol>



<p class="wp-block-paragraph">A. my-variable<br>B. my variable<br>C. myVariable</p>



<h4 class="wp-block-heading">Answer: C</h4>



<ol class="wp-block-list" start="13">
<li>What is the output of console.log(!&#8221;Hello&#8221;)?</li>
</ol>



<p class="wp-block-paragraph">A. false<br>B. true<br>C. &#8220;&#8221; (empty string)</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="14">
<li>What is the output of console.log(5 + &#8220;5&#8221;)?</li>
</ol>



<p class="wp-block-paragraph">A. &#8220;55&#8221;<br>B. 10<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="15">
<li>What is an example of a JavaScript closure?</li>
</ol>



<p class="wp-block-paragraph">A. function add(x, y) { return x + y; }<br>B. function() { var x = 5; return function() { return x; } }<br>C. var x = 5; x++;</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="16">
<li>What is the output of console.log(typeof undefined)?</li>
</ol>



<p class="wp-block-paragraph">A. undefined<br>B. null<br>C. object</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="17">
<li>What is the output of console.log(Infinity &#8211; Infinity)?</li>
</ol>



<p class="wp-block-paragraph">A. NaN<br>B. Infinity<br>C. -Infinity</p>



<h4 class="wp-block-heading">Answer: NaN</h4>



<ol class="wp-block-list" start="18">
<li>What is the output of console.log(Math.floor(4.5))?</li>
</ol>



<p class="wp-block-paragraph">A. 4<br>B. 5<br>C. 4.5</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="19">
<li>What is an example of a JavaScript constructor function?</li>
</ol>



<p class="wp-block-paragraph">A. function add(x, y) { return x + y; }<br>B. var obj = { name: &#8220;John&#8221;, age: 30 };<br>C. function Person(name, age) { this.name = name; this.age = age; }</p>



<h4 class="wp-block-heading">Answer: C</h4>



<ol class="wp-block-list" start="20">
<li>What is the output of console.log(Array.isArray({}))?</li>
</ol>



<p class="wp-block-paragraph">A. true<br>B. false<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="21">
<li>What is an example of a JavaScript callback function?</li>
</ol>



<p class="wp-block-paragraph">A. function add(x, y) { return x + y; }<br>B. setTimeout(function() { console.log(&#8220;Hello&#8221;); }, 1000);<br>C. var x = 5; x++;</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="22">
<li>What is the output of console.log(Math.max([1, 2, 3]))?</li>
</ol>



<p class="wp-block-paragraph">A. 1<br>B. 2<br>C. 3</p>



<h4 class="wp-block-heading">Answer: NaN</h4>



<ol class="wp-block-list" start="23">
<li>What is an example of a JavaScript promise?</li>
</ol>



<p class="wp-block-paragraph">A. function add(x, y) { return x + y; }<br>B. new Promise(function(resolve, reject) { setTimeout(function() { resolve(&#8220;Hello&#8221;); }, 1000); });<br>C. var x = 5; x++;</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="24">
<li>What is the output of console.log([&#8220;a&#8221;, &#8220;b&#8221;, &#8220;c&#8221;].splice(1, 1))?</li>
</ol>



<p class="wp-block-paragraph">A. [&#8220;a&#8221;, &#8220;c&#8221;]<br>B. [&#8220;b&#8221;, &#8220;c&#8221;]<br>C. &#8220;b&#8221;</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="25">
<li>What is the output of console.log(&#8220;Hello John&#8221;.split(&#8221; &#8220;))?</li>
</ol>



<p class="wp-block-paragraph">A. &#8220;Hello John&#8221;<br>B. [&#8220;Hello&#8221;, &#8220;John&#8221;]<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="26">
<li>What is the output of console.log(20 + 30 + &#8220;40&#8221;)?</li>
</ol>



<p class="wp-block-paragraph">A. &#8220;2050&#8221;<br>B. &#8220;50&#8221;<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="27">
<li>What is the output of console.log(&#8220;Hello&#8221;.charAt(1))?</li>
</ol>



<p class="wp-block-paragraph">A. &#8220;h&#8221;<br>B. &#8220;e&#8221;<br>C. &#8220;l&#8221;</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="28">
<li>What is an example of a JavaScript regular expression?</li>
</ol>



<p class="wp-block-paragraph">A. /hello/<br>B. function add(x, y) { return x + y; }<br>C. var x = 5; x++;</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="29">
<li>What is the output of console.log(&#8220;Hello&#8221;.toUpperCase())?</li>
</ol>



<p class="wp-block-paragraph">A. &#8220;hello&#8221;<br>B. &#8220;HELLO&#8221;<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="30">
<li>What is the output of console.log([].constructor === Array)?</li>
</ol>



<p class="wp-block-paragraph">A. true<br>B. false<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="31">
<li>What is the output of console.log(&#8220;Hello&#8221;.replace(&#8220;l&#8221;, &#8220;x&#8221;))?</li>
</ol>



<p class="wp-block-paragraph">A. &#8220;Hexlo&#8221;<br>B. &#8220;Hxllo&#8221;<br>C. &#8220;Hello&#8221;</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="32">
<li>What is the output of console.log(Math.ceil(4.1))?</li>
</ol>



<p class="wp-block-paragraph">A. 4<br>B. 5<br>C. 4.1</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="33">
<li>What is an example of a JavaScript arrow function?</li>
</ol>



<p class="wp-block-paragraph">A. function add(x, y) { return x + y; }<br>B. var multiply = (x, y) =&gt; x * y;<br>C. var x = 5; x++;</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="34">
<li>What is the output of console.log([1, 2, 3].map(x =&gt; x * 2))?</li>
</ol>



<p class="wp-block-paragraph">A. [2, 4, 6]<br>B. [1, 2, 3]<br>C. [4, 8, 12]</p>



<h4 class="wp-block-heading">Answer: C</h4>



<ol class="wp-block-list" start="35">
<li>What is the output of console.log(9 &lt; 8 &lt; 7)?</li>
</ol>



<p class="wp-block-paragraph">A. true<br>B. false<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="36">
<li>What is the output of console.log(&#8220;Hello&#8221;.length)?</li>
</ol>



<p class="wp-block-paragraph">A. 5<br>B. &#8220;Hello&#8221;<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="37">
<li>What is an example of a JavaScript IIFE (Immediately Invoked Function Expression)?</li>
</ol>



<p class="wp-block-paragraph">A. (function add(x, y) { return x + y; })(3, 4);<br>B. function() { var x = 5; return function() { return x; } }<br>C. function Person(name, age) { this.name = name; this.age = age; }</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="38">
<li>What is the output of console.log(Math.round(4.4))?</li>
</ol>



<p class="wp-block-paragraph">A. 4<br>B. 5<br>C. 4.4</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="39">
<li>What is the output of console.log(Math.random() * 10)?</li>
</ol>



<p class="wp-block-paragraph">A. A random number between 0 and 1<br>B. A random number between 0 and 10<br>C. A random number between 1 and 10</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="40">
<li>What is the output of console.log([1, 2, 3].indexOf(2))?</li>
</ol>



<p class="wp-block-paragraph">A. 0<br>B. 1<br>C. 2</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="41">
<li>What is the output of console.log(+&#8221;5&#8243; + 5)?</li>
</ol>



<p class="wp-block-paragraph">A. 10<br>B. &#8220;10&#8221;<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="42">
<li>What is the output of console.log([&#8220;a&#8221;, &#8220;b&#8221;, &#8220;c&#8221;].indexOf(&#8220;d&#8221;))?</li>
</ol>



<p class="wp-block-paragraph">A. -1<br>B. 0<br>C. 1</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="43">
<li>What is the output of console.log(&#8220;apple&#8221;.indexOf(&#8220;p&#8221;))?</li>
</ol>



<p class="wp-block-paragraph">A. 0<br>B. 1<br>C. 2</p>



<h4 class="wp-block-heading">Answer: 1</h4>



<ol class="wp-block-list" start="44">
<li>What is the output of console.log(&#8220;apple&#8221;.slice(1, 3))?</li>
</ol>



<p class="wp-block-paragraph">A. &#8220;ap&#8221;<br>B. &#8220;pp&#8221;<br>C. &#8220;pl&#8221;</p>



<h4 class="wp-block-heading">Answer: C</h4>



<ol class="wp-block-list" start="45">
<li>What is the output of console.log(&#8220;Hello&#8221;.substring(1, 3))?</li>
</ol>



<p class="wp-block-paragraph">A. &#8220;el&#8221;<br>B. &#8220;llo&#8221;<br>C. &#8220;He&#8221;</p>



<h4 class="wp-block-heading">Answer: A</h4>



<ol class="wp-block-list" start="46">
<li>What is the output of console.log([1, 2, 3].push(4))?</li>
</ol>



<p class="wp-block-paragraph">A. [1, 2, 3, 4]<br>B. [4, 3, 2, 1]<br>C. 4</p>



<h4 class="wp-block-heading">Answer: C</h4>



<ol class="wp-block-list" start="47">
<li>What is an example of a JavaScript generator function?</li>
</ol>



<p class="wp-block-paragraph">A. function add(x, y) { return x + y; }<br>B. function* generate() { yield 1; yield 2; yield 3; }<br>C. var x = 5; x++;</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="48">
<li>What is the output of console.log(Math.min([1, 2, 3]))?</li>
</ol>



<p class="wp-block-paragraph">A. 1<br>B. 2<br>C. 3</p>



<h4 class="wp-block-heading">Answer: NaN</h4>



<ol class="wp-block-list" start="49">
<li>What is an example of a JavaScript async/await function?</li>
</ol>



<p class="wp-block-paragraph">A. function add(x, y) { return x + y; }<br>B. async function fetchData() { const response = await fetch(&#8220;http://example.com/data&#8221;); const data = await response.json(); return data; }<br>C. var x = 5; x++;</p>



<h4 class="wp-block-heading">Answer: B</h4>



<ol class="wp-block-list" start="50">
<li>What is the output of console.log([1, 2, 3].reverse())?</li>
</ol>



<p class="wp-block-paragraph">A. [1, 2, 3]<br>B. [3, 2, 1]<br>C. TypeError</p>



<h4 class="wp-block-heading">Answer: B</h4>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-50-javascript-interview-questions-with-answers/">Top 50 JavaScript Interview Questions with Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/top-50-javascript-interview-questions-with-answers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JavaScript : Advantages and disadvantages of External JavaScript ?</title>
		<link>https://www.scmgalaxy.com/tutorials/javascript-advantages-and-disadvantages-of-external-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/javascript-advantages-and-disadvantages-of-external-javascript/#respond</comments>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Fri, 01 Oct 2021 13:09:24 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[advantages and disadvantages of external javascript]]></category>
		<category><![CDATA[advantages of external javascript]]></category>
		<category><![CDATA[disadvantages of external javascript]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=9358</guid>

					<description><![CDATA[<p>Advantages : Following are the Advantages of javaScript over external :- Reusability of code. Easy code readability. It Enables both [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/javascript-advantages-and-disadvantages-of-external-javascript/">JavaScript : Advantages and disadvantages of External JavaScript ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Advantages :</h3>



<p class="wp-block-paragraph">Following are the Advantages of javaScript over external :-</p>



<ul class="wp-block-list"><li>Reusability of code.</li><li>Easy code readability.</li><li>It Enables both web designers and coders to work with html and js files.</li><li>With these small js files, you can use Google closure or YUI Compressor or other minifying tools to reduce the size and make it not readable by humans .</li></ul>



<h3 class="wp-block-heading">Disadvantages :</h3>



<p class="wp-block-paragraph"> Following are the disadvantages of javaScript over external :- </p>



<ul class="wp-block-list"><li>Code can be downloaded using the url of the js file. This can help coders to steal your code easily.</li><li>If two js files are dependent on one another, then a failure in one file may affect the execution of the other dependent file.</li><li>A small change to a common js file may cause unexpected results in some of the HTML files .</li><li>The browser has to make an extra http request to get the js code.</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/javascript-advantages-and-disadvantages-of-external-javascript/">JavaScript : Advantages and disadvantages of External JavaScript ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/javascript-advantages-and-disadvantages-of-external-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JavaScript : Where to use javaScript code</title>
		<link>https://www.scmgalaxy.com/tutorials/javascript-where-to-use-javascript-code/</link>
					<comments>https://www.scmgalaxy.com/tutorials/javascript-where-to-use-javascript-code/#respond</comments>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Wed, 29 Sep 2021 13:22:05 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[External javaScript use code]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[inside head tag javaScript use]]></category>
		<category><![CDATA[inside html tag use javaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[javaScript code use]]></category>
		<category><![CDATA[javascript example]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[What]]></category>
		<category><![CDATA[where to use javaScript code]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=9306</guid>

					<description><![CDATA[<p>JavaScript code use in following : Between the body tag of html Between the head tag of html In .js [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/javascript-where-to-use-javascript-code/">JavaScript : Where to use javaScript code</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">JavaScript code use in following  :</h3>



<ol class="wp-block-list"><li><strong>Between the body tag of html</strong></li><li><strong>Between the head tag of html</strong></li><li><strong>In .js file (external javaScript)</strong></li></ol>



<h3 class="wp-block-heading">1. JavaScript use between html body tag :</h3>



<p class="wp-block-paragraph">Example of javaScript using inside html between body tag.</p>



<script src="https://gist.github.com/vikash-cotocus/b3adcb37910e12eb873a41c8a6b3548c.js"></script>



<h4 class="wp-block-heading">Output :- Hello World</h4>



<h3 class="wp-block-heading">2. JavaScript use between head tag in html :</h3>



<p class="wp-block-paragraph">Example to use javaScript between head tag in html.</p>



<script src="https://gist.github.com/vikash-cotocus/be67ab438fea34845da19ce966a8a33e.js"></script>



<h4 class="wp-block-heading">Output :</h4>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="492" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/js-1024x492.png" alt="" class="wp-image-9310" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/js-1024x492.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/js-300x144.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/js-768x369.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/js-1536x739.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/js.png 1907w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">3. External JavaScript file :</h3>



<p class="wp-block-paragraph">We can create external JavaScript file and embed it in many html page. If you want to run the same <strong>JavaScript</strong> on several pages in a web site, you should create an <strong>external</strong> <strong>JavaScript</strong> <strong>file</strong>, instead of writing the same script over and over again.</p>



<h4 class="wp-block-heading">message.js </h4>



<script src="https://gist.github.com/vikash-cotocus/0e11e819cc715ed4cef04554e711242f.js"></script>



<h4 class="wp-block-heading">index.html</h4>



<script src="https://gist.github.com/vikash-cotocus/7a3420785b7ee4571c7fb2c7eddb311d.js"></script>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="441" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/jss-1024x441.png" alt="" class="wp-image-9311" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/jss-1024x441.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/jss-300x129.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/jss-768x331.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/jss-1536x662.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/jss.png 1822w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/javascript-where-to-use-javascript-code/">JavaScript : Where to use javaScript code</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/javascript-where-to-use-javascript-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JavaScript : Introduction</title>
		<link>https://www.scmgalaxy.com/tutorials/javascript-introduction/</link>
					<comments>https://www.scmgalaxy.com/tutorials/javascript-introduction/#respond</comments>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Tue, 28 Sep 2021 13:04:39 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[application of javascript]]></category>
		<category><![CDATA[example of javascript]]></category>
		<category><![CDATA[features of javascript]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[javascript introduction]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[scmga]]></category>
		<category><![CDATA[scmGalaxy DevOps Training Online]]></category>
		<category><![CDATA[scmgalaxy javascript]]></category>
		<category><![CDATA[scmGalaxy Tutorials]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[What]]></category>
		<category><![CDATA[what is javascript]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=9281</guid>

					<description><![CDATA[<p>JavaScript : JavaScript is used to create client-side dynamic pages. JavaScript (js) is a light-weight object-oriented programming language. JavaScript is [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/javascript-introduction/">JavaScript : Introduction</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>JavaScript :</strong></h2>



<ul class="wp-block-list"><li>JavaScript is used to create <strong>client-side dynamic pages</strong>.</li><li>JavaScript (<strong>js</strong>) is a<strong> light-weight object-oriented programming language</strong>.</li><li>JavaScript is <strong>not a compiled language</strong>, but it is a translated language.</li><li>The JavaScript Translator (embedded in the browser) is responsible for <strong>translating </strong>the <strong>JavaScript code for the web browser</strong>.</li><li> JavaScript, users can build modern web applications to interact directly without <strong>reloading the page every time</strong>.</li><li>databases such as <strong>CouchDB </strong>and <strong>MongoDB </strong>uses JavaScript as their <strong>scripting and query language</strong>.</li></ul>



<h2 class="wp-block-heading"><strong>Features of JavaScript</strong> :</h2>



<p class="wp-block-paragraph">There are following features of js :-</p>



<ul class="wp-block-list"><li>Object-Centered Script Language</li><li>Light Weight and delicate</li><li>Interpreted language</li><li>Case Sensitive format/language</li><li>Ability to perform In Built Function</li><li>Statements Looping</li><li>Client edge Technology</li><li>Validation of User’s Input</li><li>Else and If Statement</li><li>It uses prototypes rather than using classes for inheritance.</li><li>It is supportable in several operating systems including, Windows, macOS, etc.</li><li>It provides good control to the users over the web browsers.</li></ul>



<h2 class="wp-block-heading">Application of JavaScript</h2>



<p class="wp-block-paragraph">JavaScript is used to create interactive websites. It is mainly used for:</p>



<ul class="wp-block-list"><li><strong>Client-side validation</strong></li><li><strong>Manipulating HTML Pages</strong></li><li><strong>User Notifications</strong></li><li><strong>Dynamic drop-down menus</strong></li><li><strong>Displaying date and time</strong></li><li><strong>Displaying pop-up windows</strong> </li><li><strong>Alert dialog box</strong></li><li><strong>Confirm dialog box</strong></li><li><strong>Prompt dialog box</strong></li><li><strong>Back-end Data Loading</strong></li><li><strong>Presentations</strong></li><li><strong>Server Applications</strong></li><li><strong>Displaying clocks etc.</strong></li></ul>



<h2 class="wp-block-heading">JavaScript Example :</h2>



<script src="https://gist.github.com/vikash-cotocus/a93d95506ea1ca30bf7e10cbb5bf0f18.js"></script>



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



<h2 class="wp-block-heading">Welcome to JavaScript</h2>



<p class="wp-block-paragraph">Hello JavaScript by JavaScript </p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/javascript-introduction/">JavaScript : Introduction</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/javascript-introduction/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Top programming languages in the world &#038; their courses and certifications?</title>
		<link>https://www.scmgalaxy.com/tutorials/top-programming-languages-in-the-world-their-courses-and-certifications/</link>
					<comments>https://www.scmgalaxy.com/tutorials/top-programming-languages-in-the-world-their-courses-and-certifications/#respond</comments>
		
		<dc:creator><![CDATA[uttam.]]></dc:creator>
		<pubDate>Mon, 06 Sep 2021 11:03:18 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Node js]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Programming Scripting Languages]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[Courses]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Programming Language]]></category>
		<category><![CDATA[TypeScript]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8791</guid>

					<description><![CDATA[<p>The world is turning into smarter day by day with the quick development of Automation, computing, Blockchain, etc. And at [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-programming-languages-in-the-world-their-courses-and-certifications/">Top programming languages in the world &amp; their courses and certifications?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The world is turning into smarter day by day with the quick development of Automation, computing, Blockchain, etc. And at the middle of it, somewhere, are programming languages. In fact, Labour Statistics have expected a 21% growth for programming jobs within the returning decade, which is quite 4x the common for all occupations. however attempting to start out out with programming is a frightening escapade, particularly for professionals with no previous expertise. thus if you’re one who cannot decide wherever to start, don’t worry as a result of we’ve got you coated. the following article aims to grant you a fast examine the highest Programming Languages within the world &amp; their courses and certifications?</p>



<ul class="wp-block-list"><li><strong><a href="https://www.devopsschool.com/certification/selenium-with-java.html" target="_blank" rel="noreferrer noopener">JAVA</a></strong></li><li><strong><a href="https://www.devopsschool.com/certification/master-in-golang-with-gin.html" target="_blank" rel="noreferrer noopener">Golang</a></strong></li><li><strong><a href="https://www.devopsschool.com/certification/master-in-typescript-with-nestjs.html" target="_blank" rel="noreferrer noopener">TypeScript</a></strong></li><li><strong><a href="https://www.devopsschool.com/certification/master-in-scala-with-spark.html" target="_blank" rel="noreferrer noopener">Scala</a></strong></li><li><strong><a href="https://www.devopsschool.com/certification/master-in-javascript-with-angularjs-and-nodejs.html" target="_blank" rel="noreferrer noopener">JavaScript</a></strong></li><li><strong><a href="https://www.devopsschool.com/certification/master-in-php-with-laravel.html" target="_blank" rel="noreferrer noopener">PHP</a></strong></li><li><strong><a href="https://www.devopsschool.com/certification/master-in-javascript-with-angularjs-and-nodejs.html" target="_blank" rel="noreferrer noopener">AngularJs</a></strong></li><li><strong><a href="https://www.devopsschool.com/certification/master-in-javascript-with-angularjs-and-nodejs.html" target="_blank" rel="noreferrer noopener">NodeJS</a></strong></li></ul>



<p class="wp-block-paragraph"><strong>Java</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="418" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/javao1.jpeg" alt="" class="wp-image-8792" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/javao1.jpeg 800w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/javao1-300x157.jpeg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/javao1-768x401.jpeg 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">Owned by the Oracle Corporation, Java is one of the oldest, most typical, in-demand programming languages in use these days. Well, think about a number of your favorite internet apps and games. It’s extremely probably that Java plays an enormous role within the code that creates their work. Another necessary factor that has kept Java’s magic intact among internet development corporations is its independence from platforms. This helps developers to basically “write once, work anywhere”(WORA). Java is everyplace and also the demand for sturdy developers is virtually high.</p>



<p class="wp-block-paragraph"><strong>How does it work?</strong></p>



<p class="wp-block-paragraph">In Java, programs don&#8217;t seem to be compiled into practicable files; they&#8217;re compiled into bytecode (as mentioned earlier), that the JVM (Java Virtual Machine) then executes at runtime. Java source code is compiled into bytecode after we use the javac compiler. The bytecode gets saved on the disk with the file extension.</p>



<p class="wp-block-paragraph"><strong>Reasons for Demand</strong>:</p>



<ul class="wp-block-list"><li>With its presence in almost 3 billion devices, Java’s new frameworks such as Spring, Struts, and Hibernate have also become very popular.</li><li>It is favored by enterprises, with roughly 90 percent of Fortune 500 companies use Java for building applications and back-end systems.</li><li>Java is highly recognized for its scalability and portability across multiple platforms from mainframe data centers to smartphones.</li><li>With millions of users across the globe, the popular users of Java include Barclays, HCL, Capital One, etc.</li><li>Forms the base for and is used in a multitude of domains including mobile application, web development, system programming, and big data.</li><li>Its powerful features include strong memory management, high performance, backward compatible and top-notch security.</li></ul>



<p class="wp-block-paragraph"><strong>Golang</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="602" height="339" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/main-qimg-bde1fc0efd05ea8ba16ca42d58e8020e.jpg" alt="" class="wp-image-8793" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/main-qimg-bde1fc0efd05ea8ba16ca42d58e8020e.jpg 602w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/main-qimg-bde1fc0efd05ea8ba16ca42d58e8020e-300x169.jpg 300w" sizes="auto, (max-width: 602px) 100vw, 602px" /></figure>



<p class="wp-block-paragraph">Developed by the technical school big Google itself, Go is one of the newest players within the programming platform. it&#8217;s an open-source language that produces it simple to form easy, secure, and productive computer code. It combines the most effective aspects of useful and object-oriented programming, also as options a valuable set of intrinsical development tools.</p>



<p class="wp-block-paragraph"><strong>How does it work?</strong></p>



<p class="wp-block-paragraph">Go was originally designed for programs associated with networking and infrastructure. it absolutely was meant to switch widespread high-performance server-side languages like Java and C++. Today, Go is used for a spread of applications like cloud and server-side applications, DevOps, command-line tools, and far additional.</p>



<p class="wp-block-paragraph"><strong>Reasons for Demand</strong>:</p>



<ul class="wp-block-list"><li>Popular projects like Kubernetes, Docker, Hugo, Hyperledger Blockchain, and Ethereum are developed using Golang.</li><li>The language is straightforward to grasp even for the new programmers while being extremely powerful at the same time.</li><li>Supports multithreading at large and is hence used by a lot of companies that rely heavily on distributed systems.</li><li>Go has been optimized by Google to be incredibly efficient with memory and has blazing fast speed.</li><li>It provides high performance like C/C++ and has efficient concurrency handling like Java.</li><li>It is widely used in startups and some of the companies that use the language are Walmart, Springboard, Siemens, Dell.</li></ul>



<p class="wp-block-paragraph"><strong>TypeScript</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1009" height="286" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/typescript-programming-language.png" alt="" class="wp-image-8794" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/typescript-programming-language.png 1009w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/typescript-programming-language-300x85.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/typescript-programming-language-768x218.png 768w" sizes="auto, (max-width: 1009px) 100vw, 1009px" /></figure>



<p class="wp-block-paragraph">TypeScript might be a superset of the JavaScript language that has a single open-source compiler and is developed within the main by one trafficker (Microsoft.) The goal of the matter is to help catch mistakes early through a sorting system and to make JavaScript development further economical.</p>



<p class="wp-block-paragraph"><strong>How does it work?</strong></p>



<p class="wp-block-paragraph">TypeScript works by adding increased syntax to JavaScript so transforming it to JavaScript when the typescript compiler will its own checks. It does not modification JavaScript&#8217;s kind of system. Instead, it adds a lot of checks to it.</p>



<p class="wp-block-paragraph"> <strong>Reasons for Demand</strong>: </p>



<ul class="wp-block-list"><li>TypeScript simplifies JavaScript code, making it easier to read and debug.</li><li>TypeScript gives us all the benefits of ES6 (ECMAScript 6), plus more productivity.</li><li>TypeScript can help us to avoid painful bugs that developers commonly run into when writing JavaScript by type checking the code.</li><li>TypeScript is a modern programming language loved by engineers for making web development a lot easier.</li><li>You can use TypeScript everywhere instead of JavaScript, as it compiles to regular JS code. That&#8217;s another reason for its demand.</li></ul>



<p class="wp-block-paragraph"><strong>Scala</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="341" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scala-1024x341.png" alt="" class="wp-image-8795" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scala-1024x341.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scala-300x100.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scala-768x256.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scala.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Scala could be a programming language used for practical programming and powerful static systems. It&#8217;s object-oriented and runs on JVM. It&#8217;s the aptitude to interoperate with existing Java code and libraries. It&#8217;s powerfully thought of to be a static kind of language and doesn&#8217;t have an idea of primitive information.</p>



<p class="wp-block-paragraph"><strong>How does it work?</strong></p>



<p class="wp-block-paragraph">The compiler in Scala works during a similar fashion because of the Java compiler. It gets the source code and generates Java byte-code which will be dead severally on any commonplace JVM (Java Virtual Machine). Scala could be a statically typed language. Scala will execute Java.</p>



<p class="wp-block-paragraph"> <strong>Reasons for Demand</strong>: </p>



<ul class="wp-block-list"><li>Scala programming language variables are immutable and can be easily overloaded in Java. In addition to this, it also offers to adopt new languages like Python, Ruby, etc. to implement functional programming.</li><li>Scala is a language that is inherently more expressive than Java. The developers who learn Scala after Java find it easier and interesting to write code in Scala. To get the beauty of this language in comparison with Java.</li><li>A developer needs to be in demand always. The main reason or use of Scala is a better growth and job. Learning Scala will increase your demand and will make you even more marketable. Many companies like Twitter, LinkedIn, Foursquare, etc are using Scala.</li><li>Scala can be said as a language that is growing fast and lots of programmers going to join the Scala bandwagon. Even developers who know Java are now moving to learn Scala. There are many new libraries and frameworks that are being built on application of Scala.</li><li>A Java programming finds it difficult to learn any functional language. uses of Scala is easy due to its object-oriented functionality. Scala has clean syntax, nice libraries, good online documentation, and lots of people in the industry using it.</li></ul>



<p class="wp-block-paragraph"><strong>JavaScript</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="300" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/javascript-illustration.png" alt="" class="wp-image-8796" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/javascript-illustration.png 800w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/javascript-illustration-300x113.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/javascript-illustration-768x288.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">Along with HTML and CSS, Javascript is that the programming language that engineered the internet. So, it’s a fairly huge deal. Universally referred to as the language of internet developers, javascript could be a feature-rich object-based scripting language that includes asynchronous event handling and crisp syntax, it&#8217;s found widespread use within the field of internet development. What started off as an easy client-side scripting language, is currently a highlight inside the net development community that includes multiple frameworks for each backend and frontend development.</p>



<p class="wp-block-paragraph"><strong>How does it work?</strong></p>



<p class="wp-block-paragraph">JavaScript is what&#8217;s known as a Client-side Scripting Language. within a standard website, you place some JavaScript code See however sites Work for details on sites. once the browser loads the page, the browser features a constitutional interpreter that reads the JavaScript code it finds on the page and runs it.</p>



<p class="wp-block-paragraph">  <strong>Reasons for Demand</strong>: </p>



<ul class="wp-block-list"><li>In extension to absolute JavaScript, various popular libraries and frameworks make JavaScript development easier.</li><li>Most accessible supporting technologies related to JavaScript are JSON, jQuery, Angular, React (JS Library), etc.</li><li>Fundamentally a front-end language, it can also be practiced on the server-side throughout Node.js to create scalable network applications.</li><li>Majority of tech giants like Google, Facebook, SAP, Dell, Accenture, etc rely on Javascript to design interactive web pages and dynamically display content to users.</li></ul>



<p class="wp-block-paragraph"><strong>PHP</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="860" height="481" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/heres-why-php-is-still-popular-in-2020.png" alt="" class="wp-image-8797" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/heres-why-php-is-still-popular-in-2020.png 860w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/heres-why-php-is-still-popular-in-2020-300x168.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/heres-why-php-is-still-popular-in-2020-768x430.png 768w" sizes="auto, (max-width: 860px) 100vw, 860px" /><figcaption>PHP is used by 79% of all the websites whose server-side programming language we all know. it&#8217;s the main used for developing dynamic and data-heavy websites and applications. it&#8217;s been the cornerstone of the net for a protracted time. PHP could be an easy, fast, and platform-independent general programming language with over 631,000 repositories on GitHub.</figcaption></figure>



<p class="wp-block-paragraph"><strong>How does it work?</strong></p>



<p class="wp-block-paragraph">The PHP software system works with the webserver, which is that the software system that delivers sites to the planet. after you A URL into your net browser&#8217;s address bar, you are causation a message to the webserver at that URL, asking it to send you an HTML file. Your browser reads the HTML file and displays the online page.</p>



<p class="wp-block-paragraph"> <strong>Reasons for Demand</strong>:  </p>



<ul class="wp-block-list"><li>PHP is used by 79.0% of all the websites whose server-side programming languages are known.</li><li>PHP is simple, fast and platform-independent.</li><li>It is 631k repositories on GitHub and has a community of 5.9M to back it up.</li><li>Companies that have publicly declared usage of PHP include Facebook, Yahoo, Wikipedia.</li></ul>



<p class="wp-block-paragraph"><strong>AngularJs</strong></p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/angular-JS-online-training-nareshit.jpg" alt="" class="wp-image-8799" width="837" height="419" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/angular-JS-online-training-nareshit.jpg 500w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/angular-JS-online-training-nareshit-300x150.jpg 300w" sizes="auto, (max-width: 837px) 100vw, 837px" /></figure>



<p class="wp-block-paragraph">AngularJS could be a client-side JavaScript MVC framework to develop a dynamic internet application. It extends the flexibility of HTML by adding intrinsical attributes and parts and additionally provides a capability to form custom attributes victimization easy JavaScript.</p>



<p class="wp-block-paragraph"><strong>How does it work?</strong></p>



<p class="wp-block-paragraph">AngularJS could also be a structural framework for dynamic net apps. It permits you to use hypertext markup language as your model language and permits you to extends HTML syntax to specify your application&#8217;s elements clearly and compactly. AngularJS&#8217;s information binding and dependency injection eliminate a lot of the code you&#8217;d otherwise need to write.</p>



<p class="wp-block-paragraph"> <strong>Reasons for Demand</strong>:  </p>



<ul class="wp-block-list"><li>Modularity is one of the prime reasons why AngularJS is popular among web developers.</li><li>AngularJS recognizes the need to create an additional module so that it can be combined with other developed application modules.</li><li>It allows and enables web developers to create multiple modules for a single web application.</li><li>AngularJS is one of the skills unique to this job, along with React. js, Code. js, Javascript, and CSS.</li><li>Today, AngularJS is a leading framework for building dynamic, single-page web applications (known as SPAs), including ones like PayPal and Netflix.</li></ul>



<p class="wp-block-paragraph"><strong>NodeJs</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="730" height="487" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/using-inbuilt-nodejs-profiler.png" alt="" class="wp-image-8800" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/using-inbuilt-nodejs-profiler.png 730w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/using-inbuilt-nodejs-profiler-300x200.png 300w" sizes="auto, (max-width: 730px) 100vw, 730px" /><figcaption>Node. js is primarily used for non-blocking, event-driven servers, because of its single-threaded nature. It&#8217;s used for ancient websites and back-end API services time period was designed with the period of time, push-based architectures in mind.</figcaption></figure>



<p class="wp-block-paragraph"><strong>How does it work?</strong></p>



<p class="wp-block-paragraph">Node. js is the JavaScript runtime environment which is based on Google&#8217;s V8 Engine with the help of Node, Js we can run the JavaScript outside of the browser, js is that it is single-threaded, based on event-driven architecture, and non-blocking based on the I/O model.</p>



<p class="wp-block-paragraph"><strong>Reasons for Demand</strong>:   </p>



<ul class="wp-block-list"><li>A Single Language for All Layers. Another key benefit of Node.</li><li>It can be Hosted Anywhere.</li><li>It&#8217;s lightning Fast. Node.</li><li>It is JavaScript Everywhere. One of the biggest reasons why Node.</li><li>It is Lightweight. Typically, Node.</li><li>High Performance.</li><li>It is Easy to Modify and Maintain.</li></ul>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"><strong>Conclusion</strong></p>



<p class="wp-block-paragraph">In this article, we have listed the top most popular programming languages to learn. Now, it’s your choice where you want to land your career or choose the right programming language for you, If you wanna learn then i would suggest you check out <strong>DevOpsSchool</strong> it is a great platform for learning. Get an insight to all the details we mentioned, and choose accordingly. So, make sure you should hold a good command on a specific language you choose for programming.You’ll even also join our Online and Classroom Programs.<br>And that concludes my list of the Top Programming Languages. Hope this article proved useful to you.</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">Thank you!</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-programming-languages-in-the-world-their-courses-and-certifications/">Top programming languages in the world &amp; their courses and certifications?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/top-programming-languages-in-the-world-their-courses-and-certifications/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial for Polymorphism in OOPS</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Thu, 02 Sep 2021 13:16:06 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[benefits of Polymorphism]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[oops]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Polymorphism]]></category>
		<category><![CDATA[Polymorphism in OOPS]]></category>
		<category><![CDATA[The benefits of Polymorphism are:]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Tutorial for Polymorphism in OOPS]]></category>
		<category><![CDATA[What is Polymorphism]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8655</guid>

					<description><![CDATA[<p>What is Polymorphism? Polymorphism, as its name implies, comes in a variety of forms. OOP allows for the use of a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/">Tutorial for Polymorphism in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">What is <strong>Polymorphism</strong>?</h3>



<p class="wp-block-paragraph">Polymorphism, as its name implies, comes in a variety of forms. OOP allows for the use of a variety of techniques I. Simply expressed, they have to do with how methods are used, and how different methods operate for different objects. Method Overriding and Method Overloading are two ways that polymorphic methods allow for different actions to be done.</p>



<p class="wp-block-paragraph"><strong>The benefits of Polymorphism are:</strong></p>



<ul class="wp-block-list"><li>Objects of different types can be passed through the same interface</li><li>Method overriding</li><li>Method overloading</li></ul>



<p class="wp-block-paragraph"><strong>Method Overriding</strong>:- Overriding is used in the polymorphism of runtime. By overriding a parent class&#8217;s method, a child class can implement a different method. In the case of our dogs, we may prefer a specific type of bark that is distinct from the generic type of dog (<code><span class="has-inline-color has-vivid-red-color">TrackingDog</span></code>).</p>



<p class="wp-block-paragraph"><strong>Example:-</strong></p>



<script src="https://gist.github.com/AdarshAshwani/2f14c51fb9288cff503e2f683a4a540b.js"></script>



<div class="wp-block-image"><figure class="aligncenter is-resized"><img loading="lazy" decoding="async" src="https://www.devopsschool.com/blog/wp-content/uploads/2021/05/image-61.png" alt="" width="443" height="369"/><figcaption>TrackingDog’s overriding the bark() method</figcaption></figure></div>



<p class="wp-block-paragraph"><strong>Method Overloading</strong>:- Overloading is used at the polymorphic build time. Although methods and functions may have the same name, the call method has its own set of arguments. Different results may be obtained depending on the number of parameters entered.</p>



<p class="wp-block-paragraph"><strong>Example</strong>:- There are no parameters supplied to the <code><span class="has-inline-color has-vivid-red-color">updateAttendance()</span></code> method. The count will be added one day. When the <code><span class="has-inline-color has-vivid-red-color">updateAttendance(4)</span></code> argument is used, the x <code><span class="has-inline-color has-vivid-red-color">xupdateAttendance(x)</span></code> parameter is used, and four days are added to the total.</p>



<script src="https://gist.github.com/AdarshAshwani/5a4dc586be245a338a81b7127ea425c9.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/">Tutorial for Polymorphism in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial for Abstraction in OOPS</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Thu, 02 Sep 2021 13:00:08 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Abstraction]]></category>
		<category><![CDATA[Abstraction in OOPS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Object-oriented programming]]></category>
		<category><![CDATA[oops]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[the Function of Abstraction?]]></category>
		<category><![CDATA[Tutorial for Abstraction in OOPS]]></category>
		<category><![CDATA[What is]]></category>
		<category><![CDATA[What is the Function of Abstraction]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8645</guid>

					<description><![CDATA[<p>What is Abstraction? Abstraction in OOP allows information/access about how codes are applied to be concealed, allowing just the required [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/">Tutorial for Abstraction in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">What is <strong>Abstraction</strong>?</h3>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://images.slideplayer.com/26/8597046/slides/slide_2.jpg" alt="Basics of Computation Theory. What is &quot;abstraction&quot;? Abstraction unifies  multiple and different objects into one concept  describes the common  properties. - ppt download"/></figure></div>



<p class="wp-block-paragraph">Abstraction in OOP allows information/access about how codes are applied to be concealed, allowing just the required access. These details may be found in the object definitions. A famous example is the counting approach that works with list items. One thing to keep in mind is that, given the same OOP concept, all Python I data types and structures are objects. In this sense, a list is a class that has methods for completing tasks.</p>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://cdn.journaldev.com/wp-content/uploads/2019/09/abstraction.png" alt="What is Abstraction in OOPS? - JournalDev"/></figure></div>



<h3 class="wp-block-heading"><strong>What is the Function of <strong>Abstraction</strong>?</strong></h3>



<p class="wp-block-paragraph"><strong>Abstraction use simpler high-level instruments to get access to a complex object:</strong></p>



<ul class="wp-block-list"><li>Using simple things to represent complexity</li><li>Hide complex details from user</li></ul>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://i.ytimg.com/vi/1eSCCQPBqP0/maxresdefault.jpg" alt="JavaScript ES7 OOP. Abstraction. Class. #1 - YouTube"/></figure></div>



<p class="wp-block-paragraph">Abstraction also serves a significant security role. We only present selected data items and provide data access via classes and methods to protect the data from being exposed. In the case of an automobile, an open gas tank would make it impossible to continue driving.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="608" height="547" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/Tutorial-for-Abstraction-in-OOPS.jpg" alt="" class="wp-image-8651" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/Tutorial-for-Abstraction-in-OOPS.jpg 608w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/Tutorial-for-Abstraction-in-OOPS-300x270.jpg 300w" sizes="auto, (max-width: 608px) 100vw, 608px" /></figure></div>



<p class="wp-block-paragraph"><strong>There are some benefits of abstraction which is mention below:</strong></p>



<ul class="wp-block-list"><li>Simple, high level user interfaces</li><li>Complex code is hidden</li><li>Security</li><li>Easier software maintenance</li><li>Code updates rarely change abstraction</li></ul>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/">Tutorial for Abstraction in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Complete guide of JavaScript Certification courses, tutorials, and training</title>
		<link>https://www.scmgalaxy.com/tutorials/complete-guide-of-javascript-certification-courses-tutorials-training/</link>
					<comments>https://www.scmgalaxy.com/tutorials/complete-guide-of-javascript-certification-courses-tutorials-training/#respond</comments>
		
		<dc:creator><![CDATA[uttam.]]></dc:creator>
		<pubDate>Thu, 26 Aug 2021 09:07:24 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[Course]]></category>
		<category><![CDATA[DevOpsschool]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8311</guid>

					<description><![CDATA[<p>Tutorials JavaScript may be a lightweight, taken artificial language. It’s designed for making network-centric applications. It’s complimentary to and integrated [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-guide-of-javascript-certification-courses-tutorials-training/">Complete guide of JavaScript Certification courses, tutorials, and training</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Tutorials</strong></p>



<p class="wp-block-paragraph">JavaScript may be a lightweight, taken artificial language. It’s designed for making network-centric applications. It’s complimentary to and integrated with Java. JavaScript is incredibly straightforward to implement as a result of its integration with a mark-up language. It’s open and cross-platform.</p>



<p class="wp-block-paragraph"><strong>What is JavaScript?</strong></p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/What_is_JavaScript_this.jpg" alt="" class="wp-image-8313" width="665" height="374" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/What_is_JavaScript_this.jpg 848w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/What_is_JavaScript_this-300x169.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/What_is_JavaScript_this-768x432.jpg 768w" sizes="auto, (max-width: 665px) 100vw, 665px" /></figure>



<p class="wp-block-paragraph">JavaScript is the Programming Language for the Web, JavaScript is a programming language commonly used in web development. JavaScript can inform then adjust together HTML and CSS. JavaScript can calculate, operate and validate data. This means JavaScript purposes can run after a webpage has loaded without interactive using the server.</p>



<p class="wp-block-paragraph"><strong>Why it is used?</strong></p>



<p class="wp-block-paragraph">JavaScript is a text-based programming language used both on the client-side and server-side that allows you to create web pages interactively. Where HTML and CSS remain languages that provide structure then style to web pages, JavaScript provides web pages communicating elements that include a user.</p>



<p class="wp-block-paragraph"><strong>How does JavaScript work?</strong></p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/javascript1_1.png" alt="" class="wp-image-8316" width="723" height="336" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/javascript1_1.png 759w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/javascript1_1-300x140.png 300w" sizes="auto, (max-width: 723px) 100vw, 723px" /></figure>



<p class="wp-block-paragraph">The way JavaScript works is interesting. Inside a communal Web page, you place certain JavaScript code ‘Understand How Web Pages Work used for details on Web pages. While the browser loads the page, the browser has a built-in interpreter that reads the JavaScript code it finds on the page then runs it.</p>



<p class="wp-block-paragraph"><strong>Advantages of JavaScript:</strong></p>



<p class="wp-block-paragraph">The advantages of using JavaScript are the following:</p>



<ul class="wp-block-list"><li>Immediate feedback to the visitors − they do not have to wait for a page reload to see if they have been unable to remember to enter something.</li><li>Richer interfaces − you be able to use JavaScript to include such things as drag-and-drop components and sliders to give a Rich Interface to your site visitors.</li><li>Less server interaction − you be able to verify user input before sending the page off to the server. This saves server traffic, which means not as much load on your server.</li><li>Increased interactivity − you be able to make interfaces that respond while the user hovers over them with a mouse or else activates them via the keyboard.</li></ul>



<p class="wp-block-paragraph"><strong>Why is JavaScript so important?</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="858" height="385" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/execution.png" alt="" class="wp-image-8336" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/execution.png 858w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/execution-300x135.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/execution-768x345.png 768w" sizes="auto, (max-width: 858px) 100vw, 858px" /></figure>



<p class="wp-block-paragraph">JavaScript could be a programing language used principally by net browsers to create a dynamic then human action data used for the user. Most of the needs and applications that build the web indispensable to trendy life stay coded in sure sorts of JavaScript.</p>



<p class="wp-block-paragraph"><strong>Features of Java Script:</strong></p>



<ul class="wp-block-list"><li>JavaScript provides HTML originators a programming tool &#8211; HTML authors remain usually not programmers, but then JavaScript is a scripting language using a very simple syntax; Nearly someone can put small ‘snippets’ of code into their HTML pages.</li></ul>



<ul class="wp-block-list"><li>JavaScript be able to put dynamic text into an HTML page &#8211; A JavaScript statement like this: document. Write (&#8220;&lt;h1&gt;&#8221; + name + &#8220;&lt;/h1&gt;&#8221;) can write a variable text into a HTML page.</li></ul>



<ul class="wp-block-list"><li>JavaScript be able to react to events &#8211; A JavaScript be able to be set to implement while something occurs like as soon as a page has to overload otherwise once a user clicks on an HTML element.</li></ul>



<ul class="wp-block-list"><li>JavaScript be able to read and write HTML elements &#8211; JavaScript be able to read then change the content of an HTML element.</li></ul>



<ul class="wp-block-list"><li>JavaScript be able to be used to validate data &#8211; JavaScript be able to be used to validate form data before it is submitted to a server. This protects the server from extra processing.</li></ul>



<ul class="wp-block-list"><li>JavaScript be able to be used to detect the visitor&#8217;s browser &#8211; JavaScript is able to be used to detect the visitor&#8217;s browser, and depending on the browser &#8211; load another page specifically designed for that browser.</li></ul>



<ul class="wp-block-list"><li>JavaScript be able to be used to create cookies &#8211; JavaScript is able to be used to store and retrieve info on the visitor&#8217;s computer.</li></ul>



<p class="wp-block-paragraph"><strong>What is JavaScript Framework, and Why Use One?</strong></p>



<p class="wp-block-paragraph">A coding framework remains an inspiration during which code as long as general practicality be ready to be by selection modified through different user-written code. JavaScript framework could be a submission framework written in JavaScript wherever the programmer&#8217;s square measure ready to influence the needs then use them used for his or her quality.</p>



<p class="wp-block-paragraph">Frameworks stay a lot of adjustable for the planning of internet sites, then hence, most web site developers like them. JavaScript frameworks stay a sort of tool that creates operating by JavaScript easier and power tool. These frameworks still build their potential used for the computer programmer to code the appliance as per a tool receptive. This willingness is up until currently a further reason why the JavaScript frameworks stay quite widespread whereas it originates to the question of employing a high-level machine language. In 2021 let&#8217;s have a glance at the simplest JS Frameworks.</p>



<p class="wp-block-paragraph"><strong>JavaScript Framework are:</strong></p>



<p class="wp-block-paragraph"><strong>1. Angular</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="760" height="339" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/1570190909rF4xFLDbsx.png" alt="" class="wp-image-8320" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/1570190909rF4xFLDbsx.png 760w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/1570190909rF4xFLDbsx-300x134.png 300w" sizes="auto, (max-width: 760px) 100vw, 760px" /></figure>



<p class="wp-block-paragraph">One of the most powerful, effective, and open-source JavaScript frameworks is Angular. Google operates this framework then is applied to use meant for developing a Single Page Application (SPA). It extends the HTML into the application and interprets the qualities to perform data binding.</p>



<p class="wp-block-paragraph"><strong>2. React</strong></p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/react-2.png" alt="" class="wp-image-8321" width="721" height="594" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/react-2.png 807w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/react-2-300x247.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/react-2-768x633.png 768w" sizes="auto, (max-width: 721px) 100vw, 721px" /></figure>



<p class="wp-block-paragraph">Formed using Facebook, the Respond framework has earned popularity within a short period. It remains used to develop then function the dynamic User Interface of the web pages with high inward traffic. It creates the use of a computer-generated DOM, and hence, the integration of the same with any application is more straightforward.</p>



<p class="wp-block-paragraph"><strong>3. Vue.js</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1012" height="326" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/3.png" alt="" class="wp-image-8322" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/3.png 1012w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/3-300x97.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/3-768x247.png 768w" sizes="auto, (max-width: 1012px) 100vw, 1012px" /></figure>



<p class="wp-block-paragraph">However developed in the year 2016, this JavaScript framework has previously prepared its way into the market then has verified its worth through offering several features. Its dual integration way is one of the most attractive features used for making high-end SPA or Single Page Applications. It is an abundant dependable platform for developing cross-platform.</p>



<p class="wp-block-paragraph"><strong>4. Ember.js</strong></p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/4.png" alt="" class="wp-image-8323" width="315" height="299" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/4.png 324w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/4-300x285.png 300w" sizes="auto, (max-width: 315px) 100vw, 315px" /></figure>



<p class="wp-block-paragraph">The intro of Ember.js to the software market was in 2015, and since then, it has increased admiration by its wide application area. The features of Ember.js provision two-way data binding and hence, begin a dependable platform for handling difficult User Interfaces. Popular websites like Netflix, Linked In, Nordstrom, and many more use the Ember.JS platform for their websites.</p>



<p class="wp-block-paragraph"><strong>5. Meteor</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="930" height="448" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/5.png" alt="" class="wp-image-8326" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/5.png 930w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/5-300x145.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/5-768x370.png 768w" sizes="auto, (max-width: 930px) 100vw, 930px" /></figure>



<p class="wp-block-paragraph">Meteor&#8217;s application area (aka Meteor.js or MeteorJS) work for the name itself since it is diverse as it covers virtually the important portion of the software development. Usages of this framework comprise significant zones like back-end development, management of the database, business logic, and version of the front-end.</p>



<p class="wp-block-paragraph"><strong>6. Mithril</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="545" height="140" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/6.png" alt="" class="wp-image-8327" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/6.png 545w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/6-300x77.png 300w" sizes="auto, (max-width: 545px) 100vw, 545px" /></figure>



<p class="wp-block-paragraph">Mithril may be a client-side JavaScript framework that&#8217;s used primarily in developing Single Page Applications. As there stay no by-product functions from a base category, the framework&#8217;s implementation is additionally easy. It&#8217;s tiny (&lt; 8kb gzip), quick and provides routing and XHR utilities out of the box. It’s a number of options almost like react.</p>



<p class="wp-block-paragraph"><strong>7. Node.js</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="590" height="361" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/7.png" alt="" class="wp-image-8328" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/7.png 590w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/7-300x184.png 300w" sizes="auto, (max-width: 590px) 100vw, 590px" /></figure>



<p class="wp-block-paragraph">Node.js could be a server-side JavaScript run-time atmosphere, which works on cross platforms and is an ASCII text file. The framework is capable of driving asynchronous I/O with its event-driven design. It works within the JavaScript Runtime atmosphere and shows JAVA&#8217;s similar properties like threading, packaging, o forming loops.</p>



<p class="wp-block-paragraph"><strong>8. Polymer</strong></p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/8.png" alt="" class="wp-image-8329" width="652" height="444" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/8.png 882w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/8-300x204.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/8-768x523.png 768w" sizes="auto, (max-width: 652px) 100vw, 652px" /></figure>



<p class="wp-block-paragraph">The chemical compound is associated with the ASCII text file JavaScript library developed by Google, which might produce the website&#8217;s components while not reaching a fancy level. Also, it supports each unidirectional and two-way knowledge binding, thence creating an additional intensive application space.</p>



<p class="wp-block-paragraph"><strong>9. Aurelia</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="573" height="170" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/9-1.png" alt="" class="wp-image-8330" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/9-1.png 573w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/9-1-300x89.png 300w" sizes="auto, (max-width: 573px) 100vw, 573px" /></figure>



<p class="wp-block-paragraph">Aurelia framework is that the latest version of JavaScript, which might be accustomed implement any interface. it&#8217;s ensuing generation of the framework for developing way more strong websites. The framework of Aurelia will extend the hypertext mark-up language for varied functions, as well as knowledge binding. Also, its trendy design ensures that the aim of toll is for interpretation client-side and server-side at a time.</p>



<p class="wp-block-paragraph"><strong>10. Backbone.js</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="899" height="160" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/10.png" alt="" class="wp-image-8331" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/10.png 899w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/10-300x53.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/10-768x137.png 768w" sizes="auto, (max-width: 899px) 100vw, 899px" /></figure>



<p class="wp-block-paragraph">It is one among the foremost in style JavaScript frameworks. It’s easy to know and learn. It is wont to produce Single Page Applications. The event of this framework involves the thought that each one the server-side functions should flow through AN API, which might facilitate accomplish advanced functionalities by writing less code.</p>



<p class="wp-block-paragraph"><strong>What is the scope in JavaScript?</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="512" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/what-is-javascript-1-1024x512.jpg" alt="" class="wp-image-8333" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/what-is-javascript-1-1024x512.jpg 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/what-is-javascript-1-300x150.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/what-is-javascript-1-768x384.jpg 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/what-is-javascript-1.jpg 1460w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">The scope may be a policy that manages the supply of variables. A variable outlined within the scope is accessible solely at intervals that scope, however inaccessible outside. In JavaScript, scopes square measure created by code blocks, functions, modules.</p>



<p class="wp-block-paragraph"><strong>What are the benefits of &#8220;JavaScript&#8221; Certification?</strong></p>



<p class="wp-block-paragraph">Certifications continually play an important role in any profession. You will realize some PHP professionals, WHO can tell you that certifications don&#8217;t hold abundant worth. This certification demonstrates a human ability to get advanced searches, reports, and dashboards with JavaScript’s core software system to induce the foremost out of their information.</p>



<p class="wp-block-paragraph"><strong>JavaScript course:</strong></p>



<p class="wp-block-paragraph">This course was developed to show you the key JavaScript syntax and options you will need to be told as a booming internet developer. a number of the foremost topics that we&#8217;ll cowl embrace are the newest JavaScript syntax enhancements, organizing your code into categories and modules, communication with internet services, error handling, and security, and far additional. By the tip of this course, you will acumen to line up JavaScript development surroundings and build nice JavaScript applications for the net.</p>



<p class="wp-block-paragraph"><strong>Conclusion</strong></p>



<p class="wp-block-paragraph">JavaScript could be a rattling technology to use on the net. It’s not that onerous to find out and it&#8217;s terribly versatile. It plays nicely with alternative internet technologies — like hypertext mark-up language and CSS — and might even move with plugins like flash.</p>



<p class="wp-block-paragraph">If you are want to learn JavaScript in-depth, <a href="https://www.devopsschool.com/certification/master-in-javascript-with-angularjs-and-nodejs.html" target="_blank" rel="noreferrer noopener">DevOpsSchool</a> is one of the best for the Complete JavaScript Course would be a great stepping stone for you.</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">Thank You!</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-guide-of-javascript-certification-courses-tutorials-training/">Complete guide of JavaScript Certification courses, tutorials, and training</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/complete-guide-of-javascript-certification-courses-tutorials-training/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Export Html Table to Excel Sheet using JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 24 Aug 2021 13:01:30 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Excel Sheet]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[table]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8268</guid>

					<description><![CDATA[<p>Steps to Export HTML Table Data to Excel using JavaScript HTML Table Data: JavaScript Code: 1. HTML Table Data Export [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/">How to Export Html Table to Excel Sheet using JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"> Steps to Export HTML Table Data to Excel using JavaScript</h2>



<ol class="wp-block-list"><li><strong>HTML Table Data:</strong></li><li><strong>JavaScript Code:</strong></li></ol>



<h2 class="wp-block-heading">1. HTML Table Data</h2>



<p class="wp-block-paragraph">Export HTML data in Excel, even before we have to load some data into an HTML table. So here we have to make fetch employee table data and load it in an HTML table with table columns like name, address, gender, designation, and age. Here we have created an HTML table with id employee_data. So this id we will use for fetch this HTML table data in JavaScript code. Under this HTML code, we have made one button tag with id export_button, so when use has clicked on this button, then HTML table data will be download in Excel file format without refresh of a web page using JavaScript.</p>



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



<h2 class="wp-block-heading">2. JavaScript Code</h2>



<p class="wp-block-paragraph">In this tutorial, we have to use SheetJS JavaScript Library to export HTML table data to Excel using JavaScript. So first we have to include the following SheetJS library link at the header of this HTML web page.</p>



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



<p class="wp-block-paragraph">In the JavaScript code part, first we have created the html_table_to_excel(type) function. This function has used sheetJS library function and convert or write HTML table data to excel format and download it in a browser without refreshing the web page.</p>



<p class="wp-block-paragraph">Once a function is ready then we have to call html_table_to_excel(type) function on the button click event, so for the trigger button click event, we have to use the addEventListener method. So when a user has clicked the button the html_table_to_excel(type) function is called with the xlsx file type. Then it will download the HTML table data in .xlsx format Excel file in the browser without having to refresh a Web page on the client-side.</p>



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



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/">How to Export Html Table to Excel Sheet using JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Display Excel Data in HTML Table using JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-display-excel-data-in-html-table-using-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-display-excel-data-in-html-table-using-javascript/#comments</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 23 Aug 2021 12:36:59 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Excel data]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[SheetJS]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8225</guid>

					<description><![CDATA[<p>In this tutorial, you can find how to read excel files using javascript and display excel sheet data on web [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-display-excel-data-in-html-table-using-javascript/">How to Display Excel Data in HTML Table using JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In this tutorial, you can find how to read excel files using javascript and display excel sheet data on web pages in HTML table format using javascript. In the previous, one of our tutorials, in which we have already seen how to convert HTML table data to Excel files using the SheetJS library. Now in this tutorial also we will be using the SheetJS JavaScript library and by using the JavaScript library, we will convert the Excel file data into an HTML table and display it on the web page.</p>



<p class="wp-block-paragraph">First, we have to include the Bootstrap Stylesheet and SheetJS library link at the header of our HTML page.</p>



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



<p class="wp-block-paragraph">After this under this HTML page, we have to create one file tag for select file excel from the local computer.</p>



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



<p class="wp-block-paragraph">And below this file, we have to create one division tag to display excel sheet data on the web page in HTML table format.</p>



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



<p class="wp-block-paragraph">Next, we have to move on to writing JavaScript code, so first store file tag property under one variable.</p>



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



<p class="wp-block-paragraph">Next, we need to write the JavaScript code on the change event, so when the user has selected a file from the local computer using the file tag, the JavaScript code should be executed.</p>



excel_file.addEventListener(&#8216;change&#8217;, (event) => {

});



<p class="wp-block-paragraph">Under this change event code first, we want to check the selected file format .xls or .xlsx. If the selected file is not an Excel file then it will display an error on the web page, and if the selected file is Excel then it will proceed to display the Excel file data on the web page.</p>



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



<p class="wp-block-paragraph">After a check, the validation error, now read the file using the FileReader object. Here file must be read ads ArrayBuffer bypassing the file object using event.target.files[0].</p>



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



<p class="wp-block-paragraph">IF the selected file is a proper excel file then we need to convert what we have got from the FileReader object to Unit8Array object by passing Filereader result into Unit8Array constructor.</p>



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



<p class="wp-block-paragraph">Next, we have pass this Unit8Array data in SheetJS read() function, and it will return the selected excel workbook object.</p>



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



<p class="wp-block-paragraph">After getting the workbook object, next we have to get the sheet name of the selected excel file. So here <strong>SheetNames</strong> variable will return sheet name in array format.</p>



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



<p class="wp-block-paragraph">Once we have to get the sheet name, now we want to get the first sheet data in JSON format, so we can get by SheetJS sheet_to_json() function by passing the workbook first sheet name.</p>



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



<p class="wp-block-paragraph">Once we have to get the first sheet data in JSON format, next we have to simply write JavaScript code and convert that JSON data into an HTML format and display it under division tag with id <strong>excel_data</strong>. So it will display excel file data on the web page in HTML table format.</p>



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



<p class="wp-block-paragraph">So once you have followed all the above steps then you can check output in the browser. So when we have selected an excel file then it will display excel sheet data on the web page in HTML table format without a refresh of the web page. So in this tutorial, we have seen how to convert Excel files to HTML tables at the client-side by using the SheetJS JavaScript library at the client-side. You can find the complete source code here.</p>



<script src="https://gist.github.com/vijaypk376/37e0604593a13b74fd8f2e8e39a0e539.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-display-excel-data-in-html-table-using-javascript/">How to Display Excel Data in HTML Table using JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-display-excel-data-in-html-table-using-javascript/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How does the JavaScript Promise work?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-does-the-javascript-promise-work/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-does-the-javascript-promise-work/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 17 Aug 2021 12:45:21 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[Operation]]></category>
		<category><![CDATA[Promises]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8048</guid>

					<description><![CDATA[<p>Promise A Promise is an object representing the eventual completion or failure of an asynchronous operation. A JavaScript Promise object [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-does-the-javascript-promise-work/">How does the JavaScript Promise work?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Promise</strong></h2>



<p class="wp-block-paragraph">A Promise is an object representing the eventual completion or failure of an asynchronous operation. A JavaScript Promise object contains both the producing code and calls to the consuming code. It can be used to deal with Asynchronous operations in JavaScript.</p>



<p class="wp-block-paragraph"><strong>Promise State:-</strong></p>



<p class="wp-block-paragraph">Pending &#8211; Initial State, Not yet Fulfilled or Rejected<br>Fulfilled/Resolved – Promise Completed<br>Rejected – Promise Failed</p>



<h2 class="wp-block-heading"><strong>How Promise works</strong></h2>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-promise-works.png" alt="" class="wp-image-8050" width="827" height="402" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-promise-works.png 553w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-promise-works-300x146.png 300w" sizes="auto, (max-width: 827px) 100vw, 827px" /></figure>



<ul class="wp-block-list"><li>A pending promise can either be Resolved with a value or Rejected with a reason (error).</li><li>When either of these options happens, the associated handlers queued up by a promise&#8217;s then method are called.</li><li>A promise is said to be settled if it is either Resolved or Rejected, but not Pending.</li></ul>



<h2 class="wp-block-heading"><strong>Creating Promise</strong></h2>



<p class="wp-block-paragraph">Promise () – A Promise object is created using the new keyword and its constructor. This constructor takes a function, called the &#8220;executor function&#8221;, as its parameter. This function should take two functions as parameters. The first of these functions (resolve) is called when the asynchronous task completes successfully and returns the results of the task as a value. The second (reject) is called when the task fails and returns the reason for failure, which is typically an error object.</p>



<p class="wp-block-paragraph">Syntax:- Promise (executor)</p>



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



<p class="wp-block-paragraph">A JavaScript Promise object contains both the producing code and calls to the consuming code.</p>



<h2 class="wp-block-heading"><strong>Function Returning a Promise</strong></h2>



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



<h2 class="wp-block-heading"><strong>then( ) Method</strong></h2>



<p class="wp-block-paragraph">The then() method returns a Promise. It takes up to two arguments: callback functions for the success and failure cases of the Promise. As then the method returns a Promise so we can do method chaining.</p>



<p class="wp-block-paragraph">Syntax:- then(onResolved, onRejected)</p>



<p class="wp-block-paragraph">onResolved &#8211; A Function called if the Promise is fulfilled. This function has one argument, the fulfillment value.</p>



<p class="wp-block-paragraph">onRejected &#8211; A Function called if the Promise is rejected. This function has one argument, the rejection reason.</p>



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



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



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



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



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



<p class="wp-block-paragraph">The then method returns a Promise which allows for method chaining. If the function passed as a handler to then returns a Promise, an equivalent Promise will be exposed to the subsequent then in the method chain.</p>



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



<h2 class="wp-block-heading"><strong>catch () Method</strong></h2>



<p class="wp-block-paragraph">The <em>catch()</em> method returns a Promise and deals with rejected cases only. It behaves the same as calling <em>then(undefined, onRejected)</em>. In fact, calling <em>catch(onRejected)</em> internally calls <em>then(undefined, onRejected)</em>.</p>



<p class="wp-block-paragraph">The catch method is used for error handling in promise composition. Since it returns a Promise, it can be chained in the same way as its sister method, then()</p>



<p class="wp-block-paragraph">Syntax:- catch(callback)</p>



<p class="wp-block-paragraph">Where the callback is a function called when the Promise is rejected. This function has one argument <em>error</em> – The rejection error.</p>



<h2 class="wp-block-heading"><strong>catch () Method</strong></h2>



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



<h2 class="wp-block-heading"><strong>finally () Method</strong></h2>



<p class="wp-block-paragraph">The finally() method returns a Promise. When the promise is settled, i.e either fulfilled or rejected, the specified callback function is executed. This provides a way for code to be run whether the promise was fulfilled successfully or rejected once the Promise has been dealt with.</p>



<p class="wp-block-paragraph">This helps to avoid duplicating code in both the promise&#8217;s then() and catch() handlers.</p>



<p class="wp-block-paragraph">Syntax:- finally(callback)</p>



<h2 class="wp-block-heading"><strong>finally () Method</strong></h2>



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



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



<script src="https://gist.github.com/vijaypk376/37d902b6b443559b020399056cb5d998.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-does-the-javascript-promise-work/">How does the JavaScript Promise 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-the-javascript-promise-work/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How does the Import and Export module work in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-does-the-import-and-export-module-work-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-does-the-import-and-export-module-work-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 17 Aug 2021 12:05:42 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Module]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8035</guid>

					<description><![CDATA[<p>What is Module In JavaScript, a Module is a JavaScript file where we write codes. The object is a module [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-does-the-import-and-export-module-work-in-javascript/">How does the Import and Export module work in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>What is Module</strong></h2>



<p class="wp-block-paragraph">In JavaScript, a Module is a JavaScript file where we write codes. The object is a module that is not available for use unless the module file exports them.</p>



<h2 class="wp-block-heading"><strong>Exporting Module</strong></h2>



<p class="wp-block-paragraph">export &#8211; The export statement is used when creating JavaScript modules to export functions, objects, or primitive values from the module so they can be used by other programs with the import statement.</p>



<p class="wp-block-paragraph">There are two different types of export &#8211; named and default. You can have multiple named exports per module but only one default export.</p>



<h2 class="wp-block-heading"><strong>Default Export</strong></h2>



<p class="wp-block-paragraph">You can have only one default export per module. A default export can be imported with any name.</p>



<p class="wp-block-paragraph"><strong>mobile.js</strong></p>



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



<h2 class="wp-block-heading"><strong>Named Export</strong></h2>



<p class="wp-block-paragraph">You can have multiple named exports per module. Named exports are useful to export several values. During the import, it is mandatory to use the same name of the corresponding object.</p>



<p class="wp-block-paragraph"><strong>mobile.js</strong></p>



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



<h2 class="wp-block-heading"><strong>Named Export</strong></h2>



<p class="wp-block-paragraph">You can have multiple named exports per module. Named exports are useful to export several values. During the import, it is mandatory to use the same name of the corresponding object.</p>



<p class="wp-block-paragraph"><strong>mobile.js</strong></p>



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



<h2 class="wp-block-heading"><strong>Importing Module</strong></h2>



<p class="wp-block-paragraph">import &#8211;  The static import statement is used to import bindings that are exported by another module. Imported modules are in strict mode whether you declare them as such or not.</p>



<h2 class="wp-block-heading"><strong>Importing Defaults</strong></h2>



<p class="wp-block-paragraph">You can have only one default export per module. A default export can be imported with any name.</p>



<p class="wp-block-paragraph"><strong>mobile.js</strong></p>



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



<p class="wp-block-paragraph"><strong>app.js</strong></p>



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



<h2 class="wp-block-heading"><strong>Importing Named</strong></h2>



<p class="wp-block-paragraph">You can have multiple named exports per module. Named exports are useful to export several values. During the import, it is mandatory to use the same name of the corresponding object.</p>



<p class="wp-block-paragraph"><strong>mobile.js</strong></p>



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



<p class="wp-block-paragraph"><strong>app.js</strong></p>



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



<h2 class="wp-block-heading"><strong>Importing All</strong></h2>



<p class="wp-block-paragraph"><strong>mobile.js</strong></p>



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



<p class="wp-block-paragraph"><strong>app.js</strong></p>



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



<h2 class="wp-block-heading"><strong>Importing Default and Named</strong></h2>



<p class="wp-block-paragraph"><strong>mobile.js</strong></p>



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



<p class="wp-block-paragraph"><strong>app.js</strong></p>



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



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-does-the-import-and-export-module-work-in-javascript/">How does the Import and Export module work in JavaScript?</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-the-import-and-export-module-work-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Why doesn&#8217;t this JavaScript destructuring assignment work?</title>
		<link>https://www.scmgalaxy.com/tutorials/why-doesnt-this-javascript-destructuring-assignment-work/</link>
					<comments>https://www.scmgalaxy.com/tutorials/why-doesnt-this-javascript-destructuring-assignment-work/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 16 Aug 2021 12:59:18 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Array Destructuring]]></category>
		<category><![CDATA[Destructuring]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[nested]]></category>
		<category><![CDATA[Object Destructuring]]></category>
		<category><![CDATA[Object Passing]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7983</guid>

					<description><![CDATA[<p>Destructuring Destructuring is a convenient way of extracting multiple values from data stored in objects and Arrays. The destructuring assignment [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/why-doesnt-this-javascript-destructuring-assignment-work/">Why doesn&#8217;t this JavaScript destructuring assignment work?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Destructuring</strong></h2>



<p class="wp-block-paragraph">Destructuring is a convenient way of extracting multiple values from data stored in objects and Arrays. The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.</p>



<p class="wp-block-paragraph"><strong>Ex:- var a = [10, 20, 30];</strong></p>



<p class="wp-block-paragraph">[x, y, z] = a;<br>console.log(x) // 10<br>console.log(y) // 20<br>console.log(z) // 30</p>



<p class="wp-block-paragraph">Left-hand side of the assignment to define what values to unpack from the sourced variable.</p>



<h2 class="wp-block-heading"><strong>Array Destructuring</strong></h2>



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



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



<p class="wp-block-paragraph">When destructuring Array, we use their index/positions in the assignment.</p>



<h2 class="wp-block-heading"><strong>Array Destructuring</strong></h2>



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



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



<h2 class="wp-block-heading"><strong>Array Passing to a Function</strong></h2>



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



<h2 class="wp-block-heading"><strong>Array Returning from a Function</strong></h2>



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



<h2 class="wp-block-heading"><strong>Nested Array Destructuring</strong></h2>



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



<h2 class="wp-block-heading"><strong>Object Destructuring</strong></h2>



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



<p class="wp-block-paragraph">When destructuring objects, we use the keys as variable names. This is how JavaScript knows which property of the object we want to assign.</p>



<h2 class="wp-block-heading"><strong>Object Destructuring</strong></h2>



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



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



<h2 class="wp-block-heading"><strong>Object Destructuring</strong></h2>



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



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



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



<h2 class="wp-block-heading"><strong>Object Destructuring</strong></h2>



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



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



<h2 class="wp-block-heading"><strong>Object Passing to a Function</strong></h2>



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



<h2 class="wp-block-heading"><strong>Object Returning from a Function</strong></h2>



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



<h2 class="wp-block-heading"><strong>Nested Object Destructuring</strong></h2>



<script src="https://gist.github.com/vijaypk376/5ba9f27aff8f4565eabd6d2bb3a59915.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/why-doesnt-this-javascript-destructuring-assignment-work/">Why doesn&#8217;t this JavaScript destructuring assignment work?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/why-doesnt-this-javascript-destructuring-assignment-work/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How do you handle exceptions in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-do-you-handle-exceptions-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-do-you-handle-exceptions-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 16 Aug 2021 11:52:08 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[callback function]]></category>
		<category><![CDATA[Exception Handling]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[map ( ) Method]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7978</guid>

					<description><![CDATA[<p>Exception An exception is a generalization of the concept of an error to include any unexpected condition encountered during execution. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-you-handle-exceptions-in-javascript/">How do you handle exceptions in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Exception</h2>



<p class="wp-block-paragraph">An exception is a generalization of the concept of an error to include any unexpected condition encountered during execution.</p>



<p class="wp-block-paragraph">Exception Handling-</p>



<ul class="wp-block-list"><li>try</li><li>catch</li><li>finally</li><li>throw</li></ul>



<h2 class="wp-block-heading"><strong>How does the Javascript callback function work?</strong></h2>



<p class="wp-block-paragraph">A callback function is a function (It can be any function Anonymous Function, Arrow Function) passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.</p>



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



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



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



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



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



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



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



<p class="wp-block-paragraph">Synchronous &#8211; It waits for each operation to complete, after that it executes the next operation.</p>



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



<p class="wp-block-paragraph">Asynchronous &#8211; It never waits for each operation to complete, rather it executes all operations in the first GO only.</p>



<h2 class="wp-block-heading">map ( ) Method in JavaScript</h2>



<p class="wp-block-paragraph">The map( ) method creates a new array with the results of calling a provided function on every element in the calling array.<br>the map calls a provided callback function once for each element in an array, in order, and returns a new array from the results.</p>



<p class="wp-block-paragraph"><strong>Syntax:-<br>map(callback(currentValue, index, array), thisArg);</strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-you-handle-exceptions-in-javascript/">How do you handle exceptions in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-do-you-handle-exceptions-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Local Storage And Session Storage in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/local-storage-and-session-storage-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/local-storage-and-session-storage-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 14 Aug 2021 13:13:49 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Local Storage]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[Session Storage]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7959</guid>

					<description><![CDATA[<p>Local Storage The localStorage is a read-only property of the window objects. It stores data in a web browser specifically [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/local-storage-and-session-storage-in-javascript/">Local Storage And Session Storage in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Local Storage</strong></h2>



<p class="wp-block-paragraph">The localStorage is a read-only property of the window objects. It stores data in a web browser specifically to the domain and protocol. It doesn’t get sent to the server as it is stored locally in the web browser with no expiration date. The data will not be deleted when the browser is closed and reopened.</p>



<p class="wp-block-paragraph"><strong>Syntax:- window.localStorage</strong></p>



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



<ul class="wp-block-list"><li>setItem (key, value) – It allows to add a key/value pair to the storage object. If the key already exists, the name value will overwrite the old value.</li><li>getItem(key) – It returns the value of the item that is set with the given key.</li><li>key(n) – It returns the key of the item in the storage object at the nth index which can be useful for looping.</li><li>removeItem(key) – It removes the item in the storage object with the given key.</li></ul>



<h2 class="wp-block-heading"><strong>Session Storage</strong></h2>



<p class="wp-block-paragraph">The sessionStorage is a read-only property of the window object. It stores data in a web browser specifically to the domain and protocol for a particular session. It doesn’t get sent to the server. Data stored in sessionStorage gets cleared when the page session ends. A page session lasts for as long as the browser is open and survives over page reloads and restores.</p>



<p class="wp-block-paragraph"><strong>Syntax:- window.sessionStorage</strong></p>



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



<ul class="wp-block-list"><li>setItem (key, value) – It allows to add a key/value pair to the storage object. If the key already exists, the name value will overwrite the old value.</li><li>getItem(key) – It returns the value of the item that is set with the given key.</li><li>key(n) – It returns the key of the item in the storage object at the nth index which can be useful for looping.</li><li>removeItem(key) – It removes the item in the storage object with the given key.</li></ul>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/local-storage-and-session-storage-in-javascrip.png" alt="" class="wp-image-7964" width="833" height="474" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/local-storage-and-session-storage-in-javascrip.png 615w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/local-storage-and-session-storage-in-javascrip-300x171.png 300w" sizes="auto, (max-width: 833px) 100vw, 833px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/local-storage-and-session-storage-in-javascript/">Local Storage And Session Storage in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/local-storage-and-session-storage-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Replace/Append Cookies in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 14 Aug 2021 12:56:29 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Append]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Replace]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7957</guid>

					<description><![CDATA[<p>Replace/Append Cookies When we assign a new cookie value to document.cookie, the current cookie is not replaced. The new cookie [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/">Replace/Append Cookies in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Replace/Append Cookies</strong></h2>



<p class="wp-block-paragraph">When we assign a new cookie value to document.cookie, the current cookie is not replaced. The new cookie is parsed and its name-value pair is appended to the list. The exception is when you assign a new cookie with the same name (and same domain and path, if they exist) as a cookie that already exists. In this case, the old value is replaced with the new.</p>



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



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



<h2 class="wp-block-heading"><strong>Reading Cookie</strong></h2>



<p class="wp-block-paragraph">We can read cookies by a document.cookie. The problem occurs when we need the specific part of the cookie to perform some action.</p>



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



<h2 class="wp-block-heading"><strong>Deleting Cookies</strong></h2>



<p class="wp-block-paragraph">A cookie is deleted by setting a cookie with the same name (and domain and path, if they were set) with an expiration date in the past and if using max-age then must set a negative value.</p>



<p class="wp-block-paragraph">Ex: <strong>&#8211;</strong></p>



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



<h2 class="wp-block-heading"><strong>Updating Cookies</strong></h2>



<p class="wp-block-paragraph">A cookie is possible to update by setting a new value to a cookie with the same name.</p>



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



<h2 class="wp-block-heading"><strong>Cookies Security Issues</strong></h2>



<ul class="wp-block-list"><li><strong>Can misuse Client Details</strong></li><li><strong>Can track User</strong></li><li><strong>Client Can Delete Cookies</strong></li><li><strong>Client can Manipulate Cookies</strong></li></ul>



<h2 class="wp-block-heading"><strong>Cookies Limitation</strong></h2>



<ul class="wp-block-list"><li><strong>Support HTML4 / HTML 5</strong></li><li><strong>Each cookie can contain 4kb Data</strong></li><li><strong>Cookies can be stored in Browser and server</strong></li><li><strong>It is sent with each request</strong></li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/">Replace/Append Cookies in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How many create cookies in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-many-create-cookies-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-many-create-cookies-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 14 Aug 2021 12:39:32 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[document object]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[property]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7946</guid>

					<description><![CDATA[<p>JavaScript Cookies Cookies are exposed as the cookie property of the Document object. This property is both readable and writeable. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-many-create-cookies-in-javascript/">How many create cookies in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading"><strong>JavaScript Cookies</strong></h1>



<p class="wp-block-paragraph">Cookies are exposed as the cookie property of the Document object. This property is both readable and writeable.</p>



<p class="wp-block-paragraph">You can see Cookies in Google Chrome by following chrome://settings/content/cookies</p>



<h1 class="wp-block-heading"><strong>Creating Cookies</strong></h1>



<p class="wp-block-paragraph">When you assign a string to document.cookie, the browser parses it as a cookie and adds it to its list of cookies. There are several parts to each cookies, many of them optional.</p>



<h2 class="wp-block-heading"><strong>Syntax: &#8211;</strong></h2>



<p class="wp-block-paragraph" id="block-0bbc4906-32da-4254-a4a7-5076d7e5c92b">document.cookie = “name=value”;<br>document.cookie = “name=value; expires=date; domain=domain; path=path; secure”;<br>document.cookie = “name=value; max-age=inSecond; domain=domain; path=path; secure”;</p>



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



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



<h1 class="wp-block-heading"><strong>Creating Cookies</strong></h1>



<p class="wp-block-paragraph"><strong>Optional Cookies Attribute:-</strong></p>



<p class="wp-block-paragraph">max-age<br>expires<br>domain<br>path<br>secure</p>



<p class="wp-block-paragraph">Whenever you omit the optional cookie fields, the browser fills them in automatically with reasonable defaults.</p>



<h2 class="wp-block-heading"><strong>max-age</strong></h2>



<p class="wp-block-paragraph">It is used to create persistent cookies. It is supported by all modern browsers except IE.</p>



<p class="wp-block-paragraph"><strong>Type of cookies: &#8211;</strong></p>



<ul class="wp-block-list"><li>Session Cookies – Cookies that are set without the expires/max-age field are called session cookies. It is destroyed when the user quits the browser.</li><li>Persistent Cookies – The browser keeps it up until their expiration date is reached.</li></ul>



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



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



<h1 class="wp-block-heading"><strong>expires</strong></h1>



<p class="wp-block-paragraph">It is used to create persistent cookies.</p>



<h3 class="wp-block-heading">Type of cookies: &#8211;</h3>



<ul class="wp-block-list"><li>Session Cookies – Cookies that are set without the expires/max-age field are called session cookies. It is destroyed when the user quits the browser.</li><li>Persistent Cookies – The browser keeps it up until their expiration date is reached.</li></ul>



<p class="wp-block-paragraph">E<strong>x:-</strong></p>



<p class="wp-block-paragraph">document.cookie = “username=devops; expires=Monday, 3-Sep-2018 09:00:00 UTC”;</p>



<h1 class="wp-block-heading"><strong>domain</strong></h1>



<p class="wp-block-paragraph">It specifies the domain for which the cookie is valid. If not specified, this defaults to the host portion of the current document location. If a domain is specified, subdomains are always included.</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



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



<h1 class="wp-block-heading"><strong>path</strong></h1>



<p class="wp-block-paragraph">Path can be / (root) or /mydir (directory). If not specified, defaults to the current path of the current document location, as well as its descendants.</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211; document.cookie = “username=devops; path=/”;</strong></p>



<p class="wp-block-paragraph"><strong>Ex: &#8211; document.cookie = “username=devops; path=/home”;</strong></p>



<h1 class="wp-block-heading"><strong>secure</strong></h1>



<p class="wp-block-paragraph">Cookie to only be transmitted over secure protocol as https. Before Chrome 52, this flag could appear with cookies from http domains.</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211; document.cookie = “username=devops; secure”;</strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-many-create-cookies-in-javascript/">How many create cookies in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-many-create-cookies-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are cookies in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-are-cookies-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-are-cookies-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 14 Aug 2021 12:02:52 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Client]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7939</guid>

					<description><![CDATA[<p>Cookies A cookie is a small piece of text data set by the Web server that resided on the client’s [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-are-cookies-in-javascript/">What are cookies in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading">Cookies</h1>



<p class="wp-block-paragraph">A cookie is a small piece of text data set by the Web server that resided on the client’s machine. Once it’s been set, the client automatically returns the cookie to the webserver with each request that it makes. This allows the server to place values it wishes to ‘remember’ in the cookie, and have access to them when creating a response.</p>



<h1 class="wp-block-heading">How Cookie Works</h1>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="756" height="406" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works1.png" alt="" class="wp-image-7940" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works1.png 756w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works1-300x161.png 300w" sizes="auto, (max-width: 756px) 100vw, 756px" /></figure>



<h1 class="wp-block-heading"><strong>How Cookie Works</strong></h1>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="698" height="360" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works-2.png" alt="" class="wp-image-7941" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works-2.png 698w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works-2-300x155.png 300w" sizes="auto, (max-width: 698px) 100vw, 698px" /></figure>



<h1 class="wp-block-heading"><strong>How Cookie Works</strong></h1>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="845" height="294" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works-3.png" alt="" class="wp-image-7942" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works-3.png 845w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works-3-300x104.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-cookie-works-3-768x267.png 768w" sizes="auto, (max-width: 845px) 100vw, 845px" /></figure>



<h1 class="wp-block-heading"><strong>How Dangerous Cookies are</strong></h1>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="724" height="308" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-dangerous-cookies-are.png" alt="" class="wp-image-7943" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-dangerous-cookies-are.png 724w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/how-dangerous-cookies-are-300x128.png 300w" sizes="auto, (max-width: 724px) 100vw, 724px" /></figure>



<h1 class="wp-block-heading"><strong>Type of Cookies</strong></h1>



<ul class="wp-block-list"><li>Session Cookies – Cookies that are set without the expires field are called session cookies. It is destroyed when the user quits the browser.</li></ul>



<ul class="wp-block-list"><li>Persistent Cookies – The browser keeps it up until their expiration date is reached.</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-are-cookies-in-javascript/">What are cookies in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-are-cookies-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to add placeholder to select2.js</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Sat, 14 Aug 2021 06:49:46 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[select2]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7935</guid>

					<description><![CDATA[<p>Single select placeholders Multi-select placeholders Using placeholders with AJAX Select2 supports placeholders for all configurations, including AJAX. You will still [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/">How to add placeholder to select2.js</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Single select placeholders</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="829" height="162" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-95.png" alt="" class="wp-image-7936" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-95.png 829w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-95-300x59.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-95-768x150.png 768w" sizes="auto, (max-width: 829px) 100vw, 829px" /></figure>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;select class=&quot;js-example-placeholder-single js-states form-control&quot;&gt;
  &amp;lt;option&gt;&amp;lt;/option&gt;
&amp;lt;/select&gt;

</pre></div>

<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&quot;.js-example-placeholder-single&quot;).select2({
    placeholder: &quot;Select a state&quot;,
    allowClear: true
});
</pre></div>


<h2 class="wp-block-heading">Multi-select placeholders</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="868" height="112" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-96.png" alt="" class="wp-image-7937" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-96.png 868w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-96-300x39.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-96-768x99.png 768w" sizes="auto, (max-width: 868px) 100vw, 868px" /></figure>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;select class=&quot;js-example-placeholder-multiple js-states form-control&quot; multiple=&quot;multiple&quot;&gt;&amp;lt;/select&gt;
</pre></div>

<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&quot;.js-example-placeholder-multiple&quot;).select2({
    placeholder: &quot;Select a state&quot;
});
</pre></div>


<h2 class="wp-block-heading">Using placeholders with AJAX</h2>



<p class="wp-block-paragraph">Select2 supports placeholders for all configurations, including AJAX. You will still need to add in the empty <code>&lt;option></code> if you are using a single select.</p>



<p class="wp-block-paragraph">When using Select2 <strong>in single-selection mode</strong>, the placeholder option will be passed through the <code>templateSelection</code> callback if specified. You can use some additional logic in this callback to check the <code>id</code> property and apply an alternative transformation to your placeholder option:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&#039;select&#039;).select2({
  templateSelection: function (data) {
    if (data.id === &#039;&#039;) { // adjust for custom placeholder values
      return &#039;Custom styled placeholder text&#039;;
    }

    return data.text;
  }
});
</pre></div><p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/">How to add placeholder to select2.js</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Accessing Form Fields in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 13 Aug 2021 12:34:39 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Accessing Form]]></category>
		<category><![CDATA[Form Fields]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Method]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7927</guid>

					<description><![CDATA[<p>Accessing Form JavaScript provides various ways of accessing form:- document.forms[index_number] – It returns collection of form in the documents. document.forms[“name_attribute_value”] [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/">Accessing Form Fields in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading"><strong>Accessing Form</strong></h1>



<p class="wp-block-paragraph">JavaScript provides various ways of accessing form:-</p>



<ul class="wp-block-list"><li>document.forms[index_number] – It returns collection of form in the documents.</li></ul>



<ul class="wp-block-list"><li>document.forms[“name_attribute_value”] – we can use name attribute of the form.</li></ul>



<ul class="wp-block-list"><li>document.name_attribute_value – we can use name attribute of the form with dot as well.</li></ul>



<ul class="wp-block-list"><li>getElementById(“ID”) – If form as an unique id we can use it.</li></ul>



<h1 class="wp-block-heading"><strong>Accessing Form Fields</strong></h1>



<p class="wp-block-paragraph">If form fields have unique ID then it is possible to access them using the getElementById( ) method. However, There are some other ways: &#8211;</p>



<ul class="wp-block-list"><li>elements[ ] – It contains collection of form fields.</li></ul>



<p class="wp-block-paragraph">     <strong>Syntax: &#8211; </strong></p>



<p class="wp-block-paragraph">               document.form_name.elements[index_number];<br>               document.form_name.elements[“name_attribute_value”];<br>               document.form_name.name_attribute_value;<br>               document.form_name.ID_attribute_value;</p>



<ul class="wp-block-list"><li>getElementsByName(“field_name”) – This method is also used to access form field.</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/">Accessing Form Fields in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
