<?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>Variable Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/variable/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/variable/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:33:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to use Number Methods in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-number-methods-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-number-methods-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 05 Aug 2021 11:38:40 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Methods in JavaScript]]></category>
		<category><![CDATA[toString( )]]></category>
		<category><![CDATA[Variable]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7442</guid>

					<description><![CDATA[<p>Number Methods toString ( ) toExponential ( ) toFixed ( ) toPrecision ( ) valueOf( ) isFinite( ) isInteger( ) [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-number-methods-in-javascript/">How to use Number Methods 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">Number Methods</h2>



<ul class="wp-block-list"><li><strong>toString ( )</strong></li><li><strong>toExponential ( )</strong></li><li><strong>toFixed ( )</strong></li><li><strong>toPrecision ( )</strong></li><li><strong>valueOf( )</strong></li><li><strong>isFinite( )</strong></li><li><strong>isInteger( )</strong></li><li><strong>isNan( )</strong></li><li><strong>isSafeInteger( )</strong></li></ul>



<h2 class="wp-block-heading">toString( )</h2>



<p class="wp-block-paragraph">toString ( ) method returns a number as a string in other words it converts a number into a string. We can use this method to output numbers as hexadecimal (16), octal(8), binary(2).</p>



<p class="wp-block-paragraph"><strong>Syntax: &#8211;<br>Variable_name.toString( );</strong></p>



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



<h2 class="wp-block-heading">toExponential ( )</h2>



<p class="wp-block-paragraph">The toExponential() method converts a number into an exponential notation.</p>



<p class="wp-block-paragraph">Syntax:-<br>Variable_name.toExponential(y)<br>Where y is an integer between 0 and 20 representing the number of digits in the<br>notation after the decimal point. If omitted, it is set to as many digits as necessary to<br>represent the value.</p>



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



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



<h2 class="wp-block-heading">toFixed ( )</h2>



<p class="wp-block-paragraph">The toFixed() method converts a number into a string, keeping a specified number of decimals also rounds the decimal. If the desired number of decimals is higher than the actual number, nulls are added to create the desired decimal length.</p>



<p class="wp-block-paragraph">Syntax: &#8211;<br>a.toFixed(y)<br>Where y is the number of digits after the decimal point. Default is 0 (no digits after the decimal point)</p>



<p class="wp-block-paragraph">Syntax: &#8211;<br>a.toFixed(y)<br>Where y is the number of digits after the decimal point. Default is 0 (no digits after the decimal point)</p>



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



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



<h2 class="wp-block-heading">toPrecision ( )</h2>



<p class="wp-block-paragraph">The toPrecision() method formats a number to a specified length.<br>A decimal point and nulls are added (if needed), to create the specified length.</p>



<p class="wp-block-paragraph">Syntax:-<br>Variable_name.toPrecision(y)<br>Where y is the number of digits. If omitted, it returns the entire number (without any<br>formatting)</p>



<p class="wp-block-paragraph">Syntax:-<br>Variable_name.toPrecision(y)<br>Where y is the number of digits. If omitted, it returns the entire number (without any<br>formatting)</p>



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



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



<h2 class="wp-block-heading">Number.isNaN()</h2>



<p class="wp-block-paragraph">The <strong>Number.isNaN() </strong>method determines whether a value is NaN (Not-A-Number).<br>This method returns true if the value is of the type Number, and equates to NaN. Otherwise, it returns false.<br>Number.isNaN() is different from the global isNaN() function. The global isNaN() function<br>converts the tested value to a Number, then tests it.<br>Number.isNaN() does not convert the values to a Number, and will not return true for any value<br>that is not of the type Number.</p>



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



<h2 class="wp-block-heading">Number.isInteger( )</h2>



<p class="wp-block-paragraph">The Number.isInteger() method determines whether a value is an integer.<br>This method returns true if the value is of the type Number, and an integer, otherwise it<br>returns false.</p>



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



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



<h2 class="wp-block-heading">Number.isSafeInteger()</h2>



<p class="wp-block-paragraph">The Number.isSafeInteger() method determines whether a value is a safe integer.<br>A safe integer is an integer that can be exactly all integers from (2^53 &#8211; 1) to -(2^53 &#8211; 1)<br>This method returns true if the value is of the type Number and a safe integer.<br>Otherwise, it returns false.</p>



<script src="https://gist.github.com/vijaypk376/f3532004826a3db95488ecdd8eab380c.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-number-methods-in-javascript/">How to use Number Methods 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-to-use-number-methods-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Comments in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/comments-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/comments-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 23 Jul 2021 12:41:15 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Variable]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6991</guid>

					<description><![CDATA[<p>Two types of Comment Single Line Comment Multi Line Comment Single Line Comment Single line comments start with //.Text between [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/comments-in-javascript/">Comments 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">Two types of Comment</h2>



<ul class="wp-block-list"><li>Single Line Comment</li><li>Multi Line Comment</li></ul>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="594" height="219" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/javascript-comments.png" alt="" class="wp-image-6993" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/javascript-comments.png 594w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/javascript-comments-300x111.png 300w" sizes="(max-width: 594px) 100vw, 594px" /></figure>



<h2 class="wp-block-heading">Single Line Comment</h2>



<p class="wp-block-paragraph">Single line comments start with //.<br>Text between // and the end of the line will be ignored by JavaScript.</p>



<p class="wp-block-paragraph">// you can assign any type of value<br>var imvalue = 101;</p>



<p class="wp-block-paragraph">var imvalue = 101; // assign any type of value</p>



<h2 class="wp-block-heading">Multi Line Comment</h2>



<p class="wp-block-paragraph">Multi-line comments start with /* and end with <em>/.</em></p>



<p class="wp-block-paragraph"> Any text between / and */ will be ignored by JavaScript.</p>



<p class="wp-block-paragraph">Ex: &#8211;<br>/* Comment Here */</p>



<p class="wp-block-paragraph">Adding // in front of a code line changes the code lines from an executable line to a comment.</p>



<p class="wp-block-paragraph">var imvalue = 101;<br>// var imvalue = 101;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/comments-in-javascript/">Comments 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/comments-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Declaring Variable and Re-declaring Variables in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/declaring-variable-and-re-declaring-variables-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/declaring-variable-and-re-declaring-variables-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 22 Jul 2021 13:01:42 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Variable]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6952</guid>

					<description><![CDATA[<p>Declaring Variable Declaring Variable Rule Variable can contain a combination of letters, digits, underscores ( _ ), and dollar signs [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/declaring-variable-and-re-declaring-variables-in-javascript/">Declaring Variable and Re-declaring Variables 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">Declaring Variable</h2>



<p class="wp-block-paragraph">Declaring Variable Rule</p>



<ul class="wp-block-list"><li><strong>Variable can contain a combination of letters, digits, underscores ( _ ), and</strong></li><li><strong>dollar signs ( $ ).</strong></li><li><strong>Must begin with a letter A-Z or a-z or underscore or dollar sign</strong></li><li><strong>A variable name cannot start with a number</strong></li><li><strong>Must not contain any space characters</strong></li><li><strong>JavaScript is case-sensitive</strong></li><li><strong>Can‟t use reserved keywords</strong></li></ul>



<h2 class="wp-block-heading">Declaring Variable</h2>



<figure class="wp-block-image size-large"><img decoding="async" width="688" height="213" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-1.png" alt="" class="wp-image-6956" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-1.png 688w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-1-300x93.png 300w" sizes="(max-width: 688px) 100vw, 688px" /></figure>



<p class="wp-block-paragraph">A variable declared without a value will have the value undefined</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="768" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-in-javascript.jpg" alt="" class="wp-image-6963" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-in-javascript.jpg 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-in-javascript-300x225.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/declaring-variable-in-javascript-768x576.jpg 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/declaring-variable-and-re-declaring-variables-in-javascript/">Declaring Variable and Re-declaring Variables 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/declaring-variable-and-re-declaring-variables-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is php? Define variables and Datatypes how to use it?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-php-define-variables-and-datatypes-how-to-use-it/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-php-define-variables-and-datatypes-how-to-use-it/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 21 Jun 2021 13:13:45 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[datatypes]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Variable]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6541</guid>

					<description><![CDATA[<p>In this tutorial i&#8217;m going to explore about what is PHP and their datatypes and how to use of variables. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-php-define-variables-and-datatypes-how-to-use-it/">What is php? Define variables and Datatypes how to use it?</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 i&#8217;m going to explore about what is PHP and their datatypes and how to use of variables. <br>PHP is a open-source side programming language that is specially suited for web development and can be embeded to HTML. It is powerful to hold a content management system like WordPress and can be used to control user access. PHP can actually do anything related to server-side scripting or more popularly known as the backend of a website, it is more secure and reliable to be used as a server-side scripting language.</p>



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



<p class="wp-block-paragraph">Datatypes is a range of all different data can be given variable in PHP. It&#8217;s supports these string.</p>



<ol class="wp-block-list"><li>String</li><li>Integer</li><li>Float (floating point numbers &#8211; also called double)</li><li>Boolean</li><li>Array</li><li>Object</li><li>NULL</li><li>Resource</li></ol>



<p class="wp-block-paragraph"><strong>How to write datatypes in PHP?</strong></p>



<script src="https://gist.github.com/laravelamit/91622ec9dc31b0fe6de3600a6efcb8e6.js"></script>



<ol class="wp-block-list"><li><strong>string:-  </strong>A <strong>string</strong> is a data type used in programming, string is  a sequence of character its  supports a 256-character. The simplest way to create a string is to enclose the string literal (i.e. string characters) in single quotation marks (&#8216;), like this:      <br><br>$my_string = &#8216;Hello World&#8217;;</li></ol>



<p class="wp-block-paragraph">2. Integer:-  An integer is a number without any decimal part.<br></p>



<pre class="wp-block-preformatted">&lt;?php  
    $x=123;  
    echo $x;  
?&gt;  </pre>



<p class="wp-block-paragraph">3. Float:- A float is a number with a decimal point as like- 2.0, 256.4, 10.358, 7.64E+5, 5.56E-5 are all <em>floats</em>. </p>



<p class="wp-block-paragraph">4. Boolean:- A boolean data can be either TRUE or FALSE. These are predefined constants in PHP.<br></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
var_dump((bool) -2);        // bool(true)
var_dump((bool) &quot;foo&quot;);     // bool(true)
var_dump((bool) 2.3e5);     // bool(true)
var_dump((bool) array(12)); // bool(true)
var_dump((bool) array());   // bool(false)
var_dump((bool) &quot;false&quot;);   // bool(true)
</pre></div>


<p class="wp-block-paragraph"><br>5. array:- An array stores multiple values in one single variable.</p>



<p class="wp-block-paragraph">&lt;?php<br>$cars = array(&#8220;Volvo&#8221;,&#8221;BMW&#8221;,&#8221;Toyota&#8221;);<br>var_dump($cars);<br>?></p>



<p class="wp-block-paragraph">6. Object:- Objects are the instances of user-defined classes that can store both values and functions. They must be explicitly declared.</p>



<script src="https://gist.github.com/laravelamit/e594c734e8f63abdd2f25e3af5d05a78.js"></script>



<p class="wp-block-paragraph">7. Null:- Null is a special data type which can have only one value Null, if variable is created without a value it is automatically assigned a value of Null.</p>



<p class="wp-block-paragraph">8. Resource:-  Resources are not the exact data type in PHP. Resource is the storing the refrenece to functions call or refrences to external PHP resource as like database. </p>



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



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-php-define-variables-and-datatypes-how-to-use-it/">What is php? Define variables and Datatypes how to use it?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-php-define-variables-and-datatypes-how-to-use-it/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ansible &#038; Ansible Tower Variable Precedence Hierarchy</title>
		<link>https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 07:16:03 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[Ansible Tower]]></category>
		<category><![CDATA[Hierarchy]]></category>
		<category><![CDATA[Precedence]]></category>
		<category><![CDATA[Variable]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5300</guid>

					<description><![CDATA[<p>Ansible &#38; Ansible Tower Variable Precedence Hierarchy (last listed wins)</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/">Ansible &#038; Ansible Tower Variable Precedence Hierarchy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Ansible &amp; Ansible Tower Variable Precedence Hierarchy (last listed wins)</strong></p>
<p><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/Architecture-Tower_Variable_Precedence_Hierarchy.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-5301" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/Architecture-Tower_Variable_Precedence_Hierarchy.png" alt="" width="525" height="534" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/Architecture-Tower_Variable_Precedence_Hierarchy.png 525w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/Architecture-Tower_Variable_Precedence_Hierarchy-295x300.png 295w" sizes="auto, (max-width: 525px) 100vw, 525px" /></a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/">Ansible &#038; Ansible Tower Variable Precedence Hierarchy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
