<?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>buildin function in javascript Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/buildin-function-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/buildin-function-in-javascript/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Fri, 26 Mar 2021 13:08:18 +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>Built-in/Predefined Methods in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/built-in-predefined-methods-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/built-in-predefined-methods-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[abhishek k]]></dc:creator>
		<pubDate>Fri, 26 Mar 2021 13:08:18 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[buildin function in javascript]]></category>
		<category><![CDATA[Built-in/Predefined Methods in JavaScript]]></category>
		<category><![CDATA[function types in javascript]]></category>
		<category><![CDATA[functions in javascript]]></category>
		<category><![CDATA[predefined function in javascript]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5769</guid>

					<description><![CDATA[<p>In JavaScript, however, a method is a function that belongs to an object. A JavaScript method is a property containing a function definition. There is a long list [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/built-in-predefined-methods-in-javascript/">Built-in/Predefined Methods in 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 JavaScript, however, a <em>method</em> is a <strong>function</strong> that belongs to an <strong><em>object</em></strong>. A JavaScript <strong>method</strong> is a property containing a <strong>function definition</strong>.</p>



<p class="wp-block-paragraph">There is a long list of Built-in or pre-defined methods in JavaScript</p>



<p class="has-medium-font-size wp-block-paragraph"> <strong>Maths Methods in JavaScript</strong></p>



<ul class="wp-block-list" start="12"><li>min() ->Returns the smallest of zero or more numbers.</li><li>pow() ->Returns base to the exponent power, that is, base exponent.</li><li>abs() ->Returns the absolute value of a number.</li><li>acos() ->Returns the arccosine (in radians) of a number.</li><li>asin() ->Returns the arcsine (in radians) of a number.</li><li>sin() ->Returns the sine of a number.</li><li>sqrt() ->Returns the square root of a number.</li><li>tan() ->Returns the tangent of a number.</li><li>atan() ->Returns the arctangent (in radians) of a number.</li><li>atan2() ->Returns the arctangent of the quotient of its arguments.</li><li>exp() ->Returns EN, where N is the argument, and E is Euler&#8217;s constant, the base of the natural logarithm.</li><li>floor() ->Returns the largest integer less than or equal to a number.</li><li>log() ->Returns the natural logarithm (base E) of a number.</li><li>max() ->Returns the largest of zero or more numbers.</li><li>ceil() ->Returns the smallest integer greater than or equal to a number.</li><li>cos() ->Returns the cosine of a number.</li><li>random() ->Returns a pseudo-random number between 0 and 1.</li><li>round() ->Returns the value of a number rounded to the nearest integer.</li><li>toSource() ->Returns the string &#8220;Math&#8221;.</li></ul>



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



<p class="has-medium-font-size wp-block-paragraph"><strong>Boolean Methods in JavaScript</strong></p>



<ul class="wp-block-list"><li>toString() ->Returns a string of either &#8220;true&#8221; or &#8220;false&#8221; depending upon the value of the object.</li><li>toSource() ->Returns a string containing the source of the Boolean object; you can use this string to create an equivalent object.</li><li>valueOf() ->Returns the primitive value of the Boolean object.</li></ul>



<p class="has-medium-font-size wp-block-paragraph"><strong>String Methods in JavaScript</strong></p>



<ul class="wp-block-list"><li>length() ->Returns the length of the string.</li><li>search() ->Executes the search for a match between a regular expression and a specified string.</li><li>split() ->Splits a String object into an array of strings by separating the string into substrings.</li><li>lastIndexOf() ->Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found.</li><li>charAt() ->Returns the character at the specified index.</li><li>match() ->Used to match a regular expression against a string.</li><li>charCodeAt() ->Returns a number indicating the Unicode value of the character at the given index.</li><li>concat()-Combines the text of two strings and returns a new string.</li><li>replace() ->Used to find a match between a regular expression and a string and to replace the matched substring with a new substring.</li><li>substr() ->Returns the characters in a string beginning at the specified location through the specified number of characters.</li><li>toLowerCase() ->Returns the calling string value converted to lower case.</li><li>toString() ->Returns a string representing the specified object.</li><li>toUpperCase() ->Returns the calling string value converted to uppercase.</li><li>valueOf() ->Returns the primitive value of the specified object.</li><li>toLocaleLowerCase() ->The characters within a string are converted to lower case while respecting the current locale.</li><li>toLocaleUpperCase() ->The characters within a string are converted to the upper case while respecting the current locale.</li><li>substring() ->Returns the characters in a string between two indexes into the string.</li></ul>



<p class="has-medium-font-size wp-block-paragraph"><strong>Array Methods in JavaScript</strong></p>



<ul class="wp-block-list"><li>every() ->Returns true if every element in this array satisfies the provided testing function.</li><li>reduce() ->Apply a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value.</li><li>filter() ->Creates a new array with all of the elements of this array for which the provided filtering function returns true.</li><li>forEach() ->Calls a function for each element in the array.</li><li>indexOf() ->Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.</li><li>join() ->Joins all elements of an array into a string.</li><li>slice() ->Extracts a section of an array and returns a new array.</li><li>some() ->Returns true if at least one element in this array satisfies the provided testing function.</li><li>toSource() ->Represents the source code of an object</li><li>lastIndexOf() ->Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.</li><li>map() ->Creates a new array with the results of calling a provided function on every element in this array.</li><li>reduceRight() ->Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.</li><li>reverse() ->Reverses the order of the elements of an array &#8212; the first becomes the last, and the last becomes the first.</li><li>shift() ->Removes the first element from an array and returns that element.</li><li>sort() ->Sorts the elements of an array.</li><li>splice() ->Adds and/or removes elements from an array.</li><li>toString() ->Returns a string representing the array and its elements.</li><li>pop() ->Removes the last element from an array and returns that element.</li><li>push()->Adds one or more elements to the end of an array and returns the new length of the array.</li></ul>



<p class="has-medium-font-size wp-block-paragraph"><strong>Date Methods in JavaScript</strong></p>



<ul class="wp-block-list" start="10"><li>getTime() ->Returns the numeric value of the specified date as the number of milliseconds since January 1, 1970, 00:00:00 UTC.</li><li>setTime() ->Sets the Date object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.</li><li>getTimezoneOffset() ->Returns the time-zone offset in minutes for the current locale.</li><li>getUTCDate() ->Returns the day (date) of the month in the specified date according to universal time.</li><li>setUTCDate() ->Sets the day of the month for a specified date according to universal time.</li><li>getUTCDay() ->Returns the day of the week in the specified date according to universal time.</li><li>getUTCFullYear() ->Returns the year in the specified date according to universal time.</li><li>getUTCHours() ->Returns the hours in the specified date according to universal time.</li><li>getUTCMilliseconds() ->Returns the milliseconds in the specified date according to universal time.</li><li>getUTCMinutes() ->Returns the minutes in the specified date according to universal time.</li><li>getUTCMonth() ->Returns the month in the specified date according to universal time.</li><li>getUTCSeconds() ->Returns the seconds in the specified date according to universal time.</li><li>getYear() ->Deprecated &#8211; Returns the year in the specified date according to local time. Use getFullYear instead.</li><li>setYear() ->Deprecated &#8211; Sets the year for a specified date according to local time. Use setFullYear instead.</li><li>setDate() ->Sets the day of the month for a specified date according to local time.</li><li>getDate() ->Returns the day of the month for the specified date according to local time.</li><li>setFullYear() ->Sets the full year for a specified date according to local time.</li><li>setHours() ->Sets the hours for a specified date according to local time.</li><li>setMilliseconds() ->Sets the milliseconds for a specified date according to local time.</li><li>setMinutes() ->Sets the minutes for a specified date according to local time.</li><li>getMonth() ->Returns the month in the specified date according to local time.</li><li>setMonth() ->Sets the month for a specified date according to local time.</li><li>getSeconds() ->Returns the seconds in the specified date according to local time.</li><li>setSeconds() ->Sets the seconds for a specified date according to local time.</li><li>setUTCFullYear() ->Sets the full year for a specified date according to universal time.</li><li>setUTCHours() ->Sets the hour for a specified date according to universal time.</li><li>setUTCMilliseconds() ->Sets the milliseconds for a specified date according to universal time.</li><li>setUTCMinutes() ->Sets the minutes for a specified date according to universal time.</li><li>setUTCMonth() ->Sets the month for a specified date according to universal time.</li><li>setUTCSeconds() ->Sets the seconds for a specified date according to universal time.</li><li>toDateString() ->Returns the &#8220;date&#8221; portion of the Date as a human-readable string.</li><li>toGMTString() ->Deprecated &#8211; Converts a date to a string, using the Internet GMT conventions. Use toUTCString instead.</li><li>toString() ->Returns a string representing the specified Date object.</li><li>toTimeString() ->Returns the &#8220;time&#8221; portion of the Date as a human-readable string.</li><li>valueOf() ->Returns the primitive value of a Date object.</li><li>Date() ->Returns today&#8217;s date and time</li><li>getDay() ->Returns the day of the week for the specified date according to local time.</li><li>getFullYear() ->Returns the year of the specified date according to local time.</li><li>toLocaleDateString() ->Returns the &#8220;date&#8221; portion of the Date as a string, using the current locale&#8217;s conventions.</li><li>toLocaleFormat() ->Converts a date to a string, using a format string.</li><li>toLocaleTimeString() ->Returns the &#8220;time&#8221; portion of the Date as a string, using the current locale&#8217;s conventions.</li><li>getHours() ->Returns the hour in the specified date according to local time.</li><li>getMilliseconds() ->Returns the milliseconds in the specified date according to local time.</li><li>getMinutes() ->Returns the minutes in the specified date according to local time.</li></ul>



<p class="has-medium-font-size wp-block-paragraph"></p>



<p class="has-medium-font-size wp-block-paragraph" id="block-dbae201a-7ac0-44b9-b1a0-230fd3d6e588"><strong>Few important links for learning:-</strong></p>



<ol class="wp-block-list" id="block-3992be7e-1858-42f7-ae24-fc56f840b637"><li>Want to know the difference between <strong>Function </strong>and <strong>Method </strong>in JavaScript? Just click&nbsp;<a rel="noreferrer noopener" href="https://www.scmgalaxy.com/tutorials/difference-between-function-and-method-in-javascript/" target="_blank">here</a>.</li><li>Want to know what is&nbsp;<strong>function</strong>&nbsp;and how to use them in JavaScript? Just click&nbsp;<a rel="noreferrer noopener" href="https://www.scmgalaxy.com/tutorials/function-in-javascript/" target="_blank">here</a>.</li><li>Want to know what are&nbsp;<strong>variables&nbsp;</strong>and how to use them in JavaScript? Just click&nbsp;<a rel="noreferrer noopener" href="https://www.scmgalaxy.com/tutorials/variables-in-javascript-var-let-const/" target="_blank">here</a>.</li><li>Let’s see an example for <strong>User form validation</strong> in JavaScript. click&nbsp;<a rel="noreferrer noopener" href="https://www.scmgalaxy.com/tutorials/registration-form-validation-using-javascript/" target="_blank">here</a>.</li><li>Let’s<strong> understand JavaScript</strong>. what and how? click&nbsp;<a rel="noreferrer noopener" href="https://www.scmgalaxy.com/tutorials/a-brief-description-of-javascript/" target="_blank">here</a>.</li></ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/built-in-predefined-methods-in-javascript/">Built-in/Predefined 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/built-in-predefined-methods-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
