<?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>methods Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/methods/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/methods/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:46 +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>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 fetchpriority="high" 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="(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>History Object and Location Object in javascript?</title>
		<link>https://www.scmgalaxy.com/tutorials/history-object-and-location-object-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/history-object-and-location-object-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 12 Aug 2021 13:01:57 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[History Object]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Location Object]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[property]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7850</guid>

					<description><![CDATA[<p>History Object The History object is a read-only array of URL strings that shows where the user has been recently. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/history-object-and-location-object-in-javascript/">History Object and Location Object 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>History Object</strong></h2>



<p class="wp-block-paragraph">The History object is a read-only array of URL strings that shows where the user has been recently.</p>



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



<p class="wp-block-paragraph"><strong>window.history.property</strong></p>



<p class="wp-block-paragraph">window.hi<strong>story.method</strong></p>



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



<ul class="wp-block-list"><li>length – It returns the number of URLs in the history list.</li></ul>



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



<ul class="wp-block-list"><li>back ( ) – It loads the previous URL in the history list.</li></ul>



<ul class="wp-block-list"><li>forward ( ) – It loads the next URL in the history list.</li></ul>



<ul class="wp-block-list"><li>go ( ) – It access a particular item in the history list relative to the current position. Using a negative value moves to a history item previous to the current location, while a positive number moves forward in the history list.</li></ul>



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



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



<p class="wp-block-paragraph">This is used to access the current location (URL) of the window. The Location object can be both read and replaced, so it is possible to update the location of a page through scripting. Location object is a property of Window.</p>



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



<p class="wp-block-paragraph"><strong>window.location.property</strong></p>



<p class="wp-block-paragraph"><strong>window.location.method</strong></p>



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



<ul class="wp-block-list"><li>hash – The part of the URL including and following the # symbol.</li><li>host – The hostname and port number.</li><li>hostname – hostname</li><li>href – entire URL</li><li>pathname – Path relative to the host.</li><li>port – Port Number</li><li>protocol – Protocol of URL</li><li>search – The part of the URL including and after the ?</li></ul>



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



<ul class="wp-block-list"><li>assign(URL) – It changes the location of current page with the passed in URL.</li><li>reload( ) – Reload the current page.</li><li>replace (URL) – Replaces the current page with the given URL in history. As it is replaced in history, it won’t be possible to access the current page with back/forward.</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/history-object-and-location-object-in-javascript/">History Object and Location Object 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/history-object-and-location-object-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How do I manipulate using DOM Table in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-do-i-manipulate-using-dom-table-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-do-i-manipulate-using-dom-table-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 10 Aug 2021 12:28:52 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[properties]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7744</guid>

					<description><![CDATA[<p>HTMLTableElement HTMLTableElement interface provides special properties and for manipulating the layout and presentation of tables in an HTML document. PropertiescaptiontHeadtFootrowstBodies [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-i-manipulate-using-dom-table-in-javascript/">How do I manipulate using DOM Table 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>HTMLTableElement</strong></h2>



<p class="wp-block-paragraph">HTMLTableElement interface provides special properties and for manipulating the layout and presentation of tables in an HTML document.</p>



<p class="wp-block-paragraph"><strong>Properties</strong><br>caption<br>tHead<br>tFoot<br>rows<br>tBodies</p>



<p class="wp-block-paragraph"><strong>Methods</strong><br>createCaption()<br>deleteCaption()<br>createTHead()<br>deleteTHead()<br>createTFoot()<br>deleteTFoot()<br>insertRow()<br>deleteRow()</p>



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



<ul class="wp-block-list"><li>caption – This property represents the table caption. If no caption element is associated with the table, it can be null.</li></ul>



<ul class="wp-block-list"><li>tHead – This property represents  the table&#8217;s &lt;thead> element. Its value can be null if there is no such element.</li></ul>



<ul class="wp-block-list"><li>tFoot – This property represents the table&#8217;s &lt;tfoot> element. Its value can be null if there is no such element.</li></ul>



<ul class="wp-block-list"><li>rows – This property rows returns a live HTMLCollection of all the rows in the table, including the rows contained within any &lt;thead>, &lt;tfoot>, and &lt;tbody> elements. Although the property itself is read-only, the returned object is live and allows the modification of its content.</li></ul>



<ul class="wp-block-list"><li>tBodies – This read-only property returns a live HTMLCollection of the table bodies. Although the property is read-only, the returned object is live and allows the modification of its content.</li></ul>



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



<ul class="wp-block-list"><li>createCaption() – This method returns the caption for the table. If no caption element exists on the table, this method creates it, then returns it.</li></ul>



<ul class="wp-block-list"><li>deleteCaption() – This method removes the caption from the table. If there is no caption associated with the table, this method does nothing.</li></ul>



<ul class="wp-block-list"><li>createTHead( ) – This method returns the &lt;thead> element association with the table, of type HTMLTableSectionElement. If there is no such element associated to the table, this method creates it, then returns it.</li></ul>



<ul class="wp-block-list"><li>deleteTHead() – This removes a &lt;thead> element from the table.</li></ul>



<ul class="wp-block-list"><li>createTFoot() – This method returns the &lt;tfoot> element associated with the table, of type HTMLTableSectionElement. If there is no footer for this table, this methods creates it, then returns it.</li></ul>



<ul class="wp-block-list"><li>deleteTFoot() – This method removes a &lt;tfoot> element from the table.</li></ul>



<ul class="wp-block-list"><li>insertRow() method inserts a new row in the table and returns a reference to the new row.</li></ul>



<p class="wp-block-paragraph"><strong>Syntax: &#8211; var row = HTMLTableElement.insertRow(index = -1);</strong></p>



<p class="wp-block-paragraph">index is the row index of the new row.<br>row is assigned a reference to the new row. A reference to HTMLTableRowElement.<br>If index is -1 or equal to the number of rows, the row is appended as the last row. If index is greater than the number of rows, an IndexSizeError exception will result. If index is omitted it defaults to -1.<br>If a table has multiple tbody elements, by default, the new row is inserted into the last tbody.</p>



<ul class="wp-block-list"><li>deleteRow() method removes a row from the table. If the number of rows to delete, specified by the parameter, is greater or equal to the number of available rows, or if it is negative and not equal to the special index -1, representing the last row of the table, the exception INDEX_SIZE_ERR is thrown.</li></ul>



<p class="wp-block-paragraph"><strong>Syntax: &#8211; HTMLTableElement.deleteRow(index)</strong></p>



<p class="wp-block-paragraph">an index is an integer representing the row that should be deleted.<br>However, the special index -1 can be used to remove the very last row of a table.</p>



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



<p class="wp-block-paragraph">The HTMLTableSectionElement interface provides special properties and methods for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table.</p>



<p class="wp-block-paragraph"><strong>Properties</strong><br>rows</p>



<p class="wp-block-paragraph"><strong>Methods</strong><br>insertRow()<br>deleteRow()</p>



<ul class="wp-block-list"><li>Rows – This returns a live HTMLCollection containing the rows in the section. The HTMLCollection is live and is automatically updated when rows are added or removed.</li></ul>



<ul class="wp-block-list"><li>insertRow() – It inserts a new row just before the given position in the section. If the given position is not given or is -1, it appends the row to the end of section. If the given position is greater (or equal as it starts at zero) than the amount of rows in the section, or is smaller than -1, it raises a DOMException with the IndexSizeError value.</li></ul>



<ul class="wp-block-list"><li>deleteRow() – It removes the cell at the given position in the section. If the given position is greater (or equal as it starts at zero) than the amount of rows in the section, or is smaller than 0, it raises a DOMException with the IndexSizeError value.</li></ul>



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



<p class="wp-block-paragraph">The HTMLTableRowElement interface provides special properties and methods for manipulating the layout and presentation of rows in an HTML table.</p>



<p class="wp-block-paragraph"><strong>Properties</strong><br>cells<br>rowIndex<br>sectionRowIndex</p>



<p class="wp-block-paragraph"><strong>Methods</strong><br>insertCell()<br>deleteCell()</p>



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



<ul class="wp-block-list"><li>cells &#8211; It returns a live HTMLCollection containing the cells in the row. The HTMLCollection is live and is automatically updated when cells are added or removed.</li></ul>



<ul class="wp-block-list"><li>rowIndex &#8211; It returns a long value which gives the logical position of the row within the entire table. If the row is not part of a table, returns -1.</li></ul>



<ul class="wp-block-list"><li>sectionRowIndex &#8211; It returns a long value which gives the logical position of the row within the table section it belongs to. If the row is not part of a section, returns -1.</li></ul>



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



<ul class="wp-block-list"><li>insertCell() – This method inserts a new cell into a table row and returns a reference to the cell.</li></ul>



<p class="wp-block-paragraph"><strong>Syntax: &#8211; var cell = HTMLTableRowElement.insertCell(index = -1);</strong></p>



<p class="wp-block-paragraph">HTMLTableRowElement is a reference to an HTML table row element.<br>index is the cell index of the new cell.<br>cell, is assigned a reference to the new cell.<br>If index is -1 or equal to the number of cells, the cell is appended as the last cell in the row. If index is greater than the number of cells, an IndexSizeError exception will result. If index is omitted it defaults to -1.</p>



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



<ul class="wp-block-list"><li>deleteCell() – It removes the cell at the given position in the row. If the given position is greater (or equal as it starts at zero) than the amount of cells in the row, or is smaller than 0, it raises a DOMException with the IndexSizeError value.</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-i-manipulate-using-dom-table-in-javascript/">How do I manipulate using DOM Table 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-i-manipulate-using-dom-table-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>CSS manipulation in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/css-manipulation-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/css-manipulation-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 10 Aug 2021 11:37:07 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Manipulation]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[objects]]></category>
		<category><![CDATA[properties]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7742</guid>

					<description><![CDATA[<p>CSSStyleDeclaration Object The CSSStyleDeclaration object represents a collection of CSS property-value pairs. It is used in API : HTMLElement.stylewindow.getComputedStyle( ) [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/css-manipulation-in-javascript/">CSS manipulation 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">CSSStyleDeclaration Object</h2>



<p class="wp-block-paragraph">The CSSStyleDeclaration object represents a collection of CSS property-value pairs.</p>



<p class="wp-block-paragraph"><strong>It is used in API :</strong></p>



<p class="wp-block-paragraph"><strong>HTMLElement.style<br>window.getComputedStyle( )</strong></p>



<h3 class="wp-block-heading"><strong>Properties</strong></h3>



<ul class="wp-block-list"><li>cssText</li><li>length</li><li>parentRule</li></ul>



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



<p class="wp-block-paragraph">getPropertyValue(property)<br>getPropertyPriority(property)<br>removeProperty(property)<br>setProperty(property, value, priority)<br>item(index)</p>



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



<p class="wp-block-paragraph">The style property is used to get or set the inline style of an element. While getting, it returns a CSSStyleDeclaration object that contains a list of all styles properties for that element with values assigned for the attributes that are defined in the element&#8217;s inline style attribute.</p>



<p class="wp-block-paragraph">Style Property represents only the CSS declarations set in the element&#8217;s inline style attribute, not those that come from style rules elsewhere, such as style rules in the &lt;head> section, or external style sheets or browser default.</p>



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



<p class="wp-block-paragraph"><strong>Return</strong><br>element.style.property</p>



<p class="wp-block-paragraph"><strong>Set</strong><br>element.style.property = “value”</p>



<p class="wp-block-paragraph">A style declaration is reset by setting it to null or an empty string, e.g. element.style.property = null</p>



<h2 class="wp-block-heading"><strong>Inline Style Manipulation</strong></h2>



<p class="wp-block-paragraph">The most direct way to modify CSS value with JavaScript is through the style property that corresponding to the inline style sheet specification for a particular HTML element. To perform a manipulation of the CSS with a JavaScript DOM interface, you would access the style object of the element.</p>



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



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



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



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



<h2 class="wp-block-heading"><strong>Dynamic Style Manipulation</strong></h2>



<p class="wp-block-paragraph">As we know The most direct way to modify CSS value with JavaScript is through the style property that corresponding to the inline style sheet specification for a particular HTML element, This has performance considerations since you need to change a single property at a time. We might manipulate style rules using CSS <em>class</em> Selector. The element’s <em>class</em> attribute is represented as <em>className</em> property in DOM.</p>



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



<p class="wp-block-paragraph">The DOMTokenList interface represents a set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor.  etc. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.</p>



<p class="wp-block-paragraph"><strong>Properties</strong><br>length<br>value</p>



<p class="wp-block-paragraph"><strong>Methods</strong><br>item()<br>add()<br>remove()<br>replace()<br>contains()<br>toggle()<br>value()</p>



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



<p class="wp-block-paragraph">The Element.classList is a read-only property that returns a live DOMTokenList collection of the class attributes of the element.</p>



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



<p class="wp-block-paragraph">var elementClasses = elementNodeReference.classList;</p>



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



<p class="wp-block-paragraph">The computed style is the style actually used in displaying the element, after &#8220;stylings&#8221; from multiple sources have been applied.<br>Style sources can include: internal style sheets, external style sheets, inherited styles, and browser default styles.<br>Style Property represents only the CSS declarations set in the element&#8217;s inline style attribute, not those that come from style rules elsewhere, such as style rules in the section, or external style sheets or browser default. To get the values of all CSS properties for an element you should use window.getComputedStyle( ) instead.<br>The returned style is a live CSSStyleDeclaration object ( The CSSStyleDeclaration object represents a collection of CSS property-value pairs.), which updates itself automatically when the element&#8217;s style is changed.</p>



<p class="wp-block-paragraph"><strong>Syntax:-</strong><br>window.getComputedStyle(element, pseudoElement)<br>Element &#8211; Element for which to get the computed style.<br>pseudoElement &#8211; A string specifying the pseudo-element to match. Must be omitted (or null) for regular elements.</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong><br>var elm = document.getElementById(“myid&#8221;);<br>var allCSSProp = window.getComputedStyle(elm)</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/css-manipulation-in-javascript/">CSS manipulation 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/css-manipulation-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How do you use a date object in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-do-you-use-a-date-object-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-do-you-use-a-date-object-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 10:47:35 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[constructor]]></category>
		<category><![CDATA[date object]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[methods]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7474</guid>

					<description><![CDATA[<p>Date The Date object provides a sophisticated set of methods for manipulating dates and times. • It reads client machine [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-you-use-a-date-object-in-javascript/">How do you use a date object 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">Date</h2>



<p class="wp-block-paragraph">The Date object provides a sophisticated set of methods for manipulating dates and times.</p>



<p class="wp-block-paragraph">• It reads client machine date and time so if the client‟s date or time is incorrect, your script will reflect this fact.<br>• Days of week and months of the year are enumerated beginning with zero.<br>   0 – Sunday, 1 – Monday, and so on<br>   0 – January, 1 – February, and so on<br>• Days of the month begin with One.</p>



<h2 class="wp-block-heading">Creating Date Object</h2>



<p class="wp-block-paragraph">Date objects are created with the new Date() constructor. Date Objects created by programmers are static. They do not contain a ticking clock.</p>



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



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



<h2 class="wp-block-heading">Creating Date Object</h2>



<ul class="wp-block-list"><li>new Date( ) &#8211; new Date() creates a new date object with the current date and time.</li></ul>



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



<h2 class="wp-block-heading">Creating Date Object</h2>



<ul class="wp-block-list"><li>new Date(milliseconds) – It creates a new date object as January 1, 1970, 00:00:00 Universal Time (UTC).</li></ul>



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



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



<h2 class="wp-block-heading">Creating Date Object</h2>



<ul class="wp-block-list"><li>new Date(year, month, day, hours, minutes, seconds, milliseconds) It creates an object with the date specified by the integer values for the year, month, day, hours, minutes, second, milliseconds. You can omit some of the arguments.</li></ul>



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



<p class="wp-block-paragraph">Month and Week Day start with 0<br>0 – Sunday<br>0 – January<br>Month Day starts with 1<br>1 – 1</p>



<h2 class="wp-block-heading">Creating Date Object</h2>



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>No. of arguments</strong></td><td class="has-text-align-left" data-align="left"><strong>Description (in order)</strong></td></tr><tr><td class="has-text-align-center" data-align="center">7</td><td class="has-text-align-left" data-align="left">year, month, day, hour, minute, second, millisecond</td></tr><tr><td class="has-text-align-center" data-align="center">6</td><td class="has-text-align-left" data-align="left">year, month, day, hour, minute, second</td></tr><tr><td class="has-text-align-center" data-align="center">5</td><td class="has-text-align-left" data-align="left">year, month, day, hour, minute</td></tr><tr><td class="has-text-align-center" data-align="center">4</td><td class="has-text-align-left" data-align="left">year, month, day, hour</td></tr><tr><td class="has-text-align-center" data-align="center">3</td><td class="has-text-align-left" data-align="left">year, month, day</td></tr><tr><td class="has-text-align-center" data-align="center">2</td><td class="has-text-align-left" data-align="left">year and month</td></tr><tr><td class="has-text-align-center" data-align="center">1</td><td class="has-text-align-left" data-align="left">Millisecond</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">Creating Date Object</h2>



<ul class="wp-block-list"><li>new Date(dateString) &#8211; new Date(dateString) creates a new date object from a date string.</li></ul>



<p class="wp-block-paragraph">Ex: &#8211;<br>var tarikh = new Date(“May 12, 2018 10:16:05&#8243;)</p>



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Date Type</strong></td><td class="has-text-align-center" data-align="center"><strong>Format</strong></td><td class="has-text-align-center" data-align="center"><strong>Example</strong></td></tr><tr><td class="has-text-align-center" data-align="center">ISO Date</td><td class="has-text-align-center" data-align="center">YYYY-MM-DD</td><td class="has-text-align-center" data-align="center">&#8220;2018-06-21&#8221; (The International Standard)</td></tr><tr><td class="has-text-align-center" data-align="center">Short Date</td><td class="has-text-align-center" data-align="center">MM/DD/YYYY</td><td class="has-text-align-center" data-align="center">“06/21/2018&#8243;</td></tr><tr><td class="has-text-align-center" data-align="center">Long Date</td><td class="has-text-align-center" data-align="center">MMM DD YYYY</td><td class="has-text-align-center" data-align="center">“June 21 2018 or “21 June 2018&#8243;</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">ISO Dates</h2>



<p class="wp-block-paragraph">ISO 8601 is the international standard for the representation of dates and times.</p>



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center">Description</td><td class="has-text-align-center" data-align="center">Format</td><td class="has-text-align-center" data-align="center">Example</td></tr><tr><td class="has-text-align-center" data-align="center">Year and Month</td><td class="has-text-align-center" data-align="center">Year and Month</td><td class="has-text-align-center" data-align="center">2018-06</td></tr><tr><td class="has-text-align-center" data-align="center">Only Year</td><td class="has-text-align-center" data-align="center">YYYY</td><td class="has-text-align-center" data-align="center">2018</td></tr><tr><td class="has-text-align-center" data-align="center">Date and Time</td><td class="has-text-align-center" data-align="center">YYYY-MM-DDTHH:MM: SSZ</td><td class="has-text-align-center" data-align="center">2018-06-21T12:00:00Z</td></tr><tr><td class="has-text-align-center" data-align="center">Date and Time</td><td class="has-text-align-center" data-align="center">YYYY-MM-DDTHH:MM:SS+HH: MM<br>YYYY-MM-DDTHH:MM:SS-HH: MM</td><td class="has-text-align-center" data-align="center">2018-06-21T12:00:00+06:30<br>2018-06-21T12:00:00-06:30</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">Date and Time are separated with a capital T.<br>UTC time is defined with the capital letter Z.<br>If you want to modify the time relative to UTC, remove the Z and add +HH: MM or -HH: MM instead.</p>



<h2 class="wp-block-heading">Short Date</h2>



<ul class="wp-block-list"><li><strong>Short dates are written in an &#8220;MM/DD/YYYY&#8221; format.</strong></li><li><strong>In some browsers, months or days with no leading zeroes may produce an error.</strong></li><li><strong>The behavior of &#8220;YYYY/MM/DD&#8221; is undefined. Some browsers will try to guess the format. Some will return NaN.</strong></li><li><strong>The behavior of &#8220;DD-MM-YYYY&#8221; is also undefined. Some browsers will try to guess the format. Some will return NaN.</strong></li></ul>



<h2 class="wp-block-heading">Long Date</h2>



<p class="wp-block-paragraph">Long dates are most often written in a &#8220;MMM DD YYYY&#8221; format.<br>Month and day can be in any order.<br>A month can be written in full (January), or abbreviated (Jan).<br>If you write “June 21, 2018” Commas are ignored and Names are case insensitive.</p>



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



<ul class="wp-block-list"><li><strong>setDate()                               Set the day as a number (1-31)</strong></li><li><strong>setFullYear()                          Set the year (optionally month and day)</strong></li><li><strong>setHours()                             Set the hour (0-23)</strong></li><li><strong>setMilliseconds()                   Set the milliseconds (0-999)</strong></li><li><strong>setMinutes()                          Set the minutes (0-59)</strong></li><li><strong>setMonth()                            Set the month (0-11)</strong></li><li><strong>setSeconds()                         Set the seconds (0-59)</strong></li><li><strong>setTime()                               Set the time (milliseconds since January 1, 1970)</strong></li></ul>



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



<ul class="wp-block-list"><li><strong>getFullYear()                        Get the year as a four digit number (yyyy)</strong></li><li><strong>getMonth()                          Get the month as a number (0-11)</strong></li><li><strong>getDate()                             Get the day as a number (1-31)</strong></li><li><strong>getHours()                           Get the hour (0-23)</strong></li><li><strong>getMinutes()                        Get the minute (0-59)</strong></li><li><strong>getSeconds()                        Get the second (0-59)</strong></li><li><strong>getMilliseconds()                 Get the millisecond (0-999)</strong></li><li><strong>getTime()                             Get the time (milliseconds since January 1, 1970)</strong></li><li><strong>getDay()                               Get the weekday as a number (0-6)</strong></li></ul>



<h2 class="wp-block-heading">Converting Dates to String</h2>



<p class="wp-block-paragraph">If you want to create a string in a standard format, Date provides three methods: &#8211;</p>



<ul class="wp-block-list"><li><strong>toString( )</strong></li><li><strong>toUTCString( )</strong></li><li><strong>toGMTString( )</strong></li></ul>



<p class="wp-block-paragraph">toUTCString ( ) and toGMTString ( ) format the string according<br>to Internet (GMT) standards, whereas toString ( ) creates the<br>string according to Local Time.</p>



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



<ul class="wp-block-list"><li><strong>getDate()                               Returns the day of the month (from 1-31)</strong></li><li><strong>getDay()                                Returns the day of the week (from 0-6)</strong></li><li><strong>getFullYear()                          Returns the year</strong></li><li><strong>getHours()                            Returns the hour (from 0-23)</strong></li><li><strong>getMilliseconds()                  Returns the milliseconds (from 0-999)</strong></li><li><strong>getMinutes()                         Returns the minutes (from 0-59)</strong></li><li><strong>getMonth()                           Returns the month (from 0-11)</strong></li><li><strong>getSeconds()                        Returns the seconds (from 0-59)</strong></li><li><strong>getTime()                              Returns the number of milliseconds since midnight Jan 1 1970, and a specified date</strong></li><li><strong>getTimezoneOffset()            Returns the time difference between UTC time and local time, in minutes</strong></li><li>getUTCDate()                         Returns the day of the month, according to universal time (from 1-31)</li><li>getUTCDay()                          Returns the day of the week, according to universal time (from 0-6)</li><li>getUTCFullYear()                    Returns the year, according to universal time</li><li>getUTCHours()                       Returns the hour, according to universal time (from 0-23)</li><li>getUTCMilliseconds()             Returns the milliseconds, according to universal time (from 0-999)</li><li>getUTCMinutes()                    Returns the minutes, according to universal time (from 0-59)</li><li>getUTCMonth()                      Returns the month, according to universal time (from 0-11)</li><li>getUTCSeconds()                   Returns the seconds, according to universal time (from 0-59)</li><li>now()                                      Returns the number of milliseconds since midnight Jan 1, 1970</li><li>parse()                                    Parses a date string and returns the number of milliseconds since January 1, 1970</li><li>setDate()                                Sets the day of the month of a date object</li><li>setFullYear()                           Sets the year of a date object</li><li>setHours()                              Sets the hour of a date object</li><li>setMilliseconds()                   Sets the milliseconds of a date object</li><li>setMinutes()                          Set the minutes of a date object</li><li>setMonth()                            Sets the month of a date object</li><li>setSeconds()                         Sets the seconds of a date objec</li></ul>



<ul class="wp-block-list"><li>setTime()                              Sets a date to a specified number of milliseconds after/before January 1, 1970</li><li>setUTCDate()                        Sets the day of the month of a date object, according to universal time</li><li>setUTCFullYear()                   Sets the year of a date object, according to universal time</li><li>setUTCHours()                      Sets the hour of a date object, according to universal time</li><li>setUTCMilliseconds()            Sets the milliseconds of a date object, according to universal time</li><li>setUTCMinutes()                   Set the minutes of a date object, according to universal time</li><li>setUTCMonth()                     Sets the month of a date object, according to universal time</li><li>setUTCSeconds()                   Set the seconds of a date object, according to universal time</li><li>toDateString()                       Converts the date portion of a Date object into a readable string</li><li>toISOString()                         Returns the date as a string, using the ISO standard</li><li>toJSON()                               Returns the date as a string, formatted as a JSON date</li><li>toLocaleDateString()             Returns the date portion of a Date object as a string, using locale conventions</li><li>toLocaleTimeString()             Returns the time portion of a Date object as a string, using locale conventions</li><li>toLocaleString()                     Converts a Date object to a string, using locale conventions</li><li>toString()                               Converts a Date object to a string</li><li>toTimeString()                       Converts the time portion of a Date object to a string</li><li>toUTCString()                        Converts a Date object to a string, according to universal time</li><li>UTC()                                     Returns the number of milliseconds in a date since midnight of January 1, 1970,                                <ul><li>                                    according to UTC time</li></ul></li><li>valueOf()                               Returns the primitive value of a Date object</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-you-use-a-date-object-in-javascript/">How do you use a date object 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-use-a-date-object-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How can I use math Object Properties in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-can-i-use-math-object-properties-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-can-i-use-math-object-properties-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 05 Aug 2021 12:55:03 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[math Object]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[properties]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7456</guid>

					<description><![CDATA[<p>Math The Math object holds a set of constants and methods that enable more complex mathematical operations than the basic [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-can-i-use-math-object-properties-in-javascript/">How can I use math Object Properties in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large is-resized"><img decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/javascript-math-object-properties.png" alt="" class="wp-image-7460" width="653" height="371" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/javascript-math-object-properties.png 615w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/javascript-math-object-properties-300x171.png 300w" sizes="(max-width: 653px) 100vw, 653px" /></figure>



<h2 class="wp-block-heading">Math</h2>



<p class="wp-block-paragraph">The Math object holds a set of constants and methods that enable more complex mathematical operations than the basic arithmetic operators. We can not instantiate a Math Object. The Math object is static so it‟s properties and methods are accessed directly.</p>



<p class="wp-block-paragraph"><strong>Ex:-<br>Math.PI<br>Math.abs( )</strong></p>



<h2 class="wp-block-heading">Properties</h2>



<ul class="wp-block-list"><li>E                 Returns Euler&#8217;s number (approx. 2.718)</li><li>LN2            Returns the natural logarithm of 2 (approx. 0.693)</li><li>LN10          Returns the natural logarithm of 10 (approx. 2.302)</li><li>LOG2E        Returns the base-2 logarithm of E (approx. 1.442)</li><li>LOG10E      Returns the base-10 logarithm of E (approx. 0.434)</li><li>PI               Returns PI (approx. 3.14)</li><li>SQRT1_2    Returns the square root of 1/2 (approx. 0.707)</li><li>SQRT2       Returns the square root of 2 (approx. 1.414)</li></ul>



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



<ul class="wp-block-list"><li>Math.abs(arg)                    Returns the absolute value of arg</li><li>Math.acos(arg)                  Returns the arccosine of arg, in radians</li><li>Math.acosh(arg)                Returns the hyperbolic arccosine of arg</li><li>Math.asin(arg)                   Returns the arcsine of arg, in radians</li><li>Math.asinh(arg)                 Returns the hyperbolic arcsine of arg</li><li>Math.atan(arg)                  Returns the arctangent of arg as a numeric value between -PI/2 and PI/2 radians</li><li>Math.atan2(arg1, arg2)     Returns the arctangent of the quotient of its arguments</li><li>Math.atanh(arg)                Returns the hyperbolic arctangent of arg</li></ul>



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



<ul class="wp-block-list"><li>Math.cbrt(arg)              Returns the cubic root of arg</li><li>Math.ceil(arg)               Returns arg, rounded upwards to the nearest integer</li><li>Math.cos(arg)               Returns the cosine of arg (arg is in radians)</li><li>Math.cosh(arg)             Returns the hyperbolic cosine of arg</li><li>Math.exp(arg)               Returns the value of Ex</li><li>Math.floor(arg)             Returns arg, rounded downwards to the nearest integer</li><li>Math.log(arg)               Returns the natural logarithm (base E) of arg</li><li>Math.random()             Returns a random number between 0 and 1</li><li>Math.round(arg)           Rounds arg to the nearest integer</li></ul>



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



<ul class="wp-block-list"><li>Math.max(arg1, arg2, …,arg_n)                 Returns the number with the highest value</li><li>Math.min(arg1, arg2, …,arg_n)                  Returns the number with the lowest value</li><li>Math.pow(arg1, arg2)                               Returns the value of arg to the power of arg2</li><li>Math.sin(arg)                                            Returns the sine of arg (arg is in radians)</li><li>Math.sinh(arg)                                          Returns the hyperbolic sine of arg</li><li>Math.sqrt(arg)                                          Returns the square root of arg</li><li>Math.tan(arg)                                           Returns the tangent of an angle</li><li>Math.tanh(arg)                                         Returns the hyperbolic tangent of a number</li><li>Math.trunc(arg)                                        Returns the integer part of a number (arg)</li></ul>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-can-i-use-math-object-properties-in-javascript/">How can I use math Object Properties 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-can-i-use-math-object-properties-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Global JavaScript Methods</title>
		<link>https://www.scmgalaxy.com/tutorials/global-javascript-methods/</link>
					<comments>https://www.scmgalaxy.com/tutorials/global-javascript-methods/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 05 Aug 2021 12:23:32 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Global]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[Number]]></category>
		<category><![CDATA[parseFloat ( )]]></category>
		<category><![CDATA[parseInt ( )]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7448</guid>

					<description><![CDATA[<p>Global JS Methods JavaScript global methods can be used on all JavaScript data types. Number ( ) parseFloat ( ) [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/global-javascript-methods/">Global JavaScript Methods</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Global JS Methods</h2>



<p class="wp-block-paragraph">JavaScript global methods can be used on all JavaScript data types.</p>



<ul class="wp-block-list"><li><strong>Number ( )</strong></li><li><strong>parseFloat ( )</strong></li><li><strong>parseInt ( )</strong></li></ul>



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



<p class="wp-block-paragraph">The Number() function converts the object argument to a number that<br>represents the object&#8217;s value.<br>If the value cannot be converted to a legal number, NaN is returned.<br>If the parameter is a Date object, the Number() function returns the number of<br>milliseconds since midnight January 1, 1970, UTC.</p>



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



<p class="wp-block-paragraph">Number(true)<br>Number(“100”)<br>Number(100/“Hello”)</p>



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



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



<p class="wp-block-paragraph">The parseInt() function parses a string and returns an integer.</p>



<p class="wp-block-paragraph"><strong>Syntax:- parseInt(string, radix)</strong></p>



<p class="wp-block-paragraph">The radix parameter is used to specify which numeral system to be used, for example, a<br>the radix of 16 (hexadecimal) indicates that the number in the string should be parsed from<br>a hexadecimal number to a decimal number.</p>



<p class="wp-block-paragraph">If the radix parameter is omitted, JavaScript assumes the following:</p>



<ul class="wp-block-list"><li>If the string begins with &#8220;0x&#8221;, the radix is 16 (hexadecimal)</li><li>If the string begins with any other value, the radix is 10 (decimal)</li></ul>



<p class="wp-block-paragraph">Only the first number in the string is returned.<br>Leading and trailing spaces are allowed.<br>If the first character cannot be converted to a number, parseInt() returns NaN.</p>



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



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



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



<p class="wp-block-paragraph">The parseFloat() function parses a string and returns a floating-point number. This function determines if the first character in the specified string is a number. If it is, it parses the string until it reaches the end of the number, and returns the number as a number, not as a string.</p>



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



<ul class="wp-block-list"><li>Only the first number in the string is returned!</li><li>Leading and trailing spaces are allowed.</li><li>If the first character cannot be converted to a number, parseFloat() returns NaN.</li></ul>



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



<script src="https://gist.github.com/vijaypk376/a6f6af2237a245e416cbf0e057c2d121.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/global-javascript-methods/">Global JavaScript Methods</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/global-javascript-methods/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
