{
"api":[
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date",
		"title": "Date",
		"_id": "4eea836aa4c86c4dba000001",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Creates JavaScript&nbsp;<code>Date</code> instances which let you work with dates and times.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n\r\n          <pre name = \"code\" class = \"js\">new Date()\nnew Date(milliseconds)\nnew Date(dateString)\nnew Date(year, month, day [, hour, minute, second, millisecond ])</pre>\r\n        \n<p><div class = \"note\"><strong>Note:</strong>&nbsp;Note that JavaScript <code>Date</code> objects can only be instantiated by calling JavaScript <code>Date</code> as a constructor: calling it as a regular function (i.e. without the new operator) will return a string rather than a <code>Date</code> object; unlike other JavaScript object types, JavaScript <code>Date</code> objects have no literal syntax.</div>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>milliseconds</code></dt> <dd>Integer value representing the number of milliseconds since 1 January 1970 00:00:00 UTC (Unix Epoch).</dd>\n</dl>\n<dl> <dt><code>dateString</code></dt> <dd>String value representing a date. The string should be in a format recognized by the <a title = \"en/JavaScript/Reference/Global_Objects/Date/parse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse\">parse</a> method (<a class = \"external\" title = \"http://tools.ietf.org/html/rfc1123\" rel = \"external\" href = \"http://tools.ietf.org/html/rfc1123\" target = \"_blank\">IETF-compliant RFC 1123 timestamps</a>).</dd>\n</dl>\n<dl> <dt><code>year</code></dt> <dd>Integer value representing the year. For compatibility (in order to avoid the Y2K problem), you should always specify the year in full; use <code>1998</code>, rather than <code>98</code>.</dd>\n</dl>\n<dl> <dt><code>month</code></dt> <dd>Integer value representing the month, beginning with 0 for January to 11 for December.</dd>\n</dl>\n<dl> <dt><code>day</code></dt> <dd>Integer value representing the day of the month (1-31).</dd>\n</dl>\n<dl> <dt><code>hour</code></dt> <dd>Integer value representing the hour of the day (0-23).</dd>\n</dl>\n<dl> <dt><code>minute</code></dt> <dd>Integer value representing the minute segment (0-59) of a time reading.</dd>\n</dl>\n<dl> <dt><code>second</code></dt> <dd>Integer value representing the second segment (0-59) of a time reading.</dd>\n</dl>\n<dl> <dt><code>millisecond</code></dt> <dd>Integer value representing the millisecond segment (0-999) of a time reading.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>If you supply no arguments, the constructor creates a JavaScript <code>Date</code> object for today's date and time according to local time. If you supply some arguments but not others, the missing arguments are set to 0. If you supply any arguments, you must supply at least the year, month, and day. You can omit the hours, minutes, seconds, and milliseconds.</p>\n<p>The JavaScript&nbsp;date is measured in milliseconds since midnight 01 January, 1970 UTC. A day holds 86,400,000 milliseconds. The JavaScript Date object range is -100,000,000 days to 100,000,000 days relative to 01 January, 1970 UTC.</p>\n<p>The JavaScript <code>Date</code> object provides uniform behavior across platforms.</p>\n<p>The JavaScript&nbsp;<code>Date</code> object supports a number of UTC (universal) methods, as well as local time methods. UTC, also known as Greenwich Mean Time (GMT), refers to the time as set by the World Time Standard. The local time is the time known to the computer where JavaScript is executed.</p>\n<p>Invoking JavaScript&nbsp;<code>Date</code> in a non-constructor context (i.e., without the <a title = \"en/JavaScript/Reference/Operators/Special_Operators/new_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/new\">new</a> operator) will return a string representing the current time.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>Date</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date#Properties_2\">Properties of Date instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/prototype\">prototype</a></dt> <dd>Allows the addition of properties to a JavaScript&nbsp;<code>Date</code> object.</dd>\n</dl>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Arity\" title = \"en/JavaScript/Reference/Global_Objects/Function/Arity\"><code>arity</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Caller\" title = \"en/JavaScript/Reference/Global_Objects/Function/Caller\"><code>caller</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Function/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Length\" title = \"en/JavaScript/Reference/Global_Objects/Function/Length\"><code>length</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name\" title = \"en/JavaScript/Reference/Global_Objects/Function/Name\"><code>name</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>Date</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date#Methods_2\">Methods of Date instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/now\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/now\">now</a></dt> <dd>Returns the numeric value corresponding to the current time.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/parse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse\">parse</a></dt> <dd>Parses a string representation of a JavaScript date, and returns the number of milliseconds since January 1, 1970, 00:00:00, local time.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/UTC\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/UTC\">UTC</a></dt> <dd>Accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a JavaScript&nbsp;<code>Date</code> object since January 1, 1970, 00:00:00, universal time.</dd>\n</dl>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Apply\" title = \"en/JavaScript/Reference/Global_Objects/Function/Apply\"><code>apply</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Call\" title = \"en/JavaScript/Reference/Global_Objects/Function/Call\"><code>call</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToString\"><code>toString</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"Date_instances\"></span><span id = \"JavaScript.C2.A0Date_instances\"></span><h2 class = \"editable\">JavaScript&nbsp;<code>Date</code> instances</h2>\n<p>  <code>Date</code> instances inherit from <strong><code>Date.prototype</code></strong>  . You can modify the constructor's prototype object to affect properties and methods inherited by JavaScript&nbsp;<code>Date</code> instances. <p>For compatibility with millennium calculations (in other words, to take into account the year 2000), you should always specify the year in full; for example, use 1998, not 98. To assist you in specifying the complete year, JavaScript includes the methods <code><a title = \"en/JavaScript/Reference/Global_Objects/Date/getFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear\">getFullYear</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Date/setFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear\">setFullYear</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\">getUTCFullYear</a></code>, and <code><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\">setUTCFullYear</a></code>.</p>\n\t  <span id = \"Properties\"></span><span id = \"Properties_2\"></span><h3>Properties</h3>  <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/constructor\">constructor</a></dt> <dd>Returns the function that created an instance. This is the  <code>Date</code> constructor by default. </dd> </dl> <div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>   <span id = \"Methods\"></span><span id = \"Methods_2\"></span><h3>Methods</h3>  <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDate\">getDate</a></dt> <dd>Returns the day of the month (1-31) for the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getDay\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDay\">getDay</a></dt> <dd>Returns the day of the week (0-6) for the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear\">getFullYear</a></dt> <dd>Returns the year (4 digits for 4-digit years) of the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getHours\">getHours</a></dt> <dd>Returns the hour (0-23) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMilliseconds\">getMilliseconds</a></dt> <dd>Returns the milliseconds (0-999) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMinutes\">getMinutes</a></dt> <dd>Returns the minutes (0-59) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMonth\">getMonth</a></dt> <dd>Returns the month (0-11) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getSeconds\">getSeconds</a></dt> <dd>Returns the seconds (0-59) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getTime\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime\">getTime</a></dt> <dd>Returns the numeric value of the specified date as the number of milliseconds since January 1, 1970, 00:00:00 UTC (negative for prior times).</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset\">getTimezoneOffset</a></dt> <dd>Returns the time-zone offset in minutes for the current locale.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDate\">getUTCDate</a></dt> <dd>Returns the day (date) of the month (1-31) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDay\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDay\">getUTCDay</a></dt> <dd>Returns the day of the week (0-6) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\">getUTCFullYear</a></dt> <dd>Returns the year (4 digits for 4-digit years) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCHours\">getUTCHours</a></dt> <dd>Returns the hours (0-23) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds\">getUTCMilliseconds</a></dt> <dd>Returns the milliseconds (0-999) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMinutes\">getUTCMinutes</a></dt> <dd>Returns the minutes (0-59) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMonth\">getUTCMonth</a></dt> <dd>Returns the month (0-11) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCSeconds\">getUTCSeconds</a></dt> <dd>Returns the seconds (0-59) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getYear\">getYear</a></dt> <dd>\n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n</dd> <dd>Returns the year (usually 2-3 digits) in the specified date according to local time. Use <a title = \"en/JavaScript/Reference/Global_Objects/Date/getFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear\">getFullYear</a> instead.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setDate\">setDate</a></dt> <dd>Sets the day of the month (1-31) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear\">setFullYear</a></dt> <dd>Sets the full year (4 digits for 4-digit years) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setHours\">setHours</a></dt> <dd>Sets the hours (0-23) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMilliseconds\">setMilliseconds</a></dt> <dd>Sets the milliseconds (0-999) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMinutes\">setMinutes</a></dt> <dd>Sets the minutes (0-59) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMonth\">setMonth</a></dt> <dd>Sets the month (0-11) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setSeconds\">setSeconds</a></dt> <dd>Sets the seconds (0-59) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setTime\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setTime\">setTime</a></dt> <dd>Sets the <code>Date</code> object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC, allowing for negative numbers for times prior.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCDate\">setUTCDate</a></dt> <dd>Sets the day of the month (1-31) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\">setUTCFullYear</a></dt> <dd>Sets the full year (4 digits for 4-digit years) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCHours\">setUTCHours</a></dt> <dd>Sets the hour (0-23) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds\">setUTCMilliseconds</a></dt> <dd>Sets the milliseconds (0-999) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMinutes\">setUTCMinutes</a></dt> <dd>Sets the minutes (0-59) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMonth\">setUTCMonth</a></dt> <dd>Sets the month (0-11) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCSeconds\">setUTCSeconds</a></dt> <dd>Sets the seconds (0-59) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setYear\">setYear</a></dt> <dd>\n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n</dd> <dd>Sets the year (usually 2-3 digits) for a specified date according to local time. Use <a title = \"en/JavaScript/Reference/Global_Objects/Date/setFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear\">setFullYear</a> instead.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toDateString\">toDateString</a></dt> <dd>Returns the &quot;date&quot; portion of the Date as a human-readable string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toISOString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toISOString\">toISOString</a></dt> <dd>Converts a date to a string following the ISO 8601 Extended Format.</dd> <dt><a title = \"en/JavaScript/Reference/Global Objects/Date/toJSON\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toJSON\">toJSON</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n</dt> <dd>Returns a string encapsulating the Date object in JSON&nbsp;format.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toGMTString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toGMTString\">toGMTString</a></dt> <dd>\n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n</dd> <dd>Converts a date to a string, using the Internet GMT conventions. Use <a title = \"en/JavaScript/Reference/Global_Objects/Date/toUTCString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toUTCString\">toUTCString</a> instead.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toLocaleDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleDateString\">toLocaleDateString</a></dt> <dd>Returns the &quot;date&quot; portion of the Date as a string, using the current locale's conventions.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toLocaleFormat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleFormat\">toLocaleFormat</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Converts a date to a string, using a format string.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleString\">toLocaleString</a></dt> <dd>Converts a date to a string, using the current locale's conventions. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toLocaleString\">Object.toLocaleString</a> method.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString\">toLocaleTimeString</a></dt> <dd>Returns the &quot;time&quot; portion of the Date as a string, using the current locale's conventions.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toSource\">toSource</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Returns a string representing the source for an equivalent <code>Date</code> object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toString\">toString</a></dt> <dd>Returns a string representing the specified <code>Date</code> object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toTimeString\">toTimeString</a></dt> <dd>Returns the &quot;time&quot; portion of the Date as a human-readable string.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toUTCString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toUTCString\">toUTCString</a></dt> <dd>Converts a date to a string, using the universal time convention.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/valueOf\">valueOf</a></dt> <dd>Returns the primitive value of a <code>Date</code> object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.prototype.valueOf</a> method.</dd> </dl> \n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_9\"><span id = \"Example:_Several_ways_to_assign_dates\"></span><h3 class = \"editable\">Example: Several ways to assign dates</h3>\n<p>The following examples show several ways to assign JavaScript&nbsp;dates:</p>\n\r\n          <pre name = \"code\" class = \"js\">today = new Date();\nbirthday = new Date(&quot;December 17, 1995 03:24:00&quot;);\nbirthday = new Date(1995,11,17);\nbirthday = new Date(1995,11,17,3,24,0);</pre>\r\n        \n</div><div id = \"section_10\"><span id = \"Example:_Calculating_elapsed_time\"></span><h3 class = \"editable\">Example: Calculating elapsed time</h3>\n<p>The following examples show how to determine the elapsed time between two JavaScript&nbsp;dates:</p>\n\r\n          <pre name = \"code\" class = \"js\">// using static methods\nvar start = Date.now();\n// the event you'd like to time goes here:\ndoSomethingForALongTime();\nvar end = Date.now();\nvar elapsed = end - start; // time in milliseconds</pre>\r\n        \n<pre>// if you have Date objects\nvar start = new Date();\n// the event you'd like to time goes here:\ndoSomethingForALongTime();\nvar end = new Date();\nvar elapsed = end.getTime() - start.getTime(); // time in milliseconds\n</pre>\n\r\n          <pre name = \"code\" class = \"js\">// if you want to test a function and get back its return\nfunction printElapsedTime (fTest) {\n\tvar nStartTime = Date.now(), vReturn = fTest(), nEndTime = Date.now();\n\talert(&quot;Elapsed time: &quot; + String(nEndTime - nStartTime) + &quot; milliseconds&quot;);\n\treturn vReturn;\n}\n\nyourFunctionReturn = printElapsedTime(yourFunction);</pre>\r\n        \n</div><div id = \"section_11\"><span id = \"Example:_ISO_8601_formatted_dates\"></span><h3 class = \"editable\">Example: ISO 8601 formatted dates</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/toISOString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toISOString\"><code>Date.toISOString()</code></a> is now supported, so you can use that.</p>\n<p>The following example demonstrates how to manually format a JavaScript date, in an ISO 8601 format using UTC:</p>\n\r\n          <pre name = \"code\" class = \"js\">/* use a function for the exact format desired... */\nfunction ISODateString(d){\n  function pad(n){return n&lt;10 ? '0'+n : n}\n  return d.getUTCFullYear()+'-'\n      + pad(d.getUTCMonth()+1)+'-'\n      + pad(d.getUTCDate())+'T'\n      + pad(d.getUTCHours())+':'\n      + pad(d.getUTCMinutes())+':'\n      + pad(d.getUTCSeconds())+'Z'\n}\n\nvar d = new Date();\nconsole.log(ISODateString(d)); // prints something like 2009-09-28T19:03:12Z</pre>\r\n        \n<p></p>\n</div></div>",
			"<div id = \"section_9\"><span id = \"Example:_Several_ways_to_assign_dates\"></span><h3 class = \"editable\">Example: Several ways to assign dates</h3>\n<p>The following examples show several ways to assign JavaScript&nbsp;dates:</p>\n\r\n          <pre name = \"code\" class = \"js\">today = new Date();\nbirthday = new Date(&quot;December 17, 1995 03:24:00&quot;);\nbirthday = new Date(1995,11,17);\nbirthday = new Date(1995,11,17,3,24,0);</pre>\r\n        \n</div>",
			"<div id = \"section_10\"><span id = \"Example:_Calculating_elapsed_time\"></span><h3 class = \"editable\">Example: Calculating elapsed time</h3>\n<p>The following examples show how to determine the elapsed time between two JavaScript&nbsp;dates:</p>\n\r\n          <pre name = \"code\" class = \"js\">// using static methods\nvar start = Date.now();\n// the event you'd like to time goes here:\ndoSomethingForALongTime();\nvar end = Date.now();\nvar elapsed = end - start; // time in milliseconds</pre>\r\n        \n<pre>// if you have Date objects\nvar start = new Date();\n// the event you'd like to time goes here:\ndoSomethingForALongTime();\nvar end = new Date();\nvar elapsed = end.getTime() - start.getTime(); // time in milliseconds\n</pre>\n\r\n          <pre name = \"code\" class = \"js\">// if you want to test a function and get back its return\nfunction printElapsedTime (fTest) {\n\tvar nStartTime = Date.now(), vReturn = fTest(), nEndTime = Date.now();\n\talert(&quot;Elapsed time: &quot; + String(nEndTime - nStartTime) + &quot; milliseconds&quot;);\n\treturn vReturn;\n}\n\nyourFunctionReturn = printElapsedTime(yourFunction);</pre>\r\n        \n</div>",
			"<div id = \"section_11\"><span id = \"Example:_ISO_8601_formatted_dates\"></span><h3 class = \"editable\">Example: ISO 8601 formatted dates</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/toISOString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toISOString\"><code>Date.toISOString()</code></a> is now supported, so you can use that.</p>\n<p>The following example demonstrates how to manually format a JavaScript date, in an ISO 8601 format using UTC:</p>\n\r\n          <pre name = \"code\" class = \"js\">/* use a function for the exact format desired... */\nfunction ISODateString(d){\n  function pad(n){return n&lt;10 ? '0'+n : n}\n  return d.getUTCFullYear()+'-'\n      + pad(d.getUTCMonth()+1)+'-'\n      + pad(d.getUTCDate())+'T'\n      + pad(d.getUTCHours())+':'\n      + pad(d.getUTCMinutes())+':'\n      + pad(d.getUTCSeconds())+'Z'\n}\n\nvar d = new Date();\nconsole.log(ISODateString(d)); // prints something like 2009-09-28T19:03:12Z</pre>\r\n        \n<p></p>\n</div>",
			"<div id = \"section_12\"><span id = \"Browser_Compatibility\"></span><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE&nbsp;Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Properties",
			"Methods",
			"JavaScript&nbsp;Date instances",
			"Examples",
			"Example: Several ways to assign dates",
			"Example: Calculating elapsed time",
			"Example: ISO 8601 formatted dates",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean",
		"title": "Boolean",
		"_id": "4eea836ba4c86c4dba000002",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The <code>Boolean</code> object is an object wrapper for a boolean value.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n\r\n          <pre name = \"code\" class = \"js\">new Boolean(value)</pre>\r\n        \n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>value</code></dt> <dd>The initial value of the <code>Boolean</code> object.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The value passed as the first parameter is converted to a boolean value, if necessary. If value is omitted or is 0, -0, null, false, <code>NaN</code>, undefined, or the empty string (&quot;&quot;), the object has an initial value of false. All other values, including any object or the string <code>&quot;false&quot;</code>, create an object with an initial value of true.</p>\n<p>Do not confuse the primitive Boolean values true and false with the true and false values of the Boolean object.</p>\n<p>Any object whose value is not <code>undefined</code> or <code>null</code>, including a Boolean object whose value is false, evaluates to true when passed to a conditional statement. For example, the condition in the following if statement evaluates to true:</p>\n\r\n          <pre name = \"code\" class = \"js\">x = new Boolean(false);\nif (x) {\n  // . . . this code is executed\n}</pre>\r\n        \n<p>This behavior does not apply to Boolean primitives. For example, the condition in the following if statement evaluates to <code>false</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">x = false;\nif (x) {\n  // . . . this code is not executed\n}</pre>\r\n        \n<p>Do not use a <code>Boolean</code> object to convert a non-boolean value to a boolean value. Instead, use Boolean as a function to perform this task:</p>\n\r\n          <pre name = \"code\" class = \"js\">x = Boolean(expression);     // preferred\nx = new Boolean(expression); // don't use</pre>\r\n        \n<p>If you specify any object, including a Boolean object whose value is false, as the initial value of a Boolean object, the new Boolean object has a value of true.</p>\n\r\n          <pre name = \"code\" class = \"js\">myFalse = new Boolean(false);   // initial value of false\ng = new Boolean(myFalse);       // initial value of true\nmyString = new String(&quot;Hello&quot;); // string object\ns = new Boolean(myString);      // initial value of true</pre>\r\n        \n<p>Do not use a Boolean object in place of a Boolean primitive.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>Boolean</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean#Properties_2\">Properties of Boolean instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/prototype\">prototype</a>: Defines a property that is shared by all Boolean objects.</p>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Arity\" title = \"en/JavaScript/Reference/Global_Objects/Function/Arity\"><code>arity</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Caller\" title = \"en/JavaScript/Reference/Global_Objects/Function/Caller\"><code>caller</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Function/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Length\" title = \"en/JavaScript/Reference/Global_Objects/Function/Length\"><code>length</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name\" title = \"en/JavaScript/Reference/Global_Objects/Function/Name\"><code>name</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>Boolean</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean#Methods_2\">Methods of Boolean instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The global <code>Boolean</code> object contains no methods of its own, however, it does inherit some methods through the prototype chain.</p>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Apply\" title = \"en/JavaScript/Reference/Global_Objects/Function/Apply\"><code>apply</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Call\" title = \"en/JavaScript/Reference/Global_Objects/Function/Call\"><code>call</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToString\"><code>toString</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"Boolean_instances\"></span><h2 class = \"editable\"><code>Boolean</code> instances</h2>\n<p>All <code>Boolean</code> instances inherit from <a title = \"en/JavaScript/Reference/Global_Objects/Boolean/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/prototype\"><code>Boolean.prototype</code></a>. As with all constructors, the prototype object dictates instances' inherited properties and methods.</p>\n<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/constructor\"><code>constructor</code></a></dt> <dd>Returns the function that created an instance's prototype. This is the <strong><code>Boolean</code></strong> function by default.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</p>\n</div><div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toSource\">toSource</a></dt> <dd>Returns a string containing the source of the <strong><code>Boolean</code></strong> object; you can use this string to create an equivalent object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toString\"><code>toString</code></a></dt> <dd>Returns a string of either &quot;true&quot; or &quot;false&quot; depending upon the value of the object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a>method.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/valueOf\"><code>valueOf</code></a></dt> <dd>Returns the primitive value of the <strong><code>Boolean</code></strong> object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\"><code>Object.prototype.valueOf</code></a> method.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n<p></p></p>\n</div></div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/constructor\"><code>constructor</code></a></dt> <dd>Returns the function that created an instance's prototype. This is the <strong><code>Boolean</code></strong> function by default.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toSource\">toSource</a></dt> <dd>Returns a string containing the source of the <strong><code>Boolean</code></strong> object; you can use this string to create an equivalent object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toString\"><code>toString</code></a></dt> <dd>Returns a string of either &quot;true&quot; or &quot;false&quot; depending upon the value of the object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a>method.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/valueOf\"><code>valueOf</code></a></dt> <dd>Returns the primitive value of the <strong><code>Boolean</code></strong> object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\"><code>Object.prototype.valueOf</code></a> method.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n<p></p></p>\n</div>",
			"<div id = \"section_10\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_11\"><span id = \"Creating_Boolean_objects_with_an_initial_value_of_false\"></span><h3 class = \"editable\">Creating <code>Boolean</code> objects with an initial value of false</h3>\n\r\n          <pre name = \"code\" class = \"js\">bNoParam = new Boolean();\nbZero = new Boolean(0);\nbNull = new Boolean(null);\nbEmptyString = new Boolean(&quot;&quot;);\nbfalse = new Boolean(false);</pre>\r\n        \n</div><div id = \"section_12\"><span id = \"Creating_Boolean_objects_with_an_initial_value_of_true\"></span><h3 class = \"editable\">Creating <code>Boolean</code> objects with an initial value of true</h3>\n\r\n          <pre name = \"code\" class = \"js\">btrue = new Boolean(true);\nbtrueString = new Boolean(&quot;true&quot;);\nbfalseString = new Boolean(&quot;false&quot;);\nbSuLin = new Boolean(&quot;Su Lin&quot;);</pre>\r\n        \n</div></div>",
			"<div id = \"section_11\"><span id = \"Creating_Boolean_objects_with_an_initial_value_of_false\"></span><h3 class = \"editable\">Creating <code>Boolean</code> objects with an initial value of false</h3>\n\r\n          <pre name = \"code\" class = \"js\">bNoParam = new Boolean();\nbZero = new Boolean(0);\nbNull = new Boolean(null);\nbEmptyString = new Boolean(&quot;&quot;);\nbfalse = new Boolean(false);</pre>\r\n        \n</div>",
			"<div id = \"section_12\"><span id = \"Creating_Boolean_objects_with_an_initial_value_of_true\"></span><h3 class = \"editable\">Creating <code>Boolean</code> objects with an initial value of true</h3>\n\r\n          <pre name = \"code\" class = \"js\">btrue = new Boolean(true);\nbtrueString = new Boolean(&quot;true&quot;);\nbfalseString = new Boolean(&quot;false&quot;);\nbSuLin = new Boolean(&quot;Su Lin&quot;);</pre>\r\n        \n</div>",
			"<div id = \"section_13\"><span id = \"Browser_Compatibility\"></span><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE&nbsp;Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n</div>",
			"<div id = \"section_14\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/prototype\">Boolean.prototype</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Properties",
			"Methods",
			"Boolean instances",
			"Properties",
			"Methods",
			"Examples",
			"Creating Boolean objects with an initial value of false",
			"Creating Boolean objects with an initial value of true",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects",
		"title": "Global Objects",
		"_id": "4eea836ca4c86c4dba000003",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Standard_global_objects_(by_category)\"></span><h2 class = \"editable\">Standard global objects (by category)</h2> <div id = \"section_2\"><span id = \"General-purpose_constructors\"></span><h3 class = \"editable\">General-purpose constructors</h3> <ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">Boolean</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Iterator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Iterator\" class = \"new \">Iterator</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\">Number</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\">RegExp</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\">String</a></li> </ul> </div><div id = \"section_3\"><span id = \"Typed_array_constructors\"></span><h3 class = \"editable\">Typed array constructors</h3> <ul> <li><a title = \"en/JavaScript_typed_arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></li> <li><a title = \"en/JavaScript_typed_arrays/Float32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array\">Float32Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Float64Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array\">Float64Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Int16Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array\">Int16Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Int32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array\">Int32Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Int8Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array\">Int8Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/int16Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array\">Uint16Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Uint32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array\">Uint32Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/int8Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array\">Uint8Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Uint8ClampedArray\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8ClampedArray\" class = \"new \">Uint8ClampedArray</a></li> </ul> </div><div id = \"section_4\"><span id = \"Error_constructors\"></span><h3 class = \"editable\">Error constructors</h3> <ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/EvalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError\">EvalError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/InternalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/InternalError\" class = \"new \">InternalError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError\">ReferenceError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/StopIteration\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/StopIteration\" class = \"new \">StopIteration</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError\">SyntaxError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\">TypeError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/URIError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError\">URIError</a></li> </ul> </div><div id = \"section_5\"><span id = \"Non-constructor_functions\"></span><h3 class = \"editable\">Non-constructor functions</h3> <ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/decodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURI\">decodeURI</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/decodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURIComponent\">decodeURIComponent</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/encodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI\">encodeURI</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/encodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURIComponent\">encodeURIComponent</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/isFinite\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isFinite\">isFinite</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/parseFloat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseFloat\">parseFloat</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/parseInt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseInt\">parseInt</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/uneval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/uneval\" class = \"new \">uneval</a></li> </ul> </div><div id = \"section_6\"><span id = \"Other\"></span><h3 class = \"editable\">Other</h3> <ul> <li><a title = \"en/JavaScript/Reference/Global_Properties/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\">Infinity</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/JSON\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON\">JSON</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Math\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\">Math</a></li> <li><a title = \"en/JavaScript/Reference/Global_Properties/NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN\">NaN</a></li> <li><a title = \"en/JavaScript/Reference/Global_Properties/undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\">undefined</a></li> </ul> </div></div>",
			"<div id = \"section_2\"><span id = \"General-purpose_constructors\"></span><h3 class = \"editable\">General-purpose constructors</h3> <ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">Boolean</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Iterator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Iterator\" class = \"new \">Iterator</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\">Number</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\">RegExp</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\">String</a></li> </ul> </div>",
			"<div id = \"section_3\"><span id = \"Typed_array_constructors\"></span><h3 class = \"editable\">Typed array constructors</h3> <ul> <li><a title = \"en/JavaScript_typed_arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></li> <li><a title = \"en/JavaScript_typed_arrays/Float32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array\">Float32Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Float64Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array\">Float64Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Int16Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array\">Int16Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Int32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array\">Int32Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Int8Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array\">Int8Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/int16Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array\">Uint16Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Uint32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array\">Uint32Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/int8Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array\">Uint8Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Uint8ClampedArray\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8ClampedArray\" class = \"new \">Uint8ClampedArray</a></li> </ul> </div>",
			"<div id = \"section_4\"><span id = \"Error_constructors\"></span><h3 class = \"editable\">Error constructors</h3> <ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/EvalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError\">EvalError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/InternalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/InternalError\" class = \"new \">InternalError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError\">ReferenceError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/StopIteration\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/StopIteration\" class = \"new \">StopIteration</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError\">SyntaxError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\">TypeError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/URIError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError\">URIError</a></li> </ul> </div>",
			"<div id = \"section_5\"><span id = \"Non-constructor_functions\"></span><h3 class = \"editable\">Non-constructor functions</h3> <ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/decodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURI\">decodeURI</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/decodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURIComponent\">decodeURIComponent</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/encodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI\">encodeURI</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/encodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURIComponent\">encodeURIComponent</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/isFinite\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isFinite\">isFinite</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/parseFloat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseFloat\">parseFloat</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/parseInt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseInt\">parseInt</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/uneval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/uneval\" class = \"new \">uneval</a></li> </ul> </div>",
			"<div id = \"section_6\"><span id = \"Other\"></span><h3 class = \"editable\">Other</h3> <ul> <li><a title = \"en/JavaScript/Reference/Global_Properties/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\">Infinity</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/JSON\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON\">JSON</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Math\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\">Math</a></li> <li><a title = \"en/JavaScript/Reference/Global_Properties/NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN\">NaN</a></li> <li><a title = \"en/JavaScript/Reference/Global_Properties/undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\">undefined</a></li> </ul> </div>",
			"<div id = \"section_7\"><span id = \"Standard_global_objects_(alphabetically)\"></span><h2 class = \"editable\">Standard global objects (alphabetically)</h2> <ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">Boolean</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/decodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURI\">decodeURI</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/decodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURIComponent\">decodeURIComponent</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/encodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI\">encodeURI</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/encodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURIComponent\">encodeURIComponent</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/EvalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError\">EvalError</a></li> <li><a title = \"en/JavaScript_typed_arrays/Float32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array\">Float32Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Float64Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array\">Float64Array</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></li> <li><a title = \"en/JavaScript/Reference/Global_Properties/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\">Infinity</a></li> <li><a title = \"en/JavaScript_typed_arrays/Int16Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array\">Int16Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Int32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array\">Int32Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Int8Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array\">Int8Array</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/isFinite\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isFinite\">isFinite</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Iterator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Iterator\" class = \"new \">Iterator</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/JSON\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON\">JSON</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Math\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\">Math</a></li> <li><a title = \"en/JavaScript/Reference/Global_Properties/NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN\">NaN</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\">Number</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/parseFloat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseFloat\">parseFloat</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/parseInt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseInt\">parseInt</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError\">ReferenceError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\">RegExp</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/StopIteration\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/StopIteration\" class = \"new \">StopIteration</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\">String</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError\">SyntaxError</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\">TypeError</a></li> <li><a title = \"en/JavaScript_typed_arrays/Uint16Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array\">Uint16Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Uint32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array\">Uint32Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Uint8Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array\">Uint8Array</a></li> <li><a title = \"en/JavaScript_typed_arrays/Uint8ClampedArray\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8ClampedArray\" class = \"new \">Uint8ClampedArray</a></li> <li><a title = \"en/JavaScript/Reference/Global_Properties/undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\">undefined</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/uneval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/uneval\" class = \"new \">uneval</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/URIError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError\">URIError</a></li> </ul> <p>Other objects in the global scope are either <a title = \"en/Core_JavaScript_1.5_Guide/Working_with_Objects#Creating_New_Objects\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Working_with_Objects#Creating_New_Objects\">created by the user script</a> or provided by the host application. The host objects available in <a title = \"en/Gecko\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Gecko\">Gecko</a>-based browsers are documented in the <a title = \"en/Gecko_DOM_Reference\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Gecko_DOM_Reference\">Gecko DOM Reference</a>.</p> <p>For more information about the distinction between the <a title = \"en/DOM\" rel = \"internal\" href = \"https://developer.mozilla.org/en/DOM\">DOM</a> and core <a title = \"en/JavaScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript\">JavaScript</a>, see <a title = \"en/The_DOM_and_JavaScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_technologies_overview\">The DOM and JavaScript</a> article.</p>\n\n<p></p></div>"
		],
		"sectionNames": [
			"Standard global objects (by category)",
			"General-purpose constructors",
			"Typed array constructors",
			"Error constructors",
			"Non-constructor functions",
			"Other",
			"Standard global objects (alphabetically)"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array",
		"title": "Array",
		"_id": "4eea836da4c86c4dba000004",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The JavaScript&nbsp;<code>Array</code> global object is a constructor for arrays, which are high-level, list-like objects.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<div style = \"width: auto;\"> \r\n          <pre name = \"code\" class = \"js\">[element0, element1, ..., elementN]\nnew Array(element0, element1, ..., elementN)\nnew Array(arrayLength)</pre>\r\n        \n</div>\n<dl> <dt><code><var>element0</var>, <var>element1</var>, ..., <var>elementN</var> </code></dt> <dd>A JavaScript array is initialized with the given elements, except in the case where a single argument is passed to the&nbsp;<code>Array</code> constructor and that argument is a number. (See below.) Note that this special case only applies to JavaScript arrays created with the&nbsp;<code>Array</code> constructor, not with array literals created with the bracket syntax.</dd> <dt><code><var>arrayLength</var></code></dt> <dd>If the first argument passed to the&nbsp;<code>Array</code> constructor is an integer between 0 and 2<sup>32</sup>-1 (inclusive), a new JavaScript array is created with that number of elements. If the argument is any other number, a <code><a title = \"en/JavaScript/Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a></code> exception is thrown.</dd>\n</dl>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>Arrays are list-like objects that come with a several built-in methods to perform traversal and mutation operations. Neither the size of a JavaScript array nor the types of its elements are fixed.&nbsp; Since an array's size can grow or shrink at any time, JavaScript arrays are not guaranteed to be dense.&nbsp; In general, these are convenient characteristics, but if these are desirable things to have for your use case, you might consider using WebGL typed arrays.</p>\n<p>Note that <a class = \"external\" rel = \"external\" href = \"http://www.andrewdupont.net/2006/05/18/javascript-associative-arrays-considered-harmful/\" title = \"http://www.andrewdupont.net/2006/05/18/javascript-associative-arrays-considered-harmful/\" target = \"_blank\">you shouldn't use an array as an associative array</a>. You can use plain <a title = \"en/JavaScript/Reference/Global Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">objects</a> instead, although doing so comes with its own caveats. See the post <a class = \"external\" title = \"http://monogatari.doukut.su/2010/12/lightweight-javascript-dictionaries.html\" rel = \"external\" href = \"http://monogatari.doukut.su/2010/12/lightweight-javascript-dictionaries.html\" target = \"_blank\">Lightweight JavaScript dictionaries with arbitrary keys</a> as an example.</p>\n<div id = \"section_4\"><span id = \"Accessing_array_elements\"></span><h3 class = \"editable\">Accessing array elements</h3>\n<p>JavaScript arrays are zero-indexed; the first element of an array is actually at index <code>0</code>, and the last element is at the index one less than the value of the array's <a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\"><code>length</code></a> property.</p>\n\r\n          <pre name = \"code\" class = \"js\">var arr = [&quot;this is the first element&quot;, &quot;this is the second element&quot;];\nconsole.log(arr[0]);              // prints &quot;this is the first element&quot;\nconsole.log(arr[1]);              // prints &quot;this is the second element&quot;\nconsole.log(arr[arr.length - 1]); // prints &quot;this is the second element&quot;</pre>\r\n        \n<p>Array elements are just object properties, in the way that <code><a title = \"en/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/toString\">toString</a></code> is a property. However, note that trying to access the first element of an array as follows will throw a syntax error:</p>\n\r\n          <pre name = \"code\" class = \"js\">console.log(arr.0);</pre>\r\n        \n<p>Note that there is nothing unique about JavaScript arrays and their properties that causes this. JavaScript properties that begin with a digit cannot be referenced with the dot notation.&nbsp; They must be accessed using bracket notation.&nbsp; For example, if you had an object with a property &quot;3d&quot;, it would not be possible to access it using dot notation, either. It, too, would have to be referenced using bracket notation.&nbsp; This similarity is exhibited in the following two code samples:</p>\n\r\n          <pre name = \"code\" class = \"js\">var years = [1950, 1960, 1970, 1980, 1990, 2000, 2010];\ntry {\n  console.log(years.0);\n}\ncatch (ex) {\n  console.log(&quot;Using bracket notation&quot;);\n  console.log(years[0]);\n}</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">try {\n  renderer.3d.setTexture(model, &quot;character.png&quot;);\n}\ncatch (ex) {\n  console.log(&quot;Using bracket notation&quot;);\n  renderer[&quot;3d&quot;].setTexture(model, &quot;character.png&quot;);\n}</pre>\r\n        \n<p>Note that in the <code>3d</code> example, &quot;<code>3d</code>&quot; had to be quoted.&nbsp; It's possible to quote the JavaScript array indexes as well (e.g., <code>years[&quot;2&quot;]</code> instead of <code>years[2]</code>), though it's not necessary.&nbsp; The 2 in <code>years[2]</code> eventually gets coerced into a string by the JavaScript engine anyway, through an implicit <code>toString</code> conversion.&nbsp; It is for this reason that &quot;2&quot; and &quot;02&quot; would refer to two different slots on the <code>years</code> object and the following example logs <code>true</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">console.log(years[&quot;2&quot;] != years[&quot;02&quot;]);</pre>\r\n        \n</div><div id = \"section_5\"><span id = \"Relationship_between_length_and_numerical_properties\"></span><h3 class = \"editable\">Relationship between <code>length</code> and numerical properties</h3>\n<p>A JavaScript array's <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\">length</a></code> property and numerical properties are connected.&nbsp; Several of the built-in array methods (e.g., <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice\">slice</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a></code>, etc.) take into account the value of an array's <code>length</code> property when they're called.&nbsp; Other methods (e.g., <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/splice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice\">splice</a></code>, etc.) also result in updates to an array's <code>length</code> property.</p>\n\r\n          <pre name = \"code\" class = \"js\">var fruits = [];\nfruits.push(&quot;banana&quot;, &quot;apple&quot;, &quot;peach&quot;);\n\nconsole.log(fruits.length); // logs 3</pre>\r\n        \n<p>When setting a property on a JavaScript array when the property is a valid array index and that index is outside the current bounds of the array, the array will grow to a size large enough to accommodate an element at that index, and the engine will update the array's <code>length</code> property accordingly:</p>\n\r\n          <pre name = \"code\" class = \"js\">fruits[3] = &quot;mango&quot;;\nconsole.log(fruits[3]);\nconsole.log(fruits.length); // logs 4</pre>\r\n        \n<p>Setting the <code>length</code> property directly also results in special behavior.</p>\n\r\n          <pre name = \"code\" class = \"js\">fruits.length = 10;\nconsole.log(fruits);        // The array gets padded with undefined\nconsole.log(fruits.length); // 10</pre>\r\n        \n<p>This is explained further on the <a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\"><code>length</code></a> page.</p>\n</div><div id = \"section_6\"><span id = \"Creating_an_array_using_the_result_of_a_match\"></span><h3 class = \"editable\">Creating an array using the result of a match</h3>\n<p>The result of a match between a regular expression and a string can create a JavaScript array. This array has properties and elements that provide information about the match. An array is the return value of RegExp.exec, String.match, and String.replace. To help explain these properties and elements, look at the following example and then refer to the table below:</p>\n\r\n          <pre name = \"code\" class = \"js\">// Match one d followed by one or more b's followed by one d\n// Remember matched b's and the following d\n// Ignore case\n\nvar myRe = /d(b+)(d)/i;\nvar myArray = myRe.exec(&quot;cdbBdbsbz&quot;);</pre>\r\n        \n<p>The properties and elements returned from this match are as follows:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\">Property/Element</td> <td class = \"header\">Description</td> <td class = \"header\">Example</td> </tr> <tr> <td><code>input</code></td> <td>A read-only property that reflects the original string against which the regular expression was matched.</td> <td>cdbBdbsbz</td> </tr> <tr> <td><code>index</code></td> <td>A read-only property that is the zero-based index of the match in the string.</td> <td>1</td> </tr> <tr> <td><code>[0]</code></td> <td>A read-only element that specifies the last matched characters.</td> <td>dbBd</td> </tr> <tr> <td><code>[1], ...[n]</code></td> <td>Read-only elements that specify the parenthesized substring matches, if included in the regular expression. The number of possible parenthesized substrings is unlimited.</td> <td>[1]: bB<br/> [2]: d</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_4\"><span id = \"Accessing_array_elements\"></span><h3 class = \"editable\">Accessing array elements</h3>\n<p>JavaScript arrays are zero-indexed; the first element of an array is actually at index <code>0</code>, and the last element is at the index one less than the value of the array's <a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\"><code>length</code></a> property.</p>\n\r\n          <pre name = \"code\" class = \"js\">var arr = [&quot;this is the first element&quot;, &quot;this is the second element&quot;];\nconsole.log(arr[0]);              // prints &quot;this is the first element&quot;\nconsole.log(arr[1]);              // prints &quot;this is the second element&quot;\nconsole.log(arr[arr.length - 1]); // prints &quot;this is the second element&quot;</pre>\r\n        \n<p>Array elements are just object properties, in the way that <code><a title = \"en/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/toString\">toString</a></code> is a property. However, note that trying to access the first element of an array as follows will throw a syntax error:</p>\n\r\n          <pre name = \"code\" class = \"js\">console.log(arr.0);</pre>\r\n        \n<p>Note that there is nothing unique about JavaScript arrays and their properties that causes this. JavaScript properties that begin with a digit cannot be referenced with the dot notation.&nbsp; They must be accessed using bracket notation.&nbsp; For example, if you had an object with a property &quot;3d&quot;, it would not be possible to access it using dot notation, either. It, too, would have to be referenced using bracket notation.&nbsp; This similarity is exhibited in the following two code samples:</p>\n\r\n          <pre name = \"code\" class = \"js\">var years = [1950, 1960, 1970, 1980, 1990, 2000, 2010];\ntry {\n  console.log(years.0);\n}\ncatch (ex) {\n  console.log(&quot;Using bracket notation&quot;);\n  console.log(years[0]);\n}</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">try {\n  renderer.3d.setTexture(model, &quot;character.png&quot;);\n}\ncatch (ex) {\n  console.log(&quot;Using bracket notation&quot;);\n  renderer[&quot;3d&quot;].setTexture(model, &quot;character.png&quot;);\n}</pre>\r\n        \n<p>Note that in the <code>3d</code> example, &quot;<code>3d</code>&quot; had to be quoted.&nbsp; It's possible to quote the JavaScript array indexes as well (e.g., <code>years[&quot;2&quot;]</code> instead of <code>years[2]</code>), though it's not necessary.&nbsp; The 2 in <code>years[2]</code> eventually gets coerced into a string by the JavaScript engine anyway, through an implicit <code>toString</code> conversion.&nbsp; It is for this reason that &quot;2&quot; and &quot;02&quot; would refer to two different slots on the <code>years</code> object and the following example logs <code>true</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">console.log(years[&quot;2&quot;] != years[&quot;02&quot;]);</pre>\r\n        \n</div>",
			"<div id = \"section_5\"><span id = \"Relationship_between_length_and_numerical_properties\"></span><h3 class = \"editable\">Relationship between <code>length</code> and numerical properties</h3>\n<p>A JavaScript array's <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\">length</a></code> property and numerical properties are connected.&nbsp; Several of the built-in array methods (e.g., <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice\">slice</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a></code>, etc.) take into account the value of an array's <code>length</code> property when they're called.&nbsp; Other methods (e.g., <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/splice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice\">splice</a></code>, etc.) also result in updates to an array's <code>length</code> property.</p>\n\r\n          <pre name = \"code\" class = \"js\">var fruits = [];\nfruits.push(&quot;banana&quot;, &quot;apple&quot;, &quot;peach&quot;);\n\nconsole.log(fruits.length); // logs 3</pre>\r\n        \n<p>When setting a property on a JavaScript array when the property is a valid array index and that index is outside the current bounds of the array, the array will grow to a size large enough to accommodate an element at that index, and the engine will update the array's <code>length</code> property accordingly:</p>\n\r\n          <pre name = \"code\" class = \"js\">fruits[3] = &quot;mango&quot;;\nconsole.log(fruits[3]);\nconsole.log(fruits.length); // logs 4</pre>\r\n        \n<p>Setting the <code>length</code> property directly also results in special behavior.</p>\n\r\n          <pre name = \"code\" class = \"js\">fruits.length = 10;\nconsole.log(fruits);        // The array gets padded with undefined\nconsole.log(fruits.length); // 10</pre>\r\n        \n<p>This is explained further on the <a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\"><code>length</code></a> page.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Creating_an_array_using_the_result_of_a_match\"></span><h3 class = \"editable\">Creating an array using the result of a match</h3>\n<p>The result of a match between a regular expression and a string can create a JavaScript array. This array has properties and elements that provide information about the match. An array is the return value of RegExp.exec, String.match, and String.replace. To help explain these properties and elements, look at the following example and then refer to the table below:</p>\n\r\n          <pre name = \"code\" class = \"js\">// Match one d followed by one or more b's followed by one d\n// Remember matched b's and the following d\n// Ignore case\n\nvar myRe = /d(b+)(d)/i;\nvar myArray = myRe.exec(&quot;cdbBdbsbz&quot;);</pre>\r\n        \n<p>The properties and elements returned from this match are as follows:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\">Property/Element</td> <td class = \"header\">Description</td> <td class = \"header\">Example</td> </tr> <tr> <td><code>input</code></td> <td>A read-only property that reflects the original string against which the regular expression was matched.</td> <td>cdbBdbsbz</td> </tr> <tr> <td><code>index</code></td> <td>A read-only property that is the zero-based index of the match in the string.</td> <td>1</td> </tr> <tr> <td><code>[0]</code></td> <td>A read-only element that specifies the last matched characters.</td> <td>dbBd</td> </tr> <tr> <td><code>[1], ...[n]</code></td> <td>Read-only elements that specify the parenthesized substring matches, if included in the regular expression. The number of possible parenthesized substrings is unlimited.</td> <td>[1]: bB<br/> [2]: d</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_7\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>Array</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array#Properties_2\">Properties of Array instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dd> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/prototype\">prototype</a></dt> <dd>Allows the addition of properties to all objects.</dd> </dl> </dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Arity\" title = \"en/JavaScript/Reference/Global_Objects/Function/Arity\"><code>arity</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Caller\" title = \"en/JavaScript/Reference/Global_Objects/Function/Caller\"><code>caller</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Function/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Length\" title = \"en/JavaScript/Reference/Global_Objects/Function/Length\"><code>length</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name\" title = \"en/JavaScript/Reference/Global_Objects/Function/Name\"><code>name</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_8\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>Array</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array#Methods_2\">Methods of Array instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global Objects/Array/isArray\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray\">isArray</a></dt> <dd> <p>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Return true if a variable is an array, if not false.</p> </dd>\n</dl>\n</div>",
			"<div id = \"section_9\"><span id = \"Array_instances\"></span><h2 class = \"editable\"><code>Array</code> instances</h2>\n<p><code>Array</code>&nbsp;instances inherit from<span style = \"font-family: monospace;\"> <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/prototype\">Array.prototype</a></span>. As with all constructors, you can change the constructor's prototype object to make changes to all JavaScript&nbsp;<code>Array</code> instances.</p>\n<div id = \"section_10\"><span id = \"Properties_2\"></span><h3 class = \"editable\"><span>Properties</span></h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/constructor\">constructor</a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\">length</a></dt> <dd>Reflects the number of elements in an array.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToString\"><code>toString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div></p>\n</div><div id = \"section_11\"><span id = \"Methods_2\"></span><h3 class = \"editable\"><span>Methods</span></h3>\n<div id = \"section_12\"><span id = \"Mutator_methods\"></span><h4 class = \"editable\"><span>Mutator methods</span></h4>\n<p>\n<p>These methods modify the array:</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></dt> <dd>Removes the last element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></dt> <dd>Adds one or more elements to the end of an array and returns the new length of the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></dt> <dd>Reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a></dt> <dd>Removes the first element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/sort\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort\">sort</a></dt> <dd>Sorts the elements of an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/splice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice\">splice</a></dt> <dd>Adds and/or removes elements from an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></dt> <dd>Adds one or more elements to the front of an array and returns the new length of the array.</dd>\n</dl>\n</p>\n</div><div id = \"section_13\"><span id = \"Accessor_methods\"></span><h4 class = \"editable\"><span>Accessor methods</span></h4>\n<p>\n<p></p>\n<p>These methods do not modify the array and return some representation of the array.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat\">concat</a></dt> <dd>Returns a new array comprised of this array joined with other array(s) and/or value(s).</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></dt> <dd>Joins all elements of an array into a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice\">slice</a></dt> <dd>Extracts a section of an array and returns a new array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a> <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dt> <dd>Returns an array literal representing the specified array; you can use this value to create a new array. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString\">toString</a></dt> <dd>Returns a string representing the array and its elements. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\">lastIndexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.</dd>\n</dl>\n</p>\n</div><div id = \"section_14\"><span id = \"Iteration_methods\"></span><h4 class = \"editable\"><span>Iteration methods</span></h4>\n<p>\n<p>Several methods take as arguments functions to be called back while processing the array. When these methods are called, the <code>length</code> of the array is sampled, and any element added beyond this length from within the callback is not visited. Other changes to the array (setting the value of or deleting an element) may affect the results of the operation if the method visits the changed element afterwards. While the specific behavior of these methods in such cases is well-defined, you should not rely upon it so as not to confuse others who might read your code. If you must mutate the array, copy into a new array instead.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/filter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with all of the elements of this array for which the provided filtering function returns true.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/forEach\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach\">forEach</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Calls a function for each element in the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/every\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every\">every</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if every element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/map\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map\">map</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with the results of calling a provided function on every element in this array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/some\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some\">some</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if at least one element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduce\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/Reduce\">reduce</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduceRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/ReduceRight\">reduceRight</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.</dd>\n</dl>\n</p>\n</div></div></div>",
			"<div id = \"section_10\"><span id = \"Properties_2\"></span><h3 class = \"editable\"><span>Properties</span></h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/constructor\">constructor</a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\">length</a></dt> <dd>Reflects the number of elements in an array.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToString\"><code>toString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div></p>\n</div>",
			"<div id = \"section_11\"><span id = \"Methods_2\"></span><h3 class = \"editable\"><span>Methods</span></h3>\n<div id = \"section_12\"><span id = \"Mutator_methods\"></span><h4 class = \"editable\"><span>Mutator methods</span></h4>\n<p>\n<p>These methods modify the array:</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></dt> <dd>Removes the last element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></dt> <dd>Adds one or more elements to the end of an array and returns the new length of the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></dt> <dd>Reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a></dt> <dd>Removes the first element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/sort\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort\">sort</a></dt> <dd>Sorts the elements of an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/splice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice\">splice</a></dt> <dd>Adds and/or removes elements from an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></dt> <dd>Adds one or more elements to the front of an array and returns the new length of the array.</dd>\n</dl>\n</p>\n</div><div id = \"section_13\"><span id = \"Accessor_methods\"></span><h4 class = \"editable\"><span>Accessor methods</span></h4>\n<p>\n<p></p>\n<p>These methods do not modify the array and return some representation of the array.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat\">concat</a></dt> <dd>Returns a new array comprised of this array joined with other array(s) and/or value(s).</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></dt> <dd>Joins all elements of an array into a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice\">slice</a></dt> <dd>Extracts a section of an array and returns a new array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a> <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dt> <dd>Returns an array literal representing the specified array; you can use this value to create a new array. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString\">toString</a></dt> <dd>Returns a string representing the array and its elements. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\">lastIndexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.</dd>\n</dl>\n</p>\n</div><div id = \"section_14\"><span id = \"Iteration_methods\"></span><h4 class = \"editable\"><span>Iteration methods</span></h4>\n<p>\n<p>Several methods take as arguments functions to be called back while processing the array. When these methods are called, the <code>length</code> of the array is sampled, and any element added beyond this length from within the callback is not visited. Other changes to the array (setting the value of or deleting an element) may affect the results of the operation if the method visits the changed element afterwards. While the specific behavior of these methods in such cases is well-defined, you should not rely upon it so as not to confuse others who might read your code. If you must mutate the array, copy into a new array instead.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/filter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with all of the elements of this array for which the provided filtering function returns true.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/forEach\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach\">forEach</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Calls a function for each element in the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/every\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every\">every</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if every element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/map\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map\">map</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with the results of calling a provided function on every element in this array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/some\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some\">some</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if at least one element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduce\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/Reduce\">reduce</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduceRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/ReduceRight\">reduceRight</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.</dd>\n</dl>\n</p>\n</div></div>",
			"<div id = \"section_12\"><span id = \"Mutator_methods\"></span><h4 class = \"editable\"><span>Mutator methods</span></h4>\n<p>\n<p>These methods modify the array:</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></dt> <dd>Removes the last element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></dt> <dd>Adds one or more elements to the end of an array and returns the new length of the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></dt> <dd>Reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a></dt> <dd>Removes the first element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/sort\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort\">sort</a></dt> <dd>Sorts the elements of an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/splice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice\">splice</a></dt> <dd>Adds and/or removes elements from an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></dt> <dd>Adds one or more elements to the front of an array and returns the new length of the array.</dd>\n</dl>\n</p>\n</div>",
			"<div id = \"section_13\"><span id = \"Accessor_methods\"></span><h4 class = \"editable\"><span>Accessor methods</span></h4>\n<p>\n<p></p>\n<p>These methods do not modify the array and return some representation of the array.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat\">concat</a></dt> <dd>Returns a new array comprised of this array joined with other array(s) and/or value(s).</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></dt> <dd>Joins all elements of an array into a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice\">slice</a></dt> <dd>Extracts a section of an array and returns a new array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a> <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dt> <dd>Returns an array literal representing the specified array; you can use this value to create a new array. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString\">toString</a></dt> <dd>Returns a string representing the array and its elements. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\">lastIndexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.</dd>\n</dl>\n</p>\n</div>",
			"<div id = \"section_14\"><span id = \"Iteration_methods\"></span><h4 class = \"editable\"><span>Iteration methods</span></h4>\n<p>\n<p>Several methods take as arguments functions to be called back while processing the array. When these methods are called, the <code>length</code> of the array is sampled, and any element added beyond this length from within the callback is not visited. Other changes to the array (setting the value of or deleting an element) may affect the results of the operation if the method visits the changed element afterwards. While the specific behavior of these methods in such cases is well-defined, you should not rely upon it so as not to confuse others who might read your code. If you must mutate the array, copy into a new array instead.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/filter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with all of the elements of this array for which the provided filtering function returns true.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/forEach\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach\">forEach</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Calls a function for each element in the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/every\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every\">every</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if every element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/map\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map\">map</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with the results of calling a provided function on every element in this array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/some\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some\">some</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if at least one element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduce\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/Reduce\">reduce</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduceRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/ReduceRight\">reduceRight</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.</dd>\n</dl>\n</p>\n</div>",
			"<div id = \"section_15\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_16\"><span id = \"Example:_Creating_an_Array\"></span><h3 class = \"editable\">Example: Creating an Array</h3>\n<p>The following example creates an array, <code>msgArray</code>, with a length of 0, then assigns values to <code>msgArray[0]</code> and <code>msgArray[99]</code>, changing the length of the array to 100.</p>\n\r\n          <pre name = \"code\" class = \"js\">var msgArray = new Array();\nmsgArray[0] = &quot;Hello&quot;;\nmsgArray[99] = &quot;world&quot;;\n\nif (msgArray.length == 100)\n   print(&quot;The length is 100.&quot;);</pre>\r\n        \n</div><div id = \"section_17\"><span id = \"Example:_Creating_a_Two-dimensional_Array\"></span><h3 class = \"editable\">Example: Creating a Two-dimensional Array</h3>\n<p>The following creates chess board as a two dimensional array of strings. The first move is made by copying the 'P' in 6,4 to 4,4. The position 4,4 is left blank.</p>\n\r\n          <pre name = \"code\" class = \"js\">var board = \n[ ['R','N','B','Q','K','B','N','R'],\n  ['P','P','P','P','P','P','P','P'],\n  [' ',' ',' ',' ',' ',' ',' ',' '],\n  [' ',' ',' ',' ',' ',' ',' ',' '],\n  [' ',' ',' ',' ',' ',' ',' ',' '],\n  [' ',' ',' ',' ',' ',' ',' ',' '],\n  ['p','p','p','p','p','p','p','p'],\n  ['r','n','b','q','k','b','n','r']];\nprint(board.join('\\n') + '\\n\\n');\n\n// Move King's Pawn forward 2\nboard[4][4] = board[6][4];\nboard[6][4] = ' ';\nprint(board.join('\\n'));</pre>\r\n        \n<p>Here is the output:</p>\n<pre class = \"eval\">R,N,B,Q,K,B,N,R\nP,P,P,P,P,P,P,P\n , , , , , , , \n , , , , , , , \n , , , , , , , \n , , , , , , , \np,p,p,p,p,p,p,p\nr,n,b,q,k,b,n,r\n\nR,N,B,Q,K,B,N,R\nP,P,P,P,P,P,P,P\n , , , , , , , \n , , , , , , , \n , , , ,p, , , \n , , , , , , , \np,p,p,p, ,p,p,p\nr,n,b,q,k,b,n,r\n</pre>\n</div></div>",
			"<div id = \"section_16\"><span id = \"Example:_Creating_an_Array\"></span><h3 class = \"editable\">Example: Creating an Array</h3>\n<p>The following example creates an array, <code>msgArray</code>, with a length of 0, then assigns values to <code>msgArray[0]</code> and <code>msgArray[99]</code>, changing the length of the array to 100.</p>\n\r\n          <pre name = \"code\" class = \"js\">var msgArray = new Array();\nmsgArray[0] = &quot;Hello&quot;;\nmsgArray[99] = &quot;world&quot;;\n\nif (msgArray.length == 100)\n   print(&quot;The length is 100.&quot;);</pre>\r\n        \n</div>",
			"<div id = \"section_17\"><span id = \"Example:_Creating_a_Two-dimensional_Array\"></span><h3 class = \"editable\">Example: Creating a Two-dimensional Array</h3>\n<p>The following creates chess board as a two dimensional array of strings. The first move is made by copying the 'P' in 6,4 to 4,4. The position 4,4 is left blank.</p>\n\r\n          <pre name = \"code\" class = \"js\">var board = \n[ ['R','N','B','Q','K','B','N','R'],\n  ['P','P','P','P','P','P','P','P'],\n  [' ',' ',' ',' ',' ',' ',' ',' '],\n  [' ',' ',' ',' ',' ',' ',' ',' '],\n  [' ',' ',' ',' ',' ',' ',' ',' '],\n  [' ',' ',' ',' ',' ',' ',' ',' '],\n  ['p','p','p','p','p','p','p','p'],\n  ['r','n','b','q','k','b','n','r']];\nprint(board.join('\\n') + '\\n\\n');\n\n// Move King's Pawn forward 2\nboard[4][4] = board[6][4];\nboard[6][4] = ' ';\nprint(board.join('\\n'));</pre>\r\n        \n<p>Here is the output:</p>\n<pre class = \"eval\">R,N,B,Q,K,B,N,R\nP,P,P,P,P,P,P,P\n , , , , , , , \n , , , , , , , \n , , , , , , , \n , , , , , , , \np,p,p,p,p,p,p,p\nr,n,b,q,k,b,n,r\n\nR,N,B,Q,K,B,N,R\nP,P,P,P,P,P,P,P\n , , , , , , , \n , , , , , , , \n , , , ,p, , , \n , , , , , , , \np,p,p,p, ,p,p,p\nr,n,b,q,k,b,n,r\n</pre>\n</div>",
			"<div id = \"section_18\"><span id = \"Browser_Compatibility\"></span><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE&nbsp;Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n</div>",
			"<div id = \"section_19\"><span id = \"See_Also\"></span><h2 class = \"editable\">See Also</h2>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Guide/Working_with_Objects#Indexing_Object_Properties\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Working_with_Objects#Indexing_Object_Properties\">Indexing Object Properties in Core JavaScript 1.5 Guide:Working with Object</a></li> <li><a title = \"en/New_in_JavaScript_1.7#Array_comprehensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.7#Array_comprehensions\">New in JavaScript 1.7: Array comprehensions</a></li> <li><a title = \"en/New_in_JavaScript_1.6#Array_extras\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6#Array_extras\">New in JavaScript 1.6: Array extras</a></li> <li><a title = \"en/JavaScript_typed_arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">Draft: Typed Arrays</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Accessing array elements",
			"Relationship between length and numerical properties",
			"Creating an array using the result of a match",
			"Properties",
			"Methods",
			"Array instances",
			"Properties",
			"Methods",
			"Mutator methods",
			"Accessor methods",
			"Iteration methods",
			"Examples",
			"Example: Creating an Array",
			"Example: Creating a Two-dimensional Array",
			"Browser compatibility",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function",
		"title": "Function",
		"_id": "4eea836da4c86c4dba000005",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Every function in JavaScript is actually a <code>Function</code> object.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>new Function ([<em>arg1</em>[, <em>arg2</em>[, ... <em>argN</em>]],] <em>functionBody</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>arg1, arg2, ... arg<em>N</em></code></dt> <dd>Names to be used by the function as formal argument names. Each must be a string that corresponds to a valid JavaScript identifier or a list of such strings separated with a comma; for example &quot;<code>x</code>&quot;, &quot;<code>theValue</code>&quot;, or &quot;<code>a,b</code>&quot;.</dd>\n</dl>\n<dl> <dt><code>functionBody</code></dt> <dd>A string containing the JavaScript statements comprising the function definition.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>Function</code> objects created with the <code>Function</code> constructor are parsed when the function is created. This is less efficient than declaring a function and calling it within your code, because functions declared with the function statement are parsed with the rest of the code.</p>\n<p>All arguments passed to the function are treated as the names of the identifiers of the parameters in the function to be created, in the order in which they are passed.</p>\n<p>Invoking the <code>Function</code> constructor as a function (without using the <code>new</code> operator) has the same effect as invoking it as a constructor.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>Function</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function#Properties_2\">Properties of Function instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">prototype</a></dt> <dd>Allows the extension of all <code>Function</code> objects.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <strong><code>Function</code></strong></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Arity\" title = \"en/JavaScript/Reference/Global_Objects/Function/Arity\"><code>arity</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Caller\" title = \"en/JavaScript/Reference/Global_Objects/Function/Caller\"><code>caller</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Function/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Length\" title = \"en/JavaScript/Reference/Global_Objects/Function/Length\"><code>length</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name\" title = \"en/JavaScript/Reference/Global_Objects/Function/Name\"><code>name</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>Function</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function#Methods_2\">Methods of Function instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>Although the <code>Function</code> object does not provide any methods of its own, it does inherit methods through the prototype chain.</p>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <strong><code>Function</code></strong></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Apply\" title = \"en/JavaScript/Reference/Global_Objects/Function/Apply\"><code>apply</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Call\" title = \"en/JavaScript/Reference/Global_Objects/Function/Call\"><code>call</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToString\"><code>toString</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_7\"><span id = \"Function_instances\"></span><h2 class = \"editable\"><code>Function</code> instances</h2>\n<p><code>Function</code> instances inherit from <a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\"><code>Function.prototype</code></a>. As with all constructors, you can change the constructor's prototype object to make changes to all <code>Function</code> instances.</p>\n<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/arguments\">arguments</a>\n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n</dt> <dd>An array corresponding to the arguments passed to a function. This is deprecated as property of <code>Function</code>, use the <a title = \"en/JavaScript/Reference/Functions/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a> object available within the function instead.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/arity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/arity\">arity</a>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since JavaScript 1.8.6</span></dt> <dd>Specifies the number of arguments expected by the function. Use the <a title = \"en/JavaScript/Reference/Global_Objects/Function/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length\">length</a> property instead.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/caller\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/caller\">caller</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Specifies the function that invoked the currently executing function.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/constructor\">constructor</a></dt> <dd>Specifies the function that creates an object's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length\">length</a></dt> <dd>Specifies the number of arguments expected by the function.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/name\">name</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the function.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div></p>\n</div><div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply</a></code></dt> <dd>Applies the method of another object in the context of a different object (the calling object); arguments can be passed as an Array object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/bind\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind\">bind</a></code>&nbsp;\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n</dt> <dd>Creates a new function which, when called, itself calls this function in the context of the provided value, with a given sequence of arguments preceding any provided when the new function was called.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a></code></dt> <dd>Calls (executes) a method of another object in the context of a different object (the calling object); arguments can be passed as they are.</dd> <dt><a title = \"en/JavaScript/Reference/Global Objects/Function/isGenerator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/isGenerator\"><code>isGenerator</code></a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires JavaScript 1.8.6</span>\n</dt> <dd>Returns <code>true</code> if the function is a <a title = \"en/Core JavaScript 1.5 Guide/Iterators and Generators#Generators.3a a better way to build Iterators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Iterators_and_Generators#Generators.3a_a_better_way_to_build_Iterators\">generator</a>; otherwise returns <code>false</code>.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toSource\">toSource</a></code>&nbsp;<span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dt> <dd>Returns a string representing the source code of the function. Overrides the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.toSource</a></code> method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toString\">toString</a></code></dt> <dd>Returns a string representing the source code of the function. Overrides the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a></code> method.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</p>\n</div></div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/arguments\">arguments</a>\n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n</dt> <dd>An array corresponding to the arguments passed to a function. This is deprecated as property of <code>Function</code>, use the <a title = \"en/JavaScript/Reference/Functions/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a> object available within the function instead.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/arity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/arity\">arity</a>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since JavaScript 1.8.6</span></dt> <dd>Specifies the number of arguments expected by the function. Use the <a title = \"en/JavaScript/Reference/Global_Objects/Function/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length\">length</a> property instead.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/caller\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/caller\">caller</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Specifies the function that invoked the currently executing function.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/constructor\">constructor</a></dt> <dd>Specifies the function that creates an object's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length\">length</a></dt> <dd>Specifies the number of arguments expected by the function.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/name\">name</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the function.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div></p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply</a></code></dt> <dd>Applies the method of another object in the context of a different object (the calling object); arguments can be passed as an Array object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/bind\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind\">bind</a></code>&nbsp;\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n</dt> <dd>Creates a new function which, when called, itself calls this function in the context of the provided value, with a given sequence of arguments preceding any provided when the new function was called.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a></code></dt> <dd>Calls (executes) a method of another object in the context of a different object (the calling object); arguments can be passed as they are.</dd> <dt><a title = \"en/JavaScript/Reference/Global Objects/Function/isGenerator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/isGenerator\"><code>isGenerator</code></a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires JavaScript 1.8.6</span>\n</dt> <dd>Returns <code>true</code> if the function is a <a title = \"en/Core JavaScript 1.5 Guide/Iterators and Generators#Generators.3a a better way to build Iterators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Iterators_and_Generators#Generators.3a_a_better_way_to_build_Iterators\">generator</a>; otherwise returns <code>false</code>.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toSource\">toSource</a></code>&nbsp;<span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dt> <dd>Returns a string representing the source code of the function. Overrides the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.toSource</a></code> method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toString\">toString</a></code></dt> <dd>Returns a string representing the source code of the function. Overrides the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a></code> method.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Example:_Specifying_arguments_with_the_Function_constructor\"></span><h2 class = \"editable\">Example: Specifying arguments with the <code>Function</code> constructor</h2>\n<p>The following code creates a <code>Function</code> object that takes two arguments.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Example can be run directly in your JavaScript console\n\n// Create a function that takes two arguments and returns the sum of those arguments\nvar adder = new Function(&quot;a&quot;, &quot;b&quot;, &quot;return a + b&quot;);\n\n// Call the function\nadder(2, 6);\n// &gt; 8</pre>\r\n        \n<p>The arguments &quot;<code>a</code>&quot; and &quot;<code>b</code>&quot; are formal argument names that are used in the function body, &quot;<code>return a + b</code>&quot;.</p>\n</div>",
			"<div id = \"section_11\"><span id = \"Browser_Compatibility\"></span><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE&nbsp;Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n</div>",
			"<div id = \"section_12\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Operators/Special_Operators/function_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/function\">function Operator</a></li> <li><a title = \"en/JavaScript/Reference/Statements/function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/function\">function Statement</a></li> <li><a title = \"En/Core_JavaScript_1.5_Reference/Functions_and_function_scope\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope\">Functions</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Properties",
			"Methods",
			"Function instances",
			"Properties",
			"Methods",
			"Example: Specifying arguments with the Function constructor",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number",
		"title": "Number",
		"_id": "4eea8374a4c86c4dba000006",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Creates a wrapper object to allow you to work with numerical values.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>new Number(<em>value</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>value</code></dt> <dd>The numeric value of the object being created.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The primary uses for the <code>Number</code> object are:</p>\n<p>If the argument cannot be converted into a number, it returns <code>NaN</code>.</p>\n<p>In a non-constructor context (i.e., without the <a title = \"en/JavaScript/Reference/Operators/Special_Operators/new_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/new\">new</a> operator), <code>Number</code> can be used to perform a type conversion.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>Number</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number#Properties_2\">Properties of Number instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The largest positive representable number.&nbsp; The largest negative representable number is <code>-MAX_VALUE.</code></p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/MAX_VALUE\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/MAX_VALUE\">MAX_VALUE</a></dt>\n</dl>\n<p>The smallest positive representable number -- that is, the positive number closest to zero (without actually being zero).&nbsp; The smallest negative representable number is <code>-MIN_VALUE.</code></p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/MIN_VALUE\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/MIN_VALUE\">MIN_VALUE</a></dt>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/NaN\">NaN</a></dt> <dd>Special &quot;not a number&quot; value.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY\">NEGATIVE_INFINITY</a></dt> <dd>Special value representing negative infinity; returned on overflow.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY\">POSITIVE_INFINITY</a></dt> <dd>Special value representing infinity; returned on overflow.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/prototype\">prototype</a></dt> <dd>Allows the addition of properties to a Number object.</dd>\n</dl>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Arity\" title = \"en/JavaScript/Reference/Global_Objects/Function/Arity\"><code>arity</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Caller\" title = \"en/JavaScript/Reference/Global_Objects/Function/Caller\"><code>caller</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Function/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Length\" title = \"en/JavaScript/Reference/Global_Objects/Function/Length\"><code>length</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name\" title = \"en/JavaScript/Reference/Global_Objects/Function/Name\"><code>name</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>Number</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number#Methods_2\">Methods of Number instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>Although the <code>Number</code> object contains no methods of its own, it does inherit some methods through the prototype chain.</p>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Apply\" title = \"en/JavaScript/Reference/Global_Objects/Function/Apply\"><code>apply</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Call\" title = \"en/JavaScript/Reference/Global_Objects/Function/Call\"><code>call</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToString\"><code>toString</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_7\"><span id = \"Number_instances\"></span><h2 class = \"editable\"><code>Number</code> instances</h2>\n<p>All <code>Number</code> instances inherit from <a title = \"en/JavaScript/Reference/Global_Objects/Number/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/prototype\">Number.prototype</a>. The prototype object of the <code>Number</code> constructor can be modified to affect all <code>Number</code> instances.</p>\n<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/constructor\">constructor</a></dt> <dd>Returns the function that created this object's instance. By default this is the <code>Number</code> object.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</p>\n</div><div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toExponential\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toExponential\">toExponential</a></dt> <dd>Returns a string representing the number in exponential notation.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">toFixed</a></dt> <dd>Returns a string representing the number in fixed-point notation.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/ToLocaleString\">toLocaleString</a></dt> <dd>Returns a human readable string representing the number using the locale of the environment. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toLocaleString\">Object.prototype.toLocaleString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toPrecision\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toPrecision\">toPrecision</a></dt> <dd>Returns a string representing the number to a specified precision in fixed-point or exponential notation.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource\">toSource</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Returns an object literal representing the specified Number object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">toString</a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/valueOf\">valueOf</a></dt> <dd>Returns the primitive value of the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.prototype.valueOf</a> method.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</p>\n</div></div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/constructor\">constructor</a></dt> <dd>Returns the function that created this object's instance. By default this is the <code>Number</code> object.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toExponential\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toExponential\">toExponential</a></dt> <dd>Returns a string representing the number in exponential notation.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">toFixed</a></dt> <dd>Returns a string representing the number in fixed-point notation.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/ToLocaleString\">toLocaleString</a></dt> <dd>Returns a human readable string representing the number using the locale of the environment. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toLocaleString\">Object.prototype.toLocaleString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toPrecision\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toPrecision\">toPrecision</a></dt> <dd>Returns a string representing the number to a specified precision in fixed-point or exponential notation.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource\">toSource</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Returns an object literal representing the specified Number object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">toString</a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/valueOf\">valueOf</a></dt> <dd>Returns the primitive value of the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.prototype.valueOf</a> method.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_11\"><span id = \"Example:_Using_the_Number_object_to_assign_values_to_numeric_variables\"></span><h3 class = \"editable\">Example: Using the <code>Number</code> object to assign values to numeric variables</h3>\n<p>The following example uses the <code>Number</code> object's properties to assign values to several numeric variables:</p>\n\r\n          <pre name = \"code\" class = \"js\">biggestNum = Number.MAX_VALUE;\nsmallestNum = Number.MIN_VALUE;\ninfiniteNum = Number.POSITIVE_INFINITY;\nnegInfiniteNum = Number.NEGATIVE_INFINITY;\nnotANum = Number.NaN;</pre>\r\n        \n</div><div id = \"section_12\"><span id = \"Example:_Using_Number_to_convert_a_Date_object\"></span><h3 class = \"editable\">Example: Using <code>Number</code> to convert a <code>Date</code> object</h3>\n<p>The following example converts the <code>Date</code> object to a numerical value using <code>Number</code> as a function:</p>\n\r\n          <pre name = \"code\" class = \"js\">var d = new Date(&quot;December 17, 1995 03:24:00&quot;);\nprint(Number(d));</pre>\r\n        \n<p>This displays &quot;819199440000&quot;.</p>\n</div></div>",
			"<div id = \"section_11\"><span id = \"Example:_Using_the_Number_object_to_assign_values_to_numeric_variables\"></span><h3 class = \"editable\">Example: Using the <code>Number</code> object to assign values to numeric variables</h3>\n<p>The following example uses the <code>Number</code> object's properties to assign values to several numeric variables:</p>\n\r\n          <pre name = \"code\" class = \"js\">biggestNum = Number.MAX_VALUE;\nsmallestNum = Number.MIN_VALUE;\ninfiniteNum = Number.POSITIVE_INFINITY;\nnegInfiniteNum = Number.NEGATIVE_INFINITY;\nnotANum = Number.NaN;</pre>\r\n        \n</div>",
			"<div id = \"section_12\"><span id = \"Example:_Using_Number_to_convert_a_Date_object\"></span><h3 class = \"editable\">Example: Using <code>Number</code> to convert a <code>Date</code> object</h3>\n<p>The following example converts the <code>Date</code> object to a numerical value using <code>Number</code> as a function:</p>\n\r\n          <pre name = \"code\" class = \"js\">var d = new Date(&quot;December 17, 1995 03:24:00&quot;);\nprint(Number(d));</pre>\r\n        \n<p>This displays &quot;819199440000&quot;.</p>\n</div>",
			"<div id = \"section_13\"><span id = \"Browser_Compatibility\"></span><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE&nbsp;Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n</div>",
			"<div id = \"section_14\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN\">NaN</a></li> <li>The <a title = \"Math\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\">Math</a> global object</li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Properties",
			"Methods",
			"Number instances",
			"Properties",
			"Methods",
			"Examples",
			"Example: Using the Number object to assign values to numeric variables",
			"Example: Using Number to convert a Date object",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object",
		"title": "Object",
		"_id": "4eea8378a4c86c4dba000007",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Creates an object wrapper.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>new Object( <em>[ value ]</em> )</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>value</dt> <dd>Any value.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The <code>Object</code> constructor creates an object wrapper for the given value. If the value is <code>null</code> or <code><a title = \"en/JavaScript/Reference/Global_Properties/undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\">undefined</a></code>, it will create and return an empty object, otherwise, it will return an object of a type that corresponds to the given value.</p>\n<p>When called in a non-constructor context, <code>Object</code> behaves identically.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>Object</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object#Properties_2\">Properties of Object instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/prototype\">prototype</a></dt> <dd>Allows the addition of properties to all objects of type Object.</dd>\n</dl>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Arity\" title = \"en/JavaScript/Reference/Global_Objects/Function/Arity\"><code>arity</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Caller\" title = \"en/JavaScript/Reference/Global_Objects/Function/Caller\"><code>caller</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Function/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Length\" title = \"en/JavaScript/Reference/Global_Objects/Function/Length\"><code>length</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name\" title = \"en/JavaScript/Reference/Global_Objects/Function/Name\"><code>name</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>Object</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object#Methods_2\">Methods of Object instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><code><a class = \"internal\" title = \"En/Core JavaScript 1.5 Reference/Global Objects/Object/Create\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/create\">create</a></code></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Creates a new object with the specified prototype object and properties.</dd> <dt><code><a class = \"internal\" title = \"En/Core JavaScript 1.5 Reference/Global Objects/Object/DefineProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty\">defineProperty</a></code></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Adds the named property described by a given descriptor to an object.</dd> <dt><code><a class = \"internal\" title = \"En/Core JavaScript 1.5 Reference/Global Objects/Object/DefineProperties\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperties\">defineProperties</a></code></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Adds the named properties described by the given descriptors to an object.</dd> <dt><code><a class = \"internal\" title = \"En/Core JavaScript 1.5 Reference/Global Objects/Object/GetOwnPropertyDescriptor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor\">getOwnPropertyDescriptor</a></code></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Returns a property descriptor for a named property on an object.</dd> <dt><a title = \"en/JavaScript/Reference/Global Objects/Object/keys\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys\"><code>keys</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Returns an array containing the names of all of the given object's <strong>own</strong> enumerable properties.</dd> <dt><a title = \"en/JavaScript/Reference/Global Objects/Object/getOwnPropertyNames\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames\"><code>getOwnPropertyNames</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Returns an array containing the names of all of the given object's <strong>own</strong> enumerable and non-enumerable properties.</dd> <dt><code><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/Object/getPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf\">getPrototypeOf</a></code></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n<br/> Returns the prototype of the specified object.</dd> <dt><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/preventExtensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions\"><code>preventExtensions</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Prevents any extensions of an object.</dd> <dt><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\"><code>isExtensible</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Determine if extending of an object is allowed.</dd> <dt><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code>seal</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Prevents other code from deleting properties of an object.</dd> <dt><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isSealed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed\"><code>isSealed</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Determine if an object is sealed.</dd> <dt><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/freezed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze\"><code>freeze</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Freezes an object: other code can't delete or change any properties.</dd> <dt><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isFrozen\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isFrozen\"><code>isFrozen</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n<br/> Determine if an object was frozen.</dd>\n</dl>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Apply\" title = \"en/JavaScript/Reference/Global_Objects/Function/Apply\"><code>apply</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Call\" title = \"en/JavaScript/Reference/Global_Objects/Function/Call\"><code>call</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToString\"><code>toString</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"Object_instances\"></span><h2 class = \"editable\"><code>Object</code> instances</h2>\n<p>All objects in JavaScript are descended from <code>Object</code>; all objects inherit methods and properties from <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/prototype\">Object.prototype</a></code>, although they may be overridden. For example, other constructors' prototypes override the <code>constructor</code> property and provide their own <code>toString</code> methods. Changes to the <code>Object</code> prototype object are propagated to all objects unless the properties and methods subject to those changes are overridden further along the prototype chain.</p>\n<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\"><code>constructor</code></a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/count\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/count\" class = \"new \"><code>__count__</code></a></dt> <dd>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since <a rel = \"custom\" href = \"/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span><br/> Returns the number of enumerable properties directly on a user-defined object.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/parent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a></dt> <dd>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since <a rel = \"custom\" href = \"/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span><br/> Points to an object's context.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/proto\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/proto\"><code>__proto__</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Points to the object which was used as prototype when the object was instantiated.</dd>\n</dl>\n</p>\n</div><div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Associates a function with a property that, when accessed, executes that function and returns its return value.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Associates a function with a property that, when set, executes that function which modifies the property.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/eval\">eval</a></code></dt> <dd><span>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since <a rel = \"custom\" href = \"/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span><br/> </span>Evaluates a string of JavaScript code in the context of the specified object.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty\"><code>hasOwnProperty</code></a></dt> <dd>Returns a boolean indicating whether an object contains the specified property as a direct property of that object and not inherited through the prototype chain.</dd> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf\">isPrototypeOf</a></code></dt> <dd>Returns a boolean indication whether the specified object is in the prototype chain of the object this method is called upon.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupGetter\">__lookupGetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns the function associated with the specified property by the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></code> method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupSetter\">__lookupSetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns the function associated with the specified property by the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></code> method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/noSuchMethod\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/noSuchMethod\">__noSuchMethod__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Allows a function to be defined that will be executed when an undefined object member is called as a method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable\">propertyIsEnumerable</a></code></dt> <dd>Returns a boolean indicating if the internal <a title = \"en/ECMAScript_DontEnum_attribute\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript_DontEnum_attribute\">ECMAScript DontEnum attribute</a> is set.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">toSource</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns string containing the source of an object literal representing the object that this method is called upon; you can use this value to create a new object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toLocaleString\">toLocaleString</a></code></dt> <dd>Calls <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code>.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code></dt> <dd>Returns a string representation of the object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/unwatch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch\">unwatch</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Removes a watchpoint from a property of the object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">valueOf</a></code></dt> <dd>Returns the primitive value of the specified object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/watch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch\">watch</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Adds a watchpoint to a property of the object.</dd>\n</dl>\n<p></p></p>\n</div></div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\"><code>constructor</code></a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/count\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/count\" class = \"new \"><code>__count__</code></a></dt> <dd>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since <a rel = \"custom\" href = \"/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span><br/> Returns the number of enumerable properties directly on a user-defined object.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/parent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a></dt> <dd>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since <a rel = \"custom\" href = \"/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span><br/> Points to an object's context.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/proto\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/proto\"><code>__proto__</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Points to the object which was used as prototype when the object was instantiated.</dd>\n</dl>\n</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Associates a function with a property that, when accessed, executes that function and returns its return value.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Associates a function with a property that, when set, executes that function which modifies the property.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/eval\">eval</a></code></dt> <dd><span>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since <a rel = \"custom\" href = \"/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span><br/> </span>Evaluates a string of JavaScript code in the context of the specified object.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty\"><code>hasOwnProperty</code></a></dt> <dd>Returns a boolean indicating whether an object contains the specified property as a direct property of that object and not inherited through the prototype chain.</dd> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf\">isPrototypeOf</a></code></dt> <dd>Returns a boolean indication whether the specified object is in the prototype chain of the object this method is called upon.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupGetter\">__lookupGetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns the function associated with the specified property by the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></code> method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupSetter\">__lookupSetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns the function associated with the specified property by the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></code> method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/noSuchMethod\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/noSuchMethod\">__noSuchMethod__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Allows a function to be defined that will be executed when an undefined object member is called as a method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable\">propertyIsEnumerable</a></code></dt> <dd>Returns a boolean indicating if the internal <a title = \"en/ECMAScript_DontEnum_attribute\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript_DontEnum_attribute\">ECMAScript DontEnum attribute</a> is set.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">toSource</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns string containing the source of an object literal representing the object that this method is called upon; you can use this value to create a new object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toLocaleString\">toLocaleString</a></code></dt> <dd>Calls <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code>.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code></dt> <dd>Returns a string representation of the object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/unwatch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch\">unwatch</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Removes a watchpoint from a property of the object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">valueOf</a></code></dt> <dd>Returns the primitive value of the specified object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/watch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch\">watch</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Adds a watchpoint to a property of the object.</dd>\n</dl>\n<p></p></p>\n</div>",
			"<div id = \"section_10\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_11\"><span id = \"Example:_Using_Object_given_undefined_and_null_types\"></span><h3 class = \"editable\">Example: Using <code>Object</code> given <code>undefined</code> and <code>null</code> types</h3>\n<p>The following examples store an empty <code>Object</code> object in <code>o</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = new Object();</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">var o = new Object(undefined);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">var o = new Object(null);</pre>\r\n        \n</div><div id = \"section_12\"><span id = \"Example:_Using_Object_to_create_Boolean_objects\"></span><h3 class = \"editable\">Example: Using <code>Object</code> to create <code>Boolean</code> objects</h3>\n<p>The following examples store <code><a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">Boolean</a></code> objects in <code>o</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">// equivalent to o = new Boolean(true);\nvar o = new Object(true);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// equivalent to o = new Boolean(false);\nvar o = new Object(Boolean());</pre>\r\n        \n</div></div>",
			"<div id = \"section_11\"><span id = \"Example:_Using_Object_given_undefined_and_null_types\"></span><h3 class = \"editable\">Example: Using <code>Object</code> given <code>undefined</code> and <code>null</code> types</h3>\n<p>The following examples store an empty <code>Object</code> object in <code>o</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = new Object();</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">var o = new Object(undefined);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">var o = new Object(null);</pre>\r\n        \n</div>",
			"<div id = \"section_12\"><span id = \"Example:_Using_Object_to_create_Boolean_objects\"></span><h3 class = \"editable\">Example: Using <code>Object</code> to create <code>Boolean</code> objects</h3>\n<p>The following examples store <code><a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">Boolean</a></code> objects in <code>o</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">// equivalent to o = new Boolean(true);\nvar o = new Object(true);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// equivalent to o = new Boolean(false);\nvar o = new Object(Boolean());</pre>\r\n        \n</div>",
			"<div id = \"section_13\"><span id = \"Browser_Compatibility\"></span><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE&nbsp;Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Properties",
			"Methods",
			"Object instances",
			"Properties",
			"Methods",
			"Examples",
			"Example: Using Object given undefined and null types",
			"Example: Using Object to create Boolean objects",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp",
		"title": "RegExp",
		"_id": "4eea837aa4c86c4dba000008",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Creates a regular expression object for matching text with a pattern.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>RegExp(<em>pattern</em> <em>[, flags]</em>)</code><br/> <code>/<em>pattern</em>/<em>flags</em></code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>pattern</code></dt> <dd>The text of the regular expression.</dd>\n</dl>\n<dl> <dt><code>flags</code></dt>\n</dl>\n<p>If specified, flags can have any combination of the following values:</p>\n<dl> <dt><code>g</code></dt> <dd>global match</dd> <dt><code>i</code></dt> <dd>ignore case</dd> <dt><code>m</code></dt> <dd>Treat beginning and end characters (^ and $) as working over multiple lines (i.e., match the beginning or end of <em>each</em> line (delimited by \\n or \\r), not only the very beginning or end of the whole input string)</dd>\n</dl>\n<dl> <dt><code>y</code></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding:0px 2px;\">New in <a rel = \"custom\" href = \"https://developer.mozilla.org/en/Firefox_3_for_developers\">Firefox 3</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> sticky; matches only from the index indicated by the <code>lastIndex</code> property of this regular expression in the target string (and does not attempt to match from any later indexes). This allows the match-only-at-start capabilities of the character &quot;^&quot; to effectively be used at any location in a string by changing the value of the <code>lastIndex</code> property.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>When using the constructor function, the normal string escape rules (preceding special characters with \\ when included in a string) are necessary. For example, the following are equivalent:</p>\n\r\n          <pre name = \"code\" class = \"js\">var re = new RegExp(&quot;\\\\w+&quot;);\nvar re = /\\w+/;</pre>\r\n        \n<p>Notice that the parameters to the literal format do not use quotation marks to indicate strings, while the parameters to the constructor function do use quotation marks. So the following expressions create the same regular expression:</p>\n\r\n          <pre name = \"code\" class = \"js\">/ab+c/i;\nnew RegExp(&quot;ab+c&quot;, &quot;i&quot;);</pre>\r\n        \n<div id = \"section_5\"><span id = \"Special_characters_in_regular_expressions\"></span><h3 class = \"editable\">Special characters in regular expressions</h3>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\">Character</td> <td class = \"header\">Meaning</td> </tr> <tr> <td><code>\\</code></td> <td> <p>For characters that are usually treated literally, indicates that the next character is special and not to be interpreted literally.</p> <p>For example, <code>/b/</code> matches the character 'b'. By placing a backslash in front of b, that is by using <code>/\\b/</code>, the character becomes special to mean match a word boundary.</p> <p><em>or</em></p> <p>For characters that are usually treated specially, indicates that the next character is not special and should be interpreted literally.</p> <p>For example, * is a special character that means 0 or more occurrences of the preceding character should be matched; for example, <code>/a*/</code> means match 0 or more &quot;a&quot;s. To match <code>*</code> literally, precede it with a backslash; for example, <code>/a\\*/</code> matches 'a*'.</p> </td> </tr> <tr> <td><code>^</code></td> <td> <p>Matches beginning of input. If the multiline flag is set to true, also matches immediately after a line break character.</p> <p>For example, <code>/^A/</code> does not match the 'A' in &quot;an A&quot;, but does match the first 'A' in &quot;An A.&quot;</p> </td> </tr> <tr> <td><code>$</code></td> <td> <p>Matches end of input. If the multiline flag is set to true, also matches immediately before a line break character.</p> <p>For example, <code>/t$/</code> does not match the 't' in &quot;eater&quot;, but does match it in &quot;eat&quot;.</p> </td> </tr> <tr> <td><code>*</code></td> <td> <p>Matches the preceding item 0 or more times.</p> <p>For example, <code>/bo*/</code> matches 'boooo' in &quot;A ghost booooed&quot; and 'b' in &quot;A bird warbled&quot;, but nothing in &quot;A goat grunted&quot;.</p> </td> </tr> <tr> <td><code>+</code></td> <td> <p>Matches the preceding item 1 or more times. Equivalent to <code>{1,}</code>.</p> <p>For example, <code>/a+/</code> matches the 'a' in &quot;candy&quot; and all the a's in &quot;caaaaaaandy&quot;.</p> </td> </tr> <tr> <td><code>?</code></td> <td> <p>Matches the preceding item 0 or 1 time.</p> <p>For example, <code>/e?le?/</code> matches the 'el' in &quot;angel&quot; and the 'le' in &quot;angle.&quot;</p> <p>If used immediately after any of the quantifiers <code>*</code>, <code>+</code>, <code>?</code>, or <code>{}</code>, makes the quantifier non-greedy (matching the minimum number of times), as opposed to the default, which is greedy (matching the maximum number of times).</p> <p>Also used in lookahead assertions, described under <code>(?=)</code>, <code>(?!)</code>, and <code>(?:)</code> in this table.</p> </td> </tr> <tr> <td><code>.</code></td> <td> <p>(The decimal point) matches any single character except the newline characters: \\n \\r \\u2028 or \\u2029. (<code>[\\s\\S]</code> can be used to match any character including newlines.)</p> <p>For example, <code>/.n/</code> matches 'an' and 'on' in &quot;nay, an apple is on the tree&quot;, but not 'nay'.</p> </td> </tr> <tr> <td><code>(<em>x</em>)</code></td> <td> <p>Matches <code><em>x</em></code> and remembers the match. These are called capturing parentheses.</p> <p>For example, <code>/(foo)/</code> matches and remembers 'foo' in &quot;foo bar.&quot; The matched substring can be recalled from the resulting array's elements <code>[1], ..., [n]</code> or from the predefined <code>RegExp</code> object's properties <code>$1, ..., $9</code>.</p> </td> </tr> <tr> <td><code>(?:<em>x</em>)</code></td> <td> <p>Matches <code><em>x</em></code> but does not remember the match. These are called non-capturing parentheses. The matched substring can not be recalled from the resulting array's elements <code>[1], ..., [n]</code> or from the predefined <code>RegExp</code> object's properties <code>$1, ..., $9</code>.</p> </td> </tr> <tr> <td><code><em>x</em>(?=<em>y</em>)</code></td> <td> <p>Matches <code><em>x</em></code> only if <code><em>x</em></code> is followed by <code><em>y</em></code>. For example, <code>/Jack(?=Sprat)/</code> matches 'Jack' only if it is followed by 'Sprat'. <code>/Jack(?=Sprat|Frost)/</code> matches 'Jack' only if it is followed by 'Sprat' or 'Frost'. However, neither 'Sprat' nor 'Frost' is part of the match results.</p> </td> </tr> <tr> <td><code><em>x</em>(?!<em>y</em>)</code></td> <td> <p>Matches <code><em>x</em></code> only if <code><em>x</em></code> is not followed by <code><em>y</em></code>. For example, <code>/\\d+(?!\\.)/</code> matches a number only if it is not followed by a decimal point.</p> <p><code>/\\d+(?!\\.)/.exec(&quot;3.141&quot;)</code> matches 141 but not 3.141.</p> </td> </tr> <tr> <td><code><em>x</em>|<em>y</em></code></td> <td> <p>Matches either <code><em>x</em></code> or <code><em>y</em></code>.</p> <p>For example, <code>/green|red/</code> matches 'green' in &quot;green apple&quot; and 'red' in &quot;red apple.&quot;</p> </td> </tr> <tr> <td><code>{<em>n</em>}</code></td> <td> <p>Where <code><em>n</em></code> is a positive integer. Matches exactly <code><em>n</em></code> occurrences of the preceding item.</p> <p>For example, <code>/a{2}/</code> doesn't match the 'a' in &quot;candy,&quot; but it matches all of the a's in &quot;caandy,&quot; and the first two a's in &quot;caaandy.&quot;</p> </td> </tr> <tr> <td><code>{<em>n</em>,}</code></td> <td> <p>Where <code><em>n</em></code> is a positive integer. Matches at least <code><em>n</em></code> occurrences of the preceding item.</p> <p>For example, <code>/a{2,}/</code> doesn't match the 'a' in &quot;candy&quot;, but matches all of the a's in &quot;caandy&quot; and in &quot;caaaaaaandy.&quot;</p> </td> </tr> <tr> <td><code>{<em>n</em>,<em>m</em>}</code></td> <td> <p>Where <code><em>n</em></code> and <code><em>m</em></code> are positive integers. Matches at least <code><em>n</em></code> and at most <code><em>m</em></code> occurrences of the preceding item.</p> <p>For example, <code>/a{1,3}/</code> matches nothing in &quot;cndy&quot;, the 'a' in &quot;candy,&quot; the first two a's in &quot;caandy,&quot; and the first three a's in &quot;caaaaaaandy&quot;. Notice that when matching &quot;caaaaaaandy&quot;, the match is &quot;aaa&quot;, even though the original string had more a's in it.</p> </td> </tr> <tr> <td><code>[xyz]</code></td> <td> <p>A character set. Matches any one of the enclosed characters. You can specify a range of characters by using a hyphen.</p> <p>For example, <code>[abcd]</code> is the same as <code>[a-d]</code>. They match the 'b' in &quot;brisket&quot; and the 'c' in &quot;chop&quot;.</p> </td> </tr> <tr> <td><code>[^xyz]</code></td> <td> <p>A negated or complemented character set. That is, it matches anything that is not enclosed in the brackets. You can specify a range of characters by using a hyphen.</p> <p>For example, <code>[^abc]</code> is the same as <code>[^a-c]</code>. They initially match 'r' in &quot;brisket&quot; and 'h' in &quot;chop.&quot;</p> </td> </tr> <tr> <td><code>[\\b]</code></td> <td> <p>Matches a backspace. (Not to be confused with <code>\\b</code>.)</p> </td> </tr> <tr> <td><code>\\b</code></td> <td> <p>Matches a word boundary, such as a space. (Not to be confused with <code>[\\b]</code>.)</p> <p>For example, <code>/\\bn\\w/</code> matches the 'no' in &quot;noonday&quot;; <code>/\\wy\\b/</code> matches the 'ly' in &quot;possibly yesterday.&quot;</p> </td> </tr> <tr> <td><code>\\B</code></td> <td> <p>Matches a non-word boundary.</p> <p>For example, <code>/\\w\\Bn/</code> matches 'on' in &quot;noonday&quot;, and <code>/y\\B\\w/</code> matches 'ye' in &quot;possibly yesterday.&quot;</p> </td> </tr> <tr> <td><code>\\c<em>X</em></code></td> <td> <p>Where <code><em>X</em></code> is a letter from A - Z. Matches a control character in a string.</p> <p>For example, <code>/\\cM/</code> matches control-M in a string.</p> </td> </tr> <tr> <td><code>\\d</code></td> <td> <p>Matches a digit character in the basic Latin alphabet. Equivalent to <code>[0-9]</code>.</p> <p><strong>Note</strong>: In Firefox 2 and earlier, matches a digit character from any alphabet. (\n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=378738\" class = \"external\" title = \"VERIFIED FIXED - \\d pattern matches characters other than the decimal digits 0-9 (ecma_3/RegExp/15.10.2.12.js)\">\nbug 378738</a>\n)</p> <p>For example, <code>/\\d/</code> or <code>/[0-9]/</code> matches '2' in &quot;B2 is the suite number.&quot;</p> </td> </tr> <tr> <td><code>\\D</code></td> <td> <p>Matches any character that is not a digit in the basic Latin alphabet. Equivalent to <code>[^0-9]</code>.</p> <p><strong>Note</strong>: In Firefox 2 and earlier, excludes digit characters from all alphabets. (\n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=378738\" class = \"external\" title = \"VERIFIED FIXED - \\d pattern matches characters other than the decimal digits 0-9 (ecma_3/RegExp/15.10.2.12.js)\">\nbug 378738</a>\n)</p> <p>For example, <code>/\\D/</code> or <code>/[^0-9]/</code> matches 'B' in &quot;B2 is the suite number.&quot;</p> </td> </tr> <tr> <td><code>\\f</code></td> <td> <p>Matches a form-feed.</p> </td> </tr> <tr> <td><code>\\n</code></td> <td> <p>Matches a linefeed.</p> </td> </tr> <tr> <td><code>\\r</code></td> <td> <p>Matches a carriage return.</p> </td> </tr> <tr> <td><code>\\s</code></td> <td> <p>Matches a single white space character, including space, tab, form feed, line feed and other unicode spaces.\n<sup id = \"ref_equivalent_s\" class = \"reference plainlinksneverexpand\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#endnote_equivalent_s\">[equivalent_s]</a></sup></p> <p>For example, <code>/\\s\\w*/</code> matches ' bar' in &quot;foo bar.&quot;</p> </td> </tr> <tr> <td><code>\\S</code></td> <td> <p>Matches a single character other than white space.\n<sup id = \"ref_equivalent_S\" class = \"reference plainlinksneverexpand\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#endnote_equivalent_S\">[equivalent_S]</a></sup></p> <p>For example, <code>/\\S\\w*/</code> matches 'foo' in &quot;foo bar.&quot;</p> </td> </tr> <tr> <td><code>\\t</code></td> <td> <p>Matches a tab.</p> </td> </tr> <tr> <td><code>\\v</code></td> <td> <p>Matches a vertical tab.</p> </td> </tr> <tr> <td><code>\\w</code></td> <td> <p>Matches any alphanumeric character from the basic Latin alphabet, including the underscore. Equivalent to <code>[A-Za-z0-9_]</code>.</p> <p>For example, <code>/\\w/</code> matches 'a' in &quot;apple,&quot; '5' in &quot;$5.28,&quot; and '3' in &quot;3D.&quot;</p> </td> </tr> <tr> <td><code>\\W</code></td> <td> <p>Matches any character that is not a word character from the basic Latin alphabet. Equivalent to <code>[^A-Za-z0-9_]</code>.</p> <p>For example, <code>/\\W/</code> or <code>/[^A-Za-z0-9_]/</code> matches '%' in &quot;50%.&quot;</p> </td> </tr> <tr> <td><code>\\<em>n</em></code></td> <td> <p>Where <code><em>n</em></code> is a positive integer. A back reference to the last substring matching the n parenthetical in the regular expression (counting left parentheses).</p> <p>For example, <code>/apple(,)\\sorange\\1/</code> matches 'apple, orange,' in &quot;apple, orange, cherry, peach.&quot; A more complete example follows this table.</p> </td> </tr> <tr> <td><code>\\0</code></td> <td> <p>Matches a NUL character. Do not follow this with another digit.</p> </td> </tr> <tr> <td><code>\\x<em>hh</em></code></td> <td> <p>Matches the character with the code <code><em>hh</em></code> (two hexadecimal digits)</p> </td> </tr> <tr> <td><code>\\u<em>hhhh</em></code></td> <td> <p>Matches the character with the Unicode value <code><em>hhhh</em></code> (four hexadecimal digits).</p> </td> </tr> </tbody>\n</table>\n<p>The literal notation provides compilation of the regular expression when the expression is evaluated. Use literal notation when the regular expression will remain constant. For example, if you use literal notation to construct a regular expression used in a loop, the regular expression won't be recompiled on each iteration.</p>\n<p>The constructor of the regular expression object, for example, <code>new RegExp(&quot;ab+c&quot;)</code>, provides runtime compilation of the regular expression. Use the constructor function when you know the regular expression pattern will be changing, or you don't know the pattern and are getting it from another source, such as user input.</p>\n<ol> <li>\n<span id = \"endnote_equivalent_s\"><strong><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#ref_equivalent_s\">^</a></strong></span>Equivalent to: <p><code>[\\t\\n\\v\\f\\r \\u00a0\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u200b\\u2028\\u2029\\u3000]</code></p> </li> <li>\n<span id = \"endnote_equivalent_S\"><strong><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#ref_equivalent_S\">^</a></strong></span>Equivalent to:\n<p><code>[^\\t\\n\\v\\f\\r \\u00a0\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u200b\\u2028\\u2029\\u3000]</code></p></li>\n</ol></div></div>",
			"<div id = \"section_5\"><span id = \"Special_characters_in_regular_expressions\"></span><h3 class = \"editable\">Special characters in regular expressions</h3>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\">Character</td> <td class = \"header\">Meaning</td> </tr> <tr> <td><code>\\</code></td> <td> <p>For characters that are usually treated literally, indicates that the next character is special and not to be interpreted literally.</p> <p>For example, <code>/b/</code> matches the character 'b'. By placing a backslash in front of b, that is by using <code>/\\b/</code>, the character becomes special to mean match a word boundary.</p> <p><em>or</em></p> <p>For characters that are usually treated specially, indicates that the next character is not special and should be interpreted literally.</p> <p>For example, * is a special character that means 0 or more occurrences of the preceding character should be matched; for example, <code>/a*/</code> means match 0 or more &quot;a&quot;s. To match <code>*</code> literally, precede it with a backslash; for example, <code>/a\\*/</code> matches 'a*'.</p> </td> </tr> <tr> <td><code>^</code></td> <td> <p>Matches beginning of input. If the multiline flag is set to true, also matches immediately after a line break character.</p> <p>For example, <code>/^A/</code> does not match the 'A' in &quot;an A&quot;, but does match the first 'A' in &quot;An A.&quot;</p> </td> </tr> <tr> <td><code>$</code></td> <td> <p>Matches end of input. If the multiline flag is set to true, also matches immediately before a line break character.</p> <p>For example, <code>/t$/</code> does not match the 't' in &quot;eater&quot;, but does match it in &quot;eat&quot;.</p> </td> </tr> <tr> <td><code>*</code></td> <td> <p>Matches the preceding item 0 or more times.</p> <p>For example, <code>/bo*/</code> matches 'boooo' in &quot;A ghost booooed&quot; and 'b' in &quot;A bird warbled&quot;, but nothing in &quot;A goat grunted&quot;.</p> </td> </tr> <tr> <td><code>+</code></td> <td> <p>Matches the preceding item 1 or more times. Equivalent to <code>{1,}</code>.</p> <p>For example, <code>/a+/</code> matches the 'a' in &quot;candy&quot; and all the a's in &quot;caaaaaaandy&quot;.</p> </td> </tr> <tr> <td><code>?</code></td> <td> <p>Matches the preceding item 0 or 1 time.</p> <p>For example, <code>/e?le?/</code> matches the 'el' in &quot;angel&quot; and the 'le' in &quot;angle.&quot;</p> <p>If used immediately after any of the quantifiers <code>*</code>, <code>+</code>, <code>?</code>, or <code>{}</code>, makes the quantifier non-greedy (matching the minimum number of times), as opposed to the default, which is greedy (matching the maximum number of times).</p> <p>Also used in lookahead assertions, described under <code>(?=)</code>, <code>(?!)</code>, and <code>(?:)</code> in this table.</p> </td> </tr> <tr> <td><code>.</code></td> <td> <p>(The decimal point) matches any single character except the newline characters: \\n \\r \\u2028 or \\u2029. (<code>[\\s\\S]</code> can be used to match any character including newlines.)</p> <p>For example, <code>/.n/</code> matches 'an' and 'on' in &quot;nay, an apple is on the tree&quot;, but not 'nay'.</p> </td> </tr> <tr> <td><code>(<em>x</em>)</code></td> <td> <p>Matches <code><em>x</em></code> and remembers the match. These are called capturing parentheses.</p> <p>For example, <code>/(foo)/</code> matches and remembers 'foo' in &quot;foo bar.&quot; The matched substring can be recalled from the resulting array's elements <code>[1], ..., [n]</code> or from the predefined <code>RegExp</code> object's properties <code>$1, ..., $9</code>.</p> </td> </tr> <tr> <td><code>(?:<em>x</em>)</code></td> <td> <p>Matches <code><em>x</em></code> but does not remember the match. These are called non-capturing parentheses. The matched substring can not be recalled from the resulting array's elements <code>[1], ..., [n]</code> or from the predefined <code>RegExp</code> object's properties <code>$1, ..., $9</code>.</p> </td> </tr> <tr> <td><code><em>x</em>(?=<em>y</em>)</code></td> <td> <p>Matches <code><em>x</em></code> only if <code><em>x</em></code> is followed by <code><em>y</em></code>. For example, <code>/Jack(?=Sprat)/</code> matches 'Jack' only if it is followed by 'Sprat'. <code>/Jack(?=Sprat|Frost)/</code> matches 'Jack' only if it is followed by 'Sprat' or 'Frost'. However, neither 'Sprat' nor 'Frost' is part of the match results.</p> </td> </tr> <tr> <td><code><em>x</em>(?!<em>y</em>)</code></td> <td> <p>Matches <code><em>x</em></code> only if <code><em>x</em></code> is not followed by <code><em>y</em></code>. For example, <code>/\\d+(?!\\.)/</code> matches a number only if it is not followed by a decimal point.</p> <p><code>/\\d+(?!\\.)/.exec(&quot;3.141&quot;)</code> matches 141 but not 3.141.</p> </td> </tr> <tr> <td><code><em>x</em>|<em>y</em></code></td> <td> <p>Matches either <code><em>x</em></code> or <code><em>y</em></code>.</p> <p>For example, <code>/green|red/</code> matches 'green' in &quot;green apple&quot; and 'red' in &quot;red apple.&quot;</p> </td> </tr> <tr> <td><code>{<em>n</em>}</code></td> <td> <p>Where <code><em>n</em></code> is a positive integer. Matches exactly <code><em>n</em></code> occurrences of the preceding item.</p> <p>For example, <code>/a{2}/</code> doesn't match the 'a' in &quot;candy,&quot; but it matches all of the a's in &quot;caandy,&quot; and the first two a's in &quot;caaandy.&quot;</p> </td> </tr> <tr> <td><code>{<em>n</em>,}</code></td> <td> <p>Where <code><em>n</em></code> is a positive integer. Matches at least <code><em>n</em></code> occurrences of the preceding item.</p> <p>For example, <code>/a{2,}/</code> doesn't match the 'a' in &quot;candy&quot;, but matches all of the a's in &quot;caandy&quot; and in &quot;caaaaaaandy.&quot;</p> </td> </tr> <tr> <td><code>{<em>n</em>,<em>m</em>}</code></td> <td> <p>Where <code><em>n</em></code> and <code><em>m</em></code> are positive integers. Matches at least <code><em>n</em></code> and at most <code><em>m</em></code> occurrences of the preceding item.</p> <p>For example, <code>/a{1,3}/</code> matches nothing in &quot;cndy&quot;, the 'a' in &quot;candy,&quot; the first two a's in &quot;caandy,&quot; and the first three a's in &quot;caaaaaaandy&quot;. Notice that when matching &quot;caaaaaaandy&quot;, the match is &quot;aaa&quot;, even though the original string had more a's in it.</p> </td> </tr> <tr> <td><code>[xyz]</code></td> <td> <p>A character set. Matches any one of the enclosed characters. You can specify a range of characters by using a hyphen.</p> <p>For example, <code>[abcd]</code> is the same as <code>[a-d]</code>. They match the 'b' in &quot;brisket&quot; and the 'c' in &quot;chop&quot;.</p> </td> </tr> <tr> <td><code>[^xyz]</code></td> <td> <p>A negated or complemented character set. That is, it matches anything that is not enclosed in the brackets. You can specify a range of characters by using a hyphen.</p> <p>For example, <code>[^abc]</code> is the same as <code>[^a-c]</code>. They initially match 'r' in &quot;brisket&quot; and 'h' in &quot;chop.&quot;</p> </td> </tr> <tr> <td><code>[\\b]</code></td> <td> <p>Matches a backspace. (Not to be confused with <code>\\b</code>.)</p> </td> </tr> <tr> <td><code>\\b</code></td> <td> <p>Matches a word boundary, such as a space. (Not to be confused with <code>[\\b]</code>.)</p> <p>For example, <code>/\\bn\\w/</code> matches the 'no' in &quot;noonday&quot;; <code>/\\wy\\b/</code> matches the 'ly' in &quot;possibly yesterday.&quot;</p> </td> </tr> <tr> <td><code>\\B</code></td> <td> <p>Matches a non-word boundary.</p> <p>For example, <code>/\\w\\Bn/</code> matches 'on' in &quot;noonday&quot;, and <code>/y\\B\\w/</code> matches 'ye' in &quot;possibly yesterday.&quot;</p> </td> </tr> <tr> <td><code>\\c<em>X</em></code></td> <td> <p>Where <code><em>X</em></code> is a letter from A - Z. Matches a control character in a string.</p> <p>For example, <code>/\\cM/</code> matches control-M in a string.</p> </td> </tr> <tr> <td><code>\\d</code></td> <td> <p>Matches a digit character in the basic Latin alphabet. Equivalent to <code>[0-9]</code>.</p> <p><strong>Note</strong>: In Firefox 2 and earlier, matches a digit character from any alphabet. (\n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=378738\" class = \"external\" title = \"VERIFIED FIXED - \\d pattern matches characters other than the decimal digits 0-9 (ecma_3/RegExp/15.10.2.12.js)\">\nbug 378738</a>\n)</p> <p>For example, <code>/\\d/</code> or <code>/[0-9]/</code> matches '2' in &quot;B2 is the suite number.&quot;</p> </td> </tr> <tr> <td><code>\\D</code></td> <td> <p>Matches any character that is not a digit in the basic Latin alphabet. Equivalent to <code>[^0-9]</code>.</p> <p><strong>Note</strong>: In Firefox 2 and earlier, excludes digit characters from all alphabets. (\n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=378738\" class = \"external\" title = \"VERIFIED FIXED - \\d pattern matches characters other than the decimal digits 0-9 (ecma_3/RegExp/15.10.2.12.js)\">\nbug 378738</a>\n)</p> <p>For example, <code>/\\D/</code> or <code>/[^0-9]/</code> matches 'B' in &quot;B2 is the suite number.&quot;</p> </td> </tr> <tr> <td><code>\\f</code></td> <td> <p>Matches a form-feed.</p> </td> </tr> <tr> <td><code>\\n</code></td> <td> <p>Matches a linefeed.</p> </td> </tr> <tr> <td><code>\\r</code></td> <td> <p>Matches a carriage return.</p> </td> </tr> <tr> <td><code>\\s</code></td> <td> <p>Matches a single white space character, including space, tab, form feed, line feed and other unicode spaces.\n<sup id = \"ref_equivalent_s\" class = \"reference plainlinksneverexpand\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#endnote_equivalent_s\">[equivalent_s]</a></sup></p> <p>For example, <code>/\\s\\w*/</code> matches ' bar' in &quot;foo bar.&quot;</p> </td> </tr> <tr> <td><code>\\S</code></td> <td> <p>Matches a single character other than white space.\n<sup id = \"ref_equivalent_S\" class = \"reference plainlinksneverexpand\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#endnote_equivalent_S\">[equivalent_S]</a></sup></p> <p>For example, <code>/\\S\\w*/</code> matches 'foo' in &quot;foo bar.&quot;</p> </td> </tr> <tr> <td><code>\\t</code></td> <td> <p>Matches a tab.</p> </td> </tr> <tr> <td><code>\\v</code></td> <td> <p>Matches a vertical tab.</p> </td> </tr> <tr> <td><code>\\w</code></td> <td> <p>Matches any alphanumeric character from the basic Latin alphabet, including the underscore. Equivalent to <code>[A-Za-z0-9_]</code>.</p> <p>For example, <code>/\\w/</code> matches 'a' in &quot;apple,&quot; '5' in &quot;$5.28,&quot; and '3' in &quot;3D.&quot;</p> </td> </tr> <tr> <td><code>\\W</code></td> <td> <p>Matches any character that is not a word character from the basic Latin alphabet. Equivalent to <code>[^A-Za-z0-9_]</code>.</p> <p>For example, <code>/\\W/</code> or <code>/[^A-Za-z0-9_]/</code> matches '%' in &quot;50%.&quot;</p> </td> </tr> <tr> <td><code>\\<em>n</em></code></td> <td> <p>Where <code><em>n</em></code> is a positive integer. A back reference to the last substring matching the n parenthetical in the regular expression (counting left parentheses).</p> <p>For example, <code>/apple(,)\\sorange\\1/</code> matches 'apple, orange,' in &quot;apple, orange, cherry, peach.&quot; A more complete example follows this table.</p> </td> </tr> <tr> <td><code>\\0</code></td> <td> <p>Matches a NUL character. Do not follow this with another digit.</p> </td> </tr> <tr> <td><code>\\x<em>hh</em></code></td> <td> <p>Matches the character with the code <code><em>hh</em></code> (two hexadecimal digits)</p> </td> </tr> <tr> <td><code>\\u<em>hhhh</em></code></td> <td> <p>Matches the character with the Unicode value <code><em>hhhh</em></code> (four hexadecimal digits).</p> </td> </tr> </tbody>\n</table>\n<p>The literal notation provides compilation of the regular expression when the expression is evaluated. Use literal notation when the regular expression will remain constant. For example, if you use literal notation to construct a regular expression used in a loop, the regular expression won't be recompiled on each iteration.</p>\n<p>The constructor of the regular expression object, for example, <code>new RegExp(&quot;ab+c&quot;)</code>, provides runtime compilation of the regular expression. Use the constructor function when you know the regular expression pattern will be changing, or you don't know the pattern and are getting it from another source, such as user input.</p>\n<ol> <li>\n<span id = \"endnote_equivalent_s\"><strong><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#ref_equivalent_s\">^</a></strong></span>Equivalent to: <p><code>[\\t\\n\\v\\f\\r \\u00a0\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u200b\\u2028\\u2029\\u3000]</code></p> </li> <li>\n<span id = \"endnote_equivalent_S\"><strong><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#ref_equivalent_S\">^</a></strong></span>Equivalent to:\n<p><code>[^\\t\\n\\v\\f\\r \\u00a0\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u200b\\u2028\\u2029\\u3000]</code></p></li>\n</ol></div>",
			"<div id = \"section_6\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>RegExp</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#Properties_2\">Properties of RegExp instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/prototype\">prototype</a></dt> <dd>Allows the addition of properties to all objects.</dd>\n</dl>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Arity\" title = \"en/JavaScript/Reference/Global_Objects/Function/Arity\"><code>arity</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Caller\" title = \"en/JavaScript/Reference/Global_Objects/Function/Caller\"><code>caller</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Function/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Length\" title = \"en/JavaScript/Reference/Global_Objects/Function/Length\"><code>length</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name\" title = \"en/JavaScript/Reference/Global_Objects/Function/Name\"><code>name</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>RegExp</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#Methods_2\">Methods of RegExp instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The global <code>RegExp</code> object has no methods of its own, however, it does inherit some methods through the prototype chain.</p>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Apply\" title = \"en/JavaScript/Reference/Global_Objects/Function/Apply\"><code>apply</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Call\" title = \"en/JavaScript/Reference/Global_Objects/Function/Call\"><code>call</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToString\"><code>toString</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_8\"><span id = \"RegExp_instances\"></span><h2 class = \"editable\"><code>RegExp</code> instances</h2>\n<div id = \"section_9\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<p>See also <a title = \"en/JavaScript/Reference/Deprecated_Features#RegExp_Properties\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Deprecated_Features#RegExp_Properties\">Deprecated RegExp Properties</a></p>\n<p>Note that several of the <code>RegExp</code> properties have both long and short (Perl-like) names. Both names always refer to the same value. Perl is the programming language from which JavaScript modeled its regular expressions.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/constructor\"><code>constructor</code></a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/global\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/global\"><code>global</code></a></dt> <dd>Whether to test the regular expression against all possible matches in a string, or only against the first.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/ignoreCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/ignoreCase\"><code>ignoreCase</code></a></dt> <dd>Whether to ignore case while attempting a match in a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/lastIndex\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/lastIndex\"><code>lastIndex</code></a></dt> <dd>The index at which to start the next match.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/multiline\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/multiline\"><code>multiline</code></a></dt> <dd>Whether or not to search in strings across multiple lines.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/source\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/source\"><code>source</code></a></dt> <dd>The text of the pattern.</dd> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/sticky\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/sticky\" class = \"new \">sticky</a></code></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding:0px 2px;\">New in <a rel = \"custom\" href = \"https://developer.mozilla.org/en/Firefox_3_for_developers\">Firefox 3</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Whether or not the search is sticky.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</p>\n</div><div id = \"section_10\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt></dt> See also <a title = \"en/JavaScript/Reference/Deprecated_Features#RegExp_Methods\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Deprecated_Features#RegExp_Methods\">Deprecated RegExp Methods</a></dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/exec\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/exec\"><code>exec</code></a></dt> <dd>Executes a search for a match in its string parameter.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/test\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/test\"><code>test</code></a></dt> <dd>Tests for a match in its string parameter.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toSource\"><code>toSource</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns an object literal representing the specified object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toString\">toString</a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a> method.</dd> </dl> <div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div> </p></div></div>",
			"<div id = \"section_9\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<p>See also <a title = \"en/JavaScript/Reference/Deprecated_Features#RegExp_Properties\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Deprecated_Features#RegExp_Properties\">Deprecated RegExp Properties</a></p>\n<p>Note that several of the <code>RegExp</code> properties have both long and short (Perl-like) names. Both names always refer to the same value. Perl is the programming language from which JavaScript modeled its regular expressions.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/constructor\"><code>constructor</code></a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/global\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/global\"><code>global</code></a></dt> <dd>Whether to test the regular expression against all possible matches in a string, or only against the first.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/ignoreCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/ignoreCase\"><code>ignoreCase</code></a></dt> <dd>Whether to ignore case while attempting a match in a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/lastIndex\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/lastIndex\"><code>lastIndex</code></a></dt> <dd>The index at which to start the next match.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/multiline\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/multiline\"><code>multiline</code></a></dt> <dd>Whether or not to search in strings across multiple lines.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/source\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/source\"><code>source</code></a></dt> <dd>The text of the pattern.</dd> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/sticky\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/sticky\" class = \"new \">sticky</a></code></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding:0px 2px;\">New in <a rel = \"custom\" href = \"https://developer.mozilla.org/en/Firefox_3_for_developers\">Firefox 3</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Whether or not the search is sticky.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<dl> <dt></dt> See also <a title = \"en/JavaScript/Reference/Deprecated_Features#RegExp_Methods\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Deprecated_Features#RegExp_Methods\">Deprecated RegExp Methods</a></dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/exec\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/exec\"><code>exec</code></a></dt> <dd>Executes a search for a match in its string parameter.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/test\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/test\"><code>test</code></a></dt> <dd>Tests for a match in its string parameter.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toSource\"><code>toSource</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns an object literal representing the specified object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toString\">toString</a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a> method.</dd> </dl> <div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div> </p></div>",
			"<div id = \"section_11\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_12\"><span id = \"Example:_Using_a_regular_expression_to_change_data_format\"></span><h3 class = \"editable\">Example: Using a regular expression to change data format</h3>\n<p>The following script uses the <a title = \"en/JavaScript/Reference/Global_Objects/String/replace\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace\">replace</a> method inherited by the <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\">String</a> instance to match a name in the format <em>first last</em> and output it in the format <em>last</em>, <em>first</em>. In the replacement text, the script uses <code>$1</code> and <code>$2</code> to indicate the results of the corresponding matching parentheses in the regular expression pattern.</p>\n\r\n          <pre name = \"code\" class = \"js\">var re = /(\\w+)\\s(\\w+)/;\nvar str = &quot;John Smith&quot;;\nvar newstr = str.replace(re, &quot;$2, $1&quot;);\nprint(newstr);</pre>\r\n        \n<p>This displays &quot;Smith, John&quot;.</p>\n</div><div id = \"section_13\"><span id = \"Example:_Using_a_regular_expression_with_the_.22sticky.22_flag\"></span><h3 class = \"editable\">Example: Using a regular expression with the &quot;sticky&quot; flag</h3>\n<p>This example demonstrates how one could use the sticky flag on regular expressions to match individual lines of multiline input.</p>\n\r\n          <pre name = \"code\" class = \"js\">var text = &quot;First line\\nsecond line&quot;;\nvar regex = /(\\S+) line\\n?/y;\n\nvar match = regex.exec(text);\nprint(match[1]);  // prints &quot;First&quot;\nprint(regex.lastIndex); // prints 11\n\nvar match2 = regex.exec(text);\nprint(match2[1]); // prints &quot;Second&quot;\nprint(regex.lastIndex); // prints &quot;22&quot;\n\nvar match3 = regex.exec(text);\nprint(match3 === null); // prints &quot;true&quot;</pre>\r\n        \n<p>One can test at run-time whether the sticky flag is supported, using <code>try&nbsp;{&nbsp;&hellip;&nbsp;} catch&nbsp;{&nbsp;&hellip;&nbsp;}</code>. For this, either an <code>eval(&hellip;)</code> expression or the <code>RegExp(<var>regex-string</var>,&nbsp;<var>flags-string</var>)</code> syntax must be used (since the <code>/<var>regex</var>/<var>flags</var></code> notation is processed at compile-time, so throws an exception before the <code>catch</code> block is encountered). For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">var supports_sticky;\ntry { RegExp('','y'); supports_sticky = true; }\ncatch(e) { supports_sticky = false; }\nalert(supports_sticky); // alerts &quot;false&quot; in Firefox 2, &quot;true&quot; in Firefox 3+</pre>\r\n        \n</div></div>",
			"<div id = \"section_12\"><span id = \"Example:_Using_a_regular_expression_to_change_data_format\"></span><h3 class = \"editable\">Example: Using a regular expression to change data format</h3>\n<p>The following script uses the <a title = \"en/JavaScript/Reference/Global_Objects/String/replace\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace\">replace</a> method inherited by the <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\">String</a> instance to match a name in the format <em>first last</em> and output it in the format <em>last</em>, <em>first</em>. In the replacement text, the script uses <code>$1</code> and <code>$2</code> to indicate the results of the corresponding matching parentheses in the regular expression pattern.</p>\n\r\n          <pre name = \"code\" class = \"js\">var re = /(\\w+)\\s(\\w+)/;\nvar str = &quot;John Smith&quot;;\nvar newstr = str.replace(re, &quot;$2, $1&quot;);\nprint(newstr);</pre>\r\n        \n<p>This displays &quot;Smith, John&quot;.</p>\n</div>",
			"<div id = \"section_13\"><span id = \"Example:_Using_a_regular_expression_with_the_.22sticky.22_flag\"></span><h3 class = \"editable\">Example: Using a regular expression with the &quot;sticky&quot; flag</h3>\n<p>This example demonstrates how one could use the sticky flag on regular expressions to match individual lines of multiline input.</p>\n\r\n          <pre name = \"code\" class = \"js\">var text = &quot;First line\\nsecond line&quot;;\nvar regex = /(\\S+) line\\n?/y;\n\nvar match = regex.exec(text);\nprint(match[1]);  // prints &quot;First&quot;\nprint(regex.lastIndex); // prints 11\n\nvar match2 = regex.exec(text);\nprint(match2[1]); // prints &quot;Second&quot;\nprint(regex.lastIndex); // prints &quot;22&quot;\n\nvar match3 = regex.exec(text);\nprint(match3 === null); // prints &quot;true&quot;</pre>\r\n        \n<p>One can test at run-time whether the sticky flag is supported, using <code>try&nbsp;{&nbsp;&hellip;&nbsp;} catch&nbsp;{&nbsp;&hellip;&nbsp;}</code>. For this, either an <code>eval(&hellip;)</code> expression or the <code>RegExp(<var>regex-string</var>,&nbsp;<var>flags-string</var>)</code> syntax must be used (since the <code>/<var>regex</var>/<var>flags</var></code> notation is processed at compile-time, so throws an exception before the <code>catch</code> block is encountered). For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">var supports_sticky;\ntry { RegExp('','y'); supports_sticky = true; }\ncatch(e) { supports_sticky = false; }\nalert(supports_sticky); // alerts &quot;false&quot; in Firefox 2, &quot;true&quot; in Firefox 3+</pre>\r\n        \n</div>",
			"<div id = \"section_14\"><span id = \"Browser_Compatibility\"></span><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE&nbsp;Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n</div>",
			"<div id = \"section_15\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Guide/Regular_Expressions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions\">Regular Expressions</a> chapter in the <a title = \"en/Core_JavaScript_1.5_Guide\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide\">JavaScript Guide</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Special characters in regular expressions",
			"Properties",
			"Methods",
			"RegExp instances",
			"Properties",
			"Methods",
			"Examples",
			"Example: Using a regular expression to change data format",
			"Example: Using a regular expression with the &quot;sticky&quot; flag",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String",
		"title": "String",
		"_id": "4eea837ba4c86c4dba000009",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The <code>String</code> global object is a constructor for strings, or a sequence of characters.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p>String literals take the forms:</p>\n\r\n          <pre name = \"code\" class = \"js\">'string text'\n&quot;string text&quot;</pre>\r\n        \n<p>Or, using the <code>String</code> global object directly:</p>\n\r\n          <pre name = \"code\" class = \"js\">String(thing)\nnew String(thing)</pre>\r\n        \n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>thing</code></dt> <dd>Anything to be converted to a string.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>Strings are useful for holding data that can be represented in text form. Some of the most-used operations on strings are to check their <code><a title = \"en/JavaScript/Reference/Global_Objects/String/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/length\">length</a></code>, to build and concatenate them using the <a title = \"en/JavaScript/Reference/Operators/String_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/String_Operators\">+ and += string operators</a>, and checking for the existence or location of substrings with the <code><a title = \"en/JavaScript/Reference/Global_Objects/String/substring\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substring\">substring</a></code> and <code><a title = \"en/JavaScript/Reference/Global_Objects/String/substr\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substr\">substr</a></code> methods.</p>\n<div id = \"section_5\"><span id = \"Character_access\"></span><h3 class = \"editable\">Character access</h3>\n<p>There are two ways to access an individual character in a string. The first is the <a title = \"en/JavaScript/Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\"><code>charAt</code></a> method:</p>\n\r\n          <pre name = \"code\" class = \"js\">return 'cat'.charAt(1); // returns &quot;a&quot;</pre>\r\n        \n<p>The other way is to treat the string as an array-like object, where individual characters correspond to a numerical index:</p>\n\r\n          <pre name = \"code\" class = \"js\">return 'cat'[1]; // returns &quot;a&quot;</pre>\r\n        \n<div class = \"note\">Array-like character access (the second way above) is not part of ECMAScript 3. It is a JavaScript and ECMAScript 5 feature.</div>\n<p>For character access using bracket notation, attempting to delete or assign a value to these properties will not succeed. The properties involved are neither writable nor configurable. (See <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty\">Object.defineProperty</a></code> for more information.)</p>\n</div><div id = \"section_6\"><span id = \"Comparing_strings\"></span><h3 class = \"editable\">Comparing strings</h3>\n<p>C developers have the <code>strcmp()</code> function for comparing strings. In JavaScript, you just use the <a title = \"en/JavaScript/Reference/Operators/Comparison_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comparison_Operators\">less-than and greater-than operators</a>:</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = &quot;a&quot;;\nvar b = &quot;b&quot;;\nif (a &lt; b) // true\n  print(a + &quot; is less than &quot; + b);\nelse if (a &gt; b)\n  print(a + &quot; is greater than &quot; + b);\nelse\n  print(a + &quot; and &quot; + b + &quot; are equal.&quot;);</pre>\r\n        \n<p>A similar result can be achieved using the <a title = \"en/JavaScript/Reference/Global_Objects/String/localeCompare\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare\"><code>localeCompare</code></a> method inherited by <code>String</code> instances.</p>\n</div><div id = \"section_7\"><span id = \"Distinction_between_string_primitives_and_String_objects\"></span><h3 class = \"editable\">Distinction between string primitives and <code>String</code> objects</h3>\n<p>Note that JavaScript distinguishes between <code>String</code> objects and primitive string values. (The same is true of <a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">booleans</a> and <a title = \"en/JavaScript/Reference/Global_Objects/\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects\">numbers</a>.)</p>\n<p>String literals (denoted by double or single quotes) and strings returned from <code>String</code> calls in a non-constructor context (i.e., without using the <a title = \"en/JavaScript/Reference/Operators/Special/new\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/new\"><code>new</code> keyword</a>) are primitive strings. JavaScript automatically converts primitives and <code>String</code> objects, so that it's possible to use <code>String</code> object methods for primitive strings. In contexts where a method is to be invoked on a primitive string or a property lookup occurs, JavaScript will automatically wrap the string primitive and call the method or perform the property lookup.</p>\n\r\n          <pre name = \"code\" class = \"js\">var s_prim = &quot;foo&quot;;\nvar s_obj = new String(s_prim);\n\nconsole.log(typeof s_prim); // Logs &quot;string&quot;\nconsole.log(typeof s_obj);  // Logs &quot;object&quot;</pre>\r\n        \n<p>String primitives and <code>String</code> objects also give different results when using <code><a title = \"en/JavaScript/Reference/Global_Objects/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a></code>. Primitives passed to <code>eval</code> are treated as source code; <code>String</code> objects are treated as all other objects are, by returning the object. For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">s1 = &quot;2 + 2&quot;;               // creates a string primitive\ns2 = new String(&quot;2 + 2&quot;);   // creates a String object\nconsole.log(eval(s1));      // returns the number 4\nconsole.log(eval(s2));      // returns the string &quot;2 + 2&quot;</pre>\r\n        \n<p>For these reasons, code may break when it encounters <code>String</code> objects when it expects a primitive string instead, although generally authors need not worry about the distinction.</p>\n<p>A <code>String</code> object can always be converted to its primitive counterpart with the <a title = \"en/JavaScript/Reference/Global_Objects/String/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/valueOf\"><code>valueOf</code></a> method.</p>\n\r\n          <pre name = \"code\" class = \"js\">console.log(eval(s2.valueOf())); // returns the number 4</pre>\r\n        \n</div></div>",
			"<div id = \"section_5\"><span id = \"Character_access\"></span><h3 class = \"editable\">Character access</h3>\n<p>There are two ways to access an individual character in a string. The first is the <a title = \"en/JavaScript/Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\"><code>charAt</code></a> method:</p>\n\r\n          <pre name = \"code\" class = \"js\">return 'cat'.charAt(1); // returns &quot;a&quot;</pre>\r\n        \n<p>The other way is to treat the string as an array-like object, where individual characters correspond to a numerical index:</p>\n\r\n          <pre name = \"code\" class = \"js\">return 'cat'[1]; // returns &quot;a&quot;</pre>\r\n        \n<div class = \"note\">Array-like character access (the second way above) is not part of ECMAScript 3. It is a JavaScript and ECMAScript 5 feature.</div>\n<p>For character access using bracket notation, attempting to delete or assign a value to these properties will not succeed. The properties involved are neither writable nor configurable. (See <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty\">Object.defineProperty</a></code> for more information.)</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Comparing_strings\"></span><h3 class = \"editable\">Comparing strings</h3>\n<p>C developers have the <code>strcmp()</code> function for comparing strings. In JavaScript, you just use the <a title = \"en/JavaScript/Reference/Operators/Comparison_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comparison_Operators\">less-than and greater-than operators</a>:</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = &quot;a&quot;;\nvar b = &quot;b&quot;;\nif (a &lt; b) // true\n  print(a + &quot; is less than &quot; + b);\nelse if (a &gt; b)\n  print(a + &quot; is greater than &quot; + b);\nelse\n  print(a + &quot; and &quot; + b + &quot; are equal.&quot;);</pre>\r\n        \n<p>A similar result can be achieved using the <a title = \"en/JavaScript/Reference/Global_Objects/String/localeCompare\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare\"><code>localeCompare</code></a> method inherited by <code>String</code> instances.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"Distinction_between_string_primitives_and_String_objects\"></span><h3 class = \"editable\">Distinction between string primitives and <code>String</code> objects</h3>\n<p>Note that JavaScript distinguishes between <code>String</code> objects and primitive string values. (The same is true of <a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">booleans</a> and <a title = \"en/JavaScript/Reference/Global_Objects/\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects\">numbers</a>.)</p>\n<p>String literals (denoted by double or single quotes) and strings returned from <code>String</code> calls in a non-constructor context (i.e., without using the <a title = \"en/JavaScript/Reference/Operators/Special/new\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/new\"><code>new</code> keyword</a>) are primitive strings. JavaScript automatically converts primitives and <code>String</code> objects, so that it's possible to use <code>String</code> object methods for primitive strings. In contexts where a method is to be invoked on a primitive string or a property lookup occurs, JavaScript will automatically wrap the string primitive and call the method or perform the property lookup.</p>\n\r\n          <pre name = \"code\" class = \"js\">var s_prim = &quot;foo&quot;;\nvar s_obj = new String(s_prim);\n\nconsole.log(typeof s_prim); // Logs &quot;string&quot;\nconsole.log(typeof s_obj);  // Logs &quot;object&quot;</pre>\r\n        \n<p>String primitives and <code>String</code> objects also give different results when using <code><a title = \"en/JavaScript/Reference/Global_Objects/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a></code>. Primitives passed to <code>eval</code> are treated as source code; <code>String</code> objects are treated as all other objects are, by returning the object. For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">s1 = &quot;2 + 2&quot;;               // creates a string primitive\ns2 = new String(&quot;2 + 2&quot;);   // creates a String object\nconsole.log(eval(s1));      // returns the number 4\nconsole.log(eval(s2));      // returns the string &quot;2 + 2&quot;</pre>\r\n        \n<p>For these reasons, code may break when it encounters <code>String</code> objects when it expects a primitive string instead, although generally authors need not worry about the distinction.</p>\n<p>A <code>String</code> object can always be converted to its primitive counterpart with the <a title = \"en/JavaScript/Reference/Global_Objects/String/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/valueOf\"><code>valueOf</code></a> method.</p>\n\r\n          <pre name = \"code\" class = \"js\">console.log(eval(s2.valueOf())); // returns the number 4</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>String</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String#Properties_2\">Properties of String instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/prototype\"><code>prototype</code></a></dt> <dd>Allows the addition of properties to a String object.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Arity\" title = \"en/JavaScript/Reference/Global_Objects/Function/Arity\"><code>arity</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Caller\" title = \"en/JavaScript/Reference/Global_Objects/Function/Caller\"><code>caller</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Function/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Length\" title = \"en/JavaScript/Reference/Global_Objects/Function/Length\"><code>length</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name\" title = \"en/JavaScript/Reference/Global_Objects/Function/Name\"><code>name</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>String</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String#Methods_2\">Methods of String instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fromCharCode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fromCharCode\"><code>fromCharCode</code></a></dt> <dd>Returns a string created by using the specified sequence of Unicode values.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Apply\" title = \"en/JavaScript/Reference/Global_Objects/Function/Apply\"><code>apply</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Call\" title = \"en/JavaScript/Reference/Global_Objects/Function/Call\"><code>call</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Function/ToString\"><code>toString</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_10\"><span id = \"String_instances\"></span><h2 class = \"editable\"><code>String</code> instances</h2>\n<div id = \"section_11\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/constructor\"><code>constructor</code></a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/length\"><code>length</code></a></dt> <dd>Reflects the length of the string.</dd> <dt><em>N</em></dt> <dd>Used to access the character in the <em>N</em>th position where <em>N</em> is a positive integer between 0 and one less than the value of <a title = \"en/JavaScript/Reference/Global_Objects/String/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/length\"><code>length</code></a>. These properties are read-only.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</p>\n</div><div id = \"section_12\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n\n <span id = \"Methods_unrelated_to_HTML\"></span><span id = \"Methods_unrelated_to_HTML\"></span><h4>Methods unrelated to HTML</h4>\n\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\"><code>charAt</code></a></dt> <dd>Returns the character at the specified index.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/charCodeAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt\"><code>charCodeAt</code></a></dt> <dd>Returns a number indicating the Unicode value of the character at the given index.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/concat\"><code>concat</code></a></dt> <dd>Combines the text of two strings and returns a new string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf\"><code>indexOf</code></a></dt> <dd>Returns the index within the calling String object of the first occurrence of the specified value, or -1 if not found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/lastIndexOf\"><code>lastIndexOf</code></a></dt> <dd>Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/localeCompare\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare\"><code>localeCompare</code></a></dt> <dd>Returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/match\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/match\"><code>match</code></a></dt> <dd>Used to match a regular expression against a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/quote\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/quote\"><code>quote</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Wraps the string in double quotes (&quot;<code>&quot;</code>&quot;).</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/replace\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace\"><code>replace</code></a></dt> <dd>Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/search\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/search\"><code>search</code></a></dt> <dd>Executes the search for a match between a regular expression and a specified string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/slice\"><code>slice</code></a></dt> <dd>Extracts a section of a string and returns a new string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/split\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split\"><code>split</code></a></dt> <dd>Splits a String object into an array of strings by separating the string into substrings.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/substr\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substr\"><code>substr</code></a></dt> <dd>Returns the characters in a string beginning at the specified location through the specified number of characters.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/substring\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substring\"><code>substring</code></a></dt> <dd>Returns the characters in a string between two indexes into the string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase\"><code>toLocaleLowerCase</code></a></dt> <dd>The characters within a string are converted to lower case while respecting the current locale. For most languages, this will return the same as <a title = \"en/JavaScript/Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\"><code>toLowerCase</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase\"><code>toLocaleUpperCase</code></a></dt> <dd>The characters within a string are converted to upper case while respecting the current locale. For most languages, this will return the same as <a title = \"en/JavaScript/Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\"><code>toUpperCase</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\"><code>toLowerCase</code></a></dt> <dd>Returns the calling string value converted to lower case.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toSource\"><code>toSource</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns an object literal representing the specified object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toString\"><code>toString</code></a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\"><code>toUpperCase</code></a></dt> <dd>Returns the calling string value converted to uppercase.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trim\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/Trim\"><code>trim</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n<br/> Trims whitespace from the beginning and end of the string. Part of the ECMAScript 5 standard.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trimLeft\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimLeft\"><code>trimLeft</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Trims whitespace from the left side of the string.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trimRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimRight\"><code>trimRight</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Trims whitespace from the right side of the string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/valueOf\"><code>valueOf</code></a></dt> <dd>Returns the primitive value of the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\"><code>Object.prototype.valueOf</code></a> method.</dd>\n</dl>\n\n <span id = \"HTML_wrapper_methods\"></span><span id = \"HTML_wrapper_methods\"></span><h4>HTML wrapper methods</h4>\n\n<p>\n\n<div style = \"overflow:hidden; border: 1px solid #FFB752; background-color: #FEE3BC; font-weight: bold; text-align: center; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\"><p style = \"margin: 4px 0px 4px 0px;\">Non-standard</p></div></p>\n<p> Each of the following methods returns a copy of the string wrapped inside the appropriate HTML tag.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/anchor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/anchor\"><code>anchor</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" target = \"_blank\"><code>&lt;a name=&quot;<em>name</em>&quot;&gt;</code></a> (hypertext target)</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/big\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/big\"><code>big</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" target = \"_blank\"><code>&lt;big&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/blink\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/blink\"><code>blink</code></a></dt> <dd><code>&lt;blink&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/bold\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/bold\"><code>bold</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" target = \"_blank\"><code>&lt;b&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fixed\"><code>fixed</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" target = \"_blank\"><code>&lt;tt&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fontcolor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontcolor\"><code>fontcolor</code></a></dt> <dd><code>&lt;font color=&quot;<em>color</em>&quot;&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fontsize\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontsize\"><code>fontsize</code></a></dt> <dd><code>&lt;font size=&quot;<em>size</em>&quot;&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/italics\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/italics\"><code>italics</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" target = \"_blank\"><code>&lt;i&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/link\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/link\"><code>link</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" target = \"_blank\"><code>&lt;a href=&quot;<em>url</em>&quot;&gt;</code></a> (link to URL)</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/small\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/small\"><code>small</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" target = \"_blank\"><code>&lt;small&gt;</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/strike\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/strike\"><code>strike</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" target = \"_blank\"><code>&lt;strike&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/sub\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sub\"><code>sub</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" target = \"_blank\"><code>&lt;sub&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/sup\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sup\"><code>sup</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" target = \"_blank\"><code>&lt;sup&gt;</code></a></dd>\n</dl>\n<p>These methods are of limited use, as they provide only a subset of the available HTML tags and attributes.</p>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</p>\n</div><div id = \"section_13\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n<p>It's possible to use <code>String</code> as a &quot;safer&quot; <code><a title = \"en/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/toString\">toString</a></code> alternative, as although it still normally calls the underlying <code>toString</code>, it also works for <code>null</code> and <code>undefined</code>. For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">var outputStrings = [];\nfor (let i = 0, n = inputValues.length; i &lt; n; ++i) {\n  outputStrings.push(String(inputValues[i]));\n}</pre>\r\n        \n<p></p></div></div>",
			"<div id = \"section_11\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/constructor\"><code>constructor</code></a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/length\"><code>length</code></a></dt> <dd>Reflects the length of the string.</dd> <dt><em>N</em></dt> <dd>Used to access the character in the <em>N</em>th position where <em>N</em> is a positive integer between 0 and one less than the value of <a title = \"en/JavaScript/Reference/Global_Objects/String/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/length\"><code>length</code></a>. These properties are read-only.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</p>\n</div>",
			"<div id = \"section_12\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n\n <span id = \"Methods_unrelated_to_HTML\"></span><span id = \"Methods_unrelated_to_HTML\"></span><h4>Methods unrelated to HTML</h4>\n\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\"><code>charAt</code></a></dt> <dd>Returns the character at the specified index.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/charCodeAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt\"><code>charCodeAt</code></a></dt> <dd>Returns a number indicating the Unicode value of the character at the given index.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/concat\"><code>concat</code></a></dt> <dd>Combines the text of two strings and returns a new string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf\"><code>indexOf</code></a></dt> <dd>Returns the index within the calling String object of the first occurrence of the specified value, or -1 if not found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/lastIndexOf\"><code>lastIndexOf</code></a></dt> <dd>Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/localeCompare\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare\"><code>localeCompare</code></a></dt> <dd>Returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/match\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/match\"><code>match</code></a></dt> <dd>Used to match a regular expression against a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/quote\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/quote\"><code>quote</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Wraps the string in double quotes (&quot;<code>&quot;</code>&quot;).</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/replace\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace\"><code>replace</code></a></dt> <dd>Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/search\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/search\"><code>search</code></a></dt> <dd>Executes the search for a match between a regular expression and a specified string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/slice\"><code>slice</code></a></dt> <dd>Extracts a section of a string and returns a new string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/split\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split\"><code>split</code></a></dt> <dd>Splits a String object into an array of strings by separating the string into substrings.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/substr\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substr\"><code>substr</code></a></dt> <dd>Returns the characters in a string beginning at the specified location through the specified number of characters.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/substring\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substring\"><code>substring</code></a></dt> <dd>Returns the characters in a string between two indexes into the string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase\"><code>toLocaleLowerCase</code></a></dt> <dd>The characters within a string are converted to lower case while respecting the current locale. For most languages, this will return the same as <a title = \"en/JavaScript/Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\"><code>toLowerCase</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase\"><code>toLocaleUpperCase</code></a></dt> <dd>The characters within a string are converted to upper case while respecting the current locale. For most languages, this will return the same as <a title = \"en/JavaScript/Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\"><code>toUpperCase</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\"><code>toLowerCase</code></a></dt> <dd>Returns the calling string value converted to lower case.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toSource\"><code>toSource</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns an object literal representing the specified object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toString\"><code>toString</code></a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\"><code>toUpperCase</code></a></dt> <dd>Returns the calling string value converted to uppercase.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trim\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/Trim\"><code>trim</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n<br/> Trims whitespace from the beginning and end of the string. Part of the ECMAScript 5 standard.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trimLeft\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimLeft\"><code>trimLeft</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Trims whitespace from the left side of the string.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trimRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimRight\"><code>trimRight</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Trims whitespace from the right side of the string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/valueOf\"><code>valueOf</code></a></dt> <dd>Returns the primitive value of the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\"><code>Object.prototype.valueOf</code></a> method.</dd>\n</dl>\n\n <span id = \"HTML_wrapper_methods\"></span><span id = \"HTML_wrapper_methods\"></span><h4>HTML wrapper methods</h4>\n\n<p>\n\n<div style = \"overflow:hidden; border: 1px solid #FFB752; background-color: #FEE3BC; font-weight: bold; text-align: center; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\"><p style = \"margin: 4px 0px 4px 0px;\">Non-standard</p></div></p>\n<p> Each of the following methods returns a copy of the string wrapped inside the appropriate HTML tag.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/anchor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/anchor\"><code>anchor</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" target = \"_blank\"><code>&lt;a name=&quot;<em>name</em>&quot;&gt;</code></a> (hypertext target)</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/big\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/big\"><code>big</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" target = \"_blank\"><code>&lt;big&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/blink\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/blink\"><code>blink</code></a></dt> <dd><code>&lt;blink&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/bold\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/bold\"><code>bold</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" target = \"_blank\"><code>&lt;b&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fixed\"><code>fixed</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" target = \"_blank\"><code>&lt;tt&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fontcolor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontcolor\"><code>fontcolor</code></a></dt> <dd><code>&lt;font color=&quot;<em>color</em>&quot;&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fontsize\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontsize\"><code>fontsize</code></a></dt> <dd><code>&lt;font size=&quot;<em>size</em>&quot;&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/italics\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/italics\"><code>italics</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" target = \"_blank\"><code>&lt;i&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/link\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/link\"><code>link</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" target = \"_blank\"><code>&lt;a href=&quot;<em>url</em>&quot;&gt;</code></a> (link to URL)</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/small\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/small\"><code>small</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" target = \"_blank\"><code>&lt;small&gt;</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/strike\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/strike\"><code>strike</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" target = \"_blank\"><code>&lt;strike&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/sub\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sub\"><code>sub</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" target = \"_blank\"><code>&lt;sub&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/sup\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sup\"><code>sup</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" target = \"_blank\"><code>&lt;sup&gt;</code></a></dd>\n</dl>\n<p>These methods are of limited use, as they provide only a subset of the available HTML tags and attributes.</p>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</p>\n</div>",
			"<div id = \"section_13\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n<p>It's possible to use <code>String</code> as a &quot;safer&quot; <code><a title = \"en/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/toString\">toString</a></code> alternative, as although it still normally calls the underlying <code>toString</code>, it also works for <code>null</code> and <code>undefined</code>. For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">var outputStrings = [];\nfor (let i = 0, n = inputValues.length; i &lt; n; ++i) {\n  outputStrings.push(String(inputValues[i]));\n}</pre>\r\n        \n<p></p></div>",
			"<div id = \"section_14\"><span id = \"Browser_Compatibility\"></span><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td>0.2</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE&nbsp;Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Character access",
			"Comparing strings",
			"Distinction between string primitives and String objects",
			"Properties",
			"Methods",
			"String instances",
			"Properties",
			"Methods",
			"Example",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer",
		"title": "ArrayBuffer",
		"_id": "4eea837fa4c86c4dba00000a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>ArrayBuffer <a title = \"en/JavaScript typed arrays/ArrayBuffer#ArrayBuffer()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer#ArrayBuffer()\">ArrayBuffer</a>(unsigned long length);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Attributes\"></span><h2 class = \"editable\">Attributes</h2>\n<table class = \"standard-table\" style = \"width: auto;\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>byteLength</code></td> <td><code>unsigned long</code></td> <td>The size, in bytes, of the array. This is established when the array is constructed and cannot be changed. <strong>Read only.</strong></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_4\"><span id = \"ArrayBuffer()\"></span><h3 class = \"editable\">ArrayBuffer()</h3>\n<p>The constructor accepts as input a byte length for the new buffer, and returns the newly-created <code>ArrayBuffer</code> object.</p>\n<pre>\nArrayBuffer ArrayBuffer(\n&nbsp; unsigned long length\n);\n</pre>\n<div id = \"section_5\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt>length</dt> <dd>The size, in bytes, of the array buffer to create.</dd>\n</dl>\n</div><div id = \"section_6\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>ArrayBuffer</code> object of the specified size. Its contents are initialized to 0.</p>\n</div></div></div>",
			"<div id = \"section_4\"><span id = \"ArrayBuffer()\"></span><h3 class = \"editable\">ArrayBuffer()</h3>\n<p>The constructor accepts as input a byte length for the new buffer, and returns the newly-created <code>ArrayBuffer</code> object.</p>\n<pre>\nArrayBuffer ArrayBuffer(\n&nbsp; unsigned long length\n);\n</pre>\n<div id = \"section_5\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt>length</dt> <dd>The size, in bytes, of the array buffer to create.</dd>\n</dl>\n</div><div id = \"section_6\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>ArrayBuffer</code> object of the specified size. Its contents are initialized to 0.</p>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt>length</dt> <dd>The size, in bytes, of the array buffer to create.</dd>\n</dl>\n</div>",
			"<div id = \"section_6\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>ArrayBuffer</code> object of the specified size. Its contents are initialized to 0.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n<p>In this example, we create a 32-byte buffer:</p>\n\r\n          <pre name = \"code\" class = \"js\">var buf = new ArrayBuffer(32);</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>7</td> <td>4.0 (2)\n</td> <td>10</td> <td>11.6</td> <td>5.1</td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>4.0</td> <td>4.0 (2)\n</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>4.2</td> </tr> </tbody> </table>\n</div>\n</div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a class = \"link-https\" title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Method overview",
			"Attributes",
			"Methods",
			"ArrayBuffer()",
			"",
			"",
			"Example",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array",
		"title": "Float32Array",
		"_id": "4eea8381a4c86c4dba00000b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Constructors\"></span><h2 class = \"editable\">Constructors</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>Float32Array <a title = \"en/JavaScript typed arrays/Float32Array#Float32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array#Float32Array()\">Float32Array</a>(unsigned long length);<br/> </code></td> </tr> <tr> <td><code>Float32Array </code><code><a title = \"en/JavaScript typed arrays/Float32Array#Float32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array#Float32Array%28%29\">Float32Array</a></code><code>(<em>TypedArray</em> array);<br/> </code></td> </tr> <tr> <td><code>Float32Array </code><code><a title = \"en/JavaScript typed arrays/Float32Array#Float32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array#Float32Array%28%29\">Float32Array</a></code><code>(sequence&lt;type&gt; array);<br/> </code></td> </tr> <tr> <td><code>Float32Array </code><code><a title = \"en/JavaScript typed arrays/Float32Array#Float32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array#Float32Array%28%29\">Float32Array</a></code><code>(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length);<br/> </code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(<em>TypedArray</em> array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(type[] array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>Float32Array <a title = \"en/JavaScript typed arrays/Int8Array#subarray()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#subarray%28%29\">subarray</a>(long begin, optional long end);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Attributes\"></span><h2 class = \"editable\">Attributes</h2>\n<table style = \"width: auto;\" class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>length</code></td> <td><code>unsigned long<br/> </code></td> <td>The number of entries in the array. <strong>Read only.</strong></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Constants\"></span><h2 class = \"editable\">Constants</h2>\n<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>4</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>4</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Constructor\"></span><h2 class = \"editable\">Constructor</h2>\n<p>Returns a new <code>Float32Array</code> object.</p>\n<pre>\nFloat32Array Float32Array(\n&nbsp; unsigned long length\n);\n\nFloat32Array Float32Array(\n&nbsp; <em>TypedArray</em> array\n);\n\nFloat32Array Float32Array(\n&nbsp; sequence&lt;type&gt; array\n);\n\nFloat32Array Float32Array(\n&nbsp; ArrayBuffer buffer,\n&nbsp; optional unsigned long byteOffset,\n&nbsp; optional unsigned long length\n);\n</pre>\n<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <span style = \"font-family: monospace;\">Uint8</span><code>Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 32-bit floating point number before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Float32Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Float32Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div><div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Float32Array</code> object representing the specified data buffer.</p>\n</div><div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of 32-bit floats, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 32-bit float.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 32-bit float.</p>\n<p>The final form of the constructor creates a new <code>Float32Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div><div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <span style = \"font-family: monospace;\">Uint8</span><code>Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 32-bit floating point number before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Float32Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Float32Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Float32Array</code> object representing the specified data buffer.</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of 32-bit floats, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 32-bit float.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 32-bit float.</p>\n<p>The final form of the constructor creates a new <code>Float32Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div>",
			"<div id = \"section_11\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div><div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Float32Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Float32Array</code> object.</p>\n<pre>\nFloat32Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Float32Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Float32Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div></div>",
			"<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div>",
			"<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div>",
			"<div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Float32Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Float32Array</code> object.</p>\n<pre>\nFloat32Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Float32Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Float32Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div>",
			"<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Float32Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Float32Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div>",
			"<div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div>",
			"<div id = \"section_17\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" class = \" link-https\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Constructors",
			"Method overview",
			"Attributes",
			"Constants",
			"Element size",
			"Constructor",
			"",
			"",
			"",
			"",
			"Methods",
			"set()",
			"",
			"subarray()",
			"",
			"",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array",
		"title": "Float64Array",
		"_id": "4eea8387a4c86c4dba00000c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Constructors\"></span><h2 class = \"editable\">Constructors</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>Float64Array <a title = \"en/JavaScript typed arrays/Float64Array#Float64Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array#Float64Array%28%29\">Float64Array</a>(unsigned long length);<br/> </code></td> </tr> <tr> <td><code>Float64Array </code><code><a title = \"en/JavaScript typed arrays/Float64Array#Float64Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array#Float64Array%28%29\">Float64Array</a></code><code>(<em>TypedArray</em> array);<br/> </code></td> </tr> <tr> <td><code>Float64Array </code><code><a title = \"en/JavaScript typed arrays/Float64Array#Float64Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array#Float64Array%28%29\">Float64Array</a></code><code>(sequence&lt;type&gt; array);<br/> </code></td> </tr> <tr> <td><code>Float64Array </code><code><a title = \"en/JavaScript typed arrays/Float64Array#Float64Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array#Float64Array%28%29\">Float64Array</a></code><code>(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length);<br/> </code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(<em>TypedArray</em> array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(type[] array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>Float64Array <a title = \"en/JavaScript typed arrays/Int8Array#subarray()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#subarray%28%29\">subarray</a>(long begin, optional long end);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Attributes\"></span><h2 class = \"editable\">Attributes</h2>\n<table style = \"width: auto;\" class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>length</code></td> <td><code>unsigned long<br/> </code></td> <td>The number of entries in the array. <strong>Read only.</strong></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Constants\"></span><h2 class = \"editable\">Constants</h2>\n<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>8</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>8</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Constructor\"></span><h2 class = \"editable\">Constructor</h2>\n<p>Returns a new <code>Float64Array</code> object.</p>\n<pre>\nFloat64Array Float64Array(\n&nbsp; unsigned long length\n);\n\nFloat64Array Float64Array(\n&nbsp; <em>TypedArray</em> array\n);\n\nFloat64Array Float64Array(\n&nbsp; sequence&lt;type&gt; array\n);\n\nFloat64Array Float64Array(\n&nbsp; ArrayBuffer buffer,\n&nbsp; optional unsigned long byteOffset,\n&nbsp; optional unsigned long length\n);\n</pre>\n<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <span style = \"font-family: monospace;\">Uint8</span><code>Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 64-bit floating point number before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Float64Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Float64Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div><div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Float64Array</code> object representing the specified data buffer.</p>\n</div><div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of 64-bit floats, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 64-bit float.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 64-bit float.</p>\n<p>The final form of the constructor creates a new <code>Float64Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div><div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <span style = \"font-family: monospace;\">Uint8</span><code>Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 64-bit floating point number before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Float64Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Float64Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Float64Array</code> object representing the specified data buffer.</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of 64-bit floats, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 64-bit float.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 64-bit float.</p>\n<p>The final form of the constructor creates a new <code>Float64Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div>",
			"<div id = \"section_11\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div><div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Float64Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Float64Array</code> object.</p>\n<pre>\nFloat64Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Float64Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Float64Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div></div>",
			"<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div>",
			"<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div>",
			"<div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Float64Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Float64Array</code> object.</p>\n<pre>\nFloat64Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Float64Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Float64Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div>",
			"<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Float64Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Float64Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div>",
			"<div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div>",
			"<div id = \"section_17\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" class = \" link-https\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Constructors",
			"Method overview",
			"Attributes",
			"Constants",
			"Element size",
			"Constructor",
			"",
			"",
			"",
			"",
			"Methods",
			"set()",
			"",
			"subarray()",
			"",
			"",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array",
		"title": "Int16Array",
		"_id": "4eea8387a4c86c4dba00000d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Constructors\"></span><h2 class = \"editable\">Constructors</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>Int16Array <a title = \"en/JavaScript typed arrays/Int16Array#Int16Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array#Int16Array()\">Int16Array</a>(unsigned long length);<br/> </code></td> </tr> <tr> <td><code>Int16Array </code><code><a title = \"en/JavaScript typed arrays/Int16Array#Int16Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array#Int16Array%28%29\">Int16Array</a></code><code>(<em>TypedArray</em> array);<br/> </code></td> </tr> <tr> <td><code>Int16Array </code><code><a title = \"en/JavaScript typed arrays/Int16Array#Int16Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array#Int16Array%28%29\">Int16Array</a></code><code>(sequence&lt;type&gt; array);<br/> </code></td> </tr> <tr> <td><code>Int16Array </code><code><a title = \"en/JavaScript typed arrays/Int16Array#Int16Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array#Int16Array%28%29\">Int16Array</a></code><code>(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length);<br/> </code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(<em>TypedArray</em> array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(type[] array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>Int16Array <a title = \"en/JavaScript typed arrays/Int8Array#subarray()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#subarray%28%29\">subarray</a>(long begin, optional long end);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Attributes\"></span><h2 class = \"editable\">Attributes</h2>\n<table class = \"standard-table\" style = \"width: auto;\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>length</code></td> <td><code>unsigned long<br/> </code></td> <td>The number of entries in the array. <strong>Read only.</strong></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Constants\"></span><h2 class = \"editable\">Constants</h2>\n<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>2</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>2</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Constructor\"></span><h2 class = \"editable\">Constructor</h2>\n<p>Returns a new <code>Int16Array</code> object.</p>\n<pre>\nInt16Array Int16Array(\n&nbsp; unsigned long length\n);\n\nInt16Array Int16Array(\n&nbsp; <em>TypedArray</em> array\n);\n\nInt16Array Int16Array(\n&nbsp; sequence&lt;type&gt; array\n);\n\nInt16Array Int16Array(\n&nbsp; ArrayBuffer buffer,\n&nbsp; optional unsigned long byteOffset,\n&nbsp; optional unsigned long length\n);\n</pre>\n<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int32Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 16-bit signed integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Int16Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Int16Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div><div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Int16Array</code> object representing the specified data buffer.</p>\n</div><div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of signed 16-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 16-bit signed integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 16-bit signed integer.</p>\n<p>The final form of the constructor creates a new <code>Int16Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div><div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int32Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 16-bit signed integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Int16Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Int16Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Int16Array</code> object representing the specified data buffer.</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of signed 16-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 16-bit signed integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 16-bit signed integer.</p>\n<p>The final form of the constructor creates a new <code>Int16Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div>",
			"<div id = \"section_11\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div><div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Int16Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Int16Array</code> object.</p>\n<pre>\nInt16Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Int16Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Int16Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div></div>",
			"<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div>",
			"<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div>",
			"<div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Int16Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Int16Array</code> object.</p>\n<pre>\nInt16Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Int16Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Int16Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div>",
			"<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Int16Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Int16Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div>",
			"<div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div>",
			"<div id = \"section_17\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a class = \" link-https\" title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Constructors",
			"Method overview",
			"Attributes",
			"Constants",
			"Element size",
			"Constructor",
			"",
			"",
			"",
			"",
			"Methods",
			"set()",
			"",
			"subarray()",
			"",
			"",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array",
		"title": "Int32Array",
		"_id": "4eea8388a4c86c4dba00000e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Constructors\"></span><h2 class = \"editable\">Constructors</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>Int32Array <a title = \"en/JavaScript typed arrays/Int32Array#Int32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array#Int32Array()\">Int32Array</a>(unsigned long length);<br/> </code></td> </tr> <tr> <td><code>Int32Array </code><code><a title = \"en/JavaScript typed arrays/Int32Array#Int32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array#Int32Array%28%29\">Int32Array</a></code><code>(<em>TypedArray</em> array);<br/> </code></td> </tr> <tr> <td><code>Int32Array </code><code><a title = \"en/JavaScript typed arrays/Int32Array#Int32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array#Int32Array%28%29\">Int32Array</a></code><code>(sequence&lt;type&gt; array);<br/> </code></td> </tr> <tr> <td><code>Int32Array </code><code><a title = \"en/JavaScript typed arrays/Int32Array#Int32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array#Int32Array%28%29\">Int32Array</a></code><code>(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length);<br/> </code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(<em>TypedArray</em> array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(type[] array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>Int32Array <a title = \"en/JavaScript typed arrays/Int8Array#subarray()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#subarray%28%29\">subarray</a>(long begin, optional long end);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Attributes\"></span><h2 class = \"editable\">Attributes</h2>\n<table class = \"standard-table\" style = \"width: auto;\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>length</code></td> <td><code>unsigned long<br/> </code></td> <td>The number of entries in the array. <strong>Read only.</strong></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Constants\"></span><h2 class = \"editable\">Constants</h2>\n<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>4</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>4</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Constructor\"></span><h2 class = \"editable\">Constructor</h2>\n<p>Returns a new <code>Int32Array</code> object.</p>\n<pre>\nInt32Array Int32Array(\n&nbsp; unsigned long length\n);\n\nInt32Array Int32Array(\n&nbsp; <em>TypedArray</em> array\n);\n\nInt32Array Int32Array(\n&nbsp; sequence&lt;type&gt; array\n);\n\nInt32Array Int32Array(\n&nbsp; ArrayBuffer buffer,\n&nbsp; optional unsigned long byteOffset,\n&nbsp; optional unsigned long length\n);\n</pre>\n<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int16Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 32-bit signed integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Int32Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Int32Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div><div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Int32Array</code> object representing the specified data buffer.</p>\n</div><div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of signed 32-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 32-bit signed integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 32-bit signed integer.</p>\n<p>The final form of the constructor creates a new <code>Int32Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div><div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int16Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 32-bit signed integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Int32Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Int32Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Int32Array</code> object representing the specified data buffer.</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of signed 32-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 32-bit signed integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 32-bit signed integer.</p>\n<p>The final form of the constructor creates a new <code>Int32Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div>",
			"<div id = \"section_11\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div><div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Int32Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Int32Array</code> object.</p>\n<pre>\nInt32Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Int32Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to one past the last element in the array to be referenced by the new <code>Int32Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div></div>",
			"<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div>",
			"<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div>",
			"<div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Int32Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Int32Array</code> object.</p>\n<pre>\nInt32Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Int32Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to one past the last element in the array to be referenced by the new <code>Int32Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div>",
			"<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Int32Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to one past the last element in the array to be referenced by the new <code>Int32Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div>",
			"<div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div>",
			"<div id = \"section_17\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a class = \"link-https\" title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Constructors",
			"Method overview",
			"Attributes",
			"Constants",
			"Element size",
			"Constructor",
			"",
			"",
			"",
			"",
			"Methods",
			"set()",
			"",
			"subarray()",
			"",
			"",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array",
		"title": "Int8Array",
		"_id": "4eea838aa4c86c4dba00000f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Constructors\"></span><h2 class = \"editable\">Constructors</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>Int8Array <a title = \"en/JavaScript typed arrays/Int8Array#Int8Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#Int8Array%28%29\">Int8Array</a>(unsigned long length);<br/> </code></td> </tr> <tr> <td><code>Int8Array <a title = \"en/JavaScript typed arrays/Int8Array#Int8Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#Int8Array%28%29\">Int8Array</a>(<em>TypedArray</em> array);<br/> </code></td> </tr> <tr> <td><code>Int8Array <a title = \"en/JavaScript typed arrays/Int8Array#Int8Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#Int8Array%28%29\">Int8Array</a>(sequence&lt;type&gt; array);<br/> </code></td> </tr> <tr> <td><code>Int8Array&nbsp;<a title = \"en/JavaScript typed arrays/Int8Array#Int8Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#Int8Array%28%29\">Int8Array</a>(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length);<br/> </code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set()\">set</a>(<em>TypedArray</em> array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set()\">set</a>(type[] array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>Int8Array <a title = \"en/JavaScript typed arrays/Int8Array#subarray()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#subarray()\">subarray</a>(long begin, optional long end);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Attributes\"></span><h2 class = \"editable\">Attributes</h2>\n<table style = \"width: auto;\" class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>length</code></td> <td><code>unsigned long<br/> </code></td> <td>The number of entries in the array; for these 8-bit values, this is the same as the size of the array in bytes. <strong>Read only.</strong></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Constants\"></span><h2 class = \"editable\">Constants</h2>\n<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>1</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>1</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Constructor\"></span><h2 class = \"editable\">Constructor</h2>\n<p>Returns a new <code>Int8Array</code> object.</p>\n<pre>\nInt8Array Int8Array(\n&nbsp; unsigned long length\n);\n\nInt8Array Int8Array(\n&nbsp; <em>TypedArray</em> array\n);\n\nInt8Array Int8Array(\n&nbsp; sequence&lt;type&gt; array\n);\n\nInt8Array Int8Array(\n&nbsp; ArrayBuffer buffer,\n&nbsp; optional unsigned long byteOffset,\n&nbsp; optional unsigned long length\n);\n</pre>\n<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int32Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to an 8-bit integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Int8Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Int8Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div><div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Int8Array</code> object representing the specified data buffer.</p>\n</div><div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of signed 8-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to an 8-bit signed integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to an 8-bit signed integer.</p>\n<p>The final form of the constructor creates a new <code>Int8Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div><div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int32Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to an 8-bit integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Int8Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Int8Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Int8Array</code> object representing the specified data buffer.</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of signed 8-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to an 8-bit signed integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to an 8-bit signed integer.</p>\n<p>The final form of the constructor creates a new <code>Int8Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div>",
			"<div id = \"section_11\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<dl></dl> <div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3> <p>Sets multiple values in the typed array, reading input values from a specified array.</p> <pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre> <div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6> <dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd> </dl> </div></div><div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3> <p>Returns a new <code>Int8Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Int8Array</code> object.</p> <pre>\nInt8Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre> <div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6> <dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Int8Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Int8Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd> </dl> </div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6> <p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p> <div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div> </div></div></div>",
			"<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3> <p>Sets multiple values in the typed array, reading input values from a specified array.</p> <pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre> <div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6> <dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd> </dl> </div></div>",
			"<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6> <dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd> </dl> </div>",
			"<div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3> <p>Returns a new <code>Int8Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Int8Array</code> object.</p> <pre>\nInt8Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre> <div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6> <dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Int8Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Int8Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd> </dl> </div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6> <p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p> <div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div> </div></div>",
			"<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6> <dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Int8Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Int8Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd> </dl> </div>",
			"<div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6> <p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p> <div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div> </div>",
			"<div id = \"section_17\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2> <ul> <li><a title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" class = \" link-https\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li> </ul></div>"
		],
		"sectionNames": [
			"Constructors",
			"Method overview",
			"Attributes",
			"Constants",
			"Element size",
			"Constructor",
			"",
			"",
			"",
			"",
			"Methods",
			"set()",
			"",
			"subarray()",
			"",
			"",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array",
		"title": "Uint16Array",
		"_id": "4eea838da4c86c4dba000010",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Constructors\"></span><h2 class = \"editable\">Constructors</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>Uint16Array <a title = \"en/JavaScript typed arrays/Uint16Array#Uint16Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array#Uint16Array()\">Uint16Array</a>(unsigned long length);<br/> </code></td> </tr> <tr> <td><code>Uint16Array </code><code><a title = \"en/JavaScript typed arrays/Uint16Array#Uint16Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array#Uint16Array%28%29\">Uint16Array</a></code><code>(<em>TypedArray</em> array);<br/> </code></td> </tr> <tr> <td><code>Uint16Array </code><code><a title = \"en/JavaScript typed arrays/Uint16Array#Uint16Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array#Uint16Array%28%29\">Uint16Array</a></code><code>(sequence&lt;type&gt; array);<br/> </code></td> </tr> <tr> <td><code>Uint16Array </code><code><a title = \"en/JavaScript typed arrays/Uint16Array#Uint16Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array#Uint16Array%28%29\">Uint16Array</a></code><code>(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length);<br/> </code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(<em>TypedArray</em> array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(type[] array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>Uint16Array <a title = \"en/JavaScript typed arrays/Int8Array#subarray()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#subarray%28%29\">subarray</a>(long begin, optional long end);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Attributes\"></span><h2 class = \"editable\">Attributes</h2>\n<table class = \"standard-table\" style = \"width: auto;\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>length</code></td> <td><code>unsigned long<br/> </code></td> <td>The number of entries in the array. <strong>Read only.</strong></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Constants\"></span><h2 class = \"editable\">Constants</h2>\n<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>2</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>2</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Constructor\"></span><h2 class = \"editable\">Constructor</h2>\n<p>Returns a new <code>Uint16Array</code> object.</p>\n<pre>\nUint16Array Uint16Array(\n&nbsp; unsigned long length\n);\n\nUint16Array Uint16Array(\n&nbsp; <em>TypedArray</em> array\n);\n\nUint16Array Uint16Array(\n&nbsp; sequence&lt;type&gt; array\n);\n\nUint16Array Uint16Array(\n&nbsp; ArrayBuffer buffer,\n&nbsp; optional unsigned long byteOffset,\n&nbsp; optional unsigned long length\n);\n</pre>\n<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int32Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 16-bit unsigned integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Uint16Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Uint16Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div><div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Uint16Array</code> object representing the specified data buffer.</p>\n</div><div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of unsigned 16-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 16-bit unsigned integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 16-bit unsigned integer.</p>\n<p>The final form of the constructor creates a new <code>Uint16Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div><div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int32Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 16-bit unsigned integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Uint16Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Uint16Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Uint16Array</code> object representing the specified data buffer.</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of unsigned 16-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 16-bit unsigned integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 16-bit unsigned integer.</p>\n<p>The final form of the constructor creates a new <code>Uint16Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div>",
			"<div id = \"section_11\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div><div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Uint16Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Uint16Array</code> object.</p>\n<pre>\nUint16Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Uint16Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Uint16Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div></div>",
			"<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div>",
			"<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div>",
			"<div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Uint16Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Uint16Array</code> object.</p>\n<pre>\nUint16Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Uint16Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Uint16Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div>",
			"<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Uint16Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Uint16Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div>",
			"<div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div>",
			"<div id = \"section_17\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a class = \" link-https\" title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Constructors",
			"Method overview",
			"Attributes",
			"Constants",
			"Element size",
			"Constructor",
			"",
			"",
			"",
			"",
			"Methods",
			"set()",
			"",
			"subarray()",
			"",
			"",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array",
		"title": "Uint32Array",
		"_id": "4eea8390a4c86c4dba000011",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Constructors\"></span><h2 class = \"editable\">Constructors</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>Uint32Array <a title = \"en/JavaScript typed arrays/Uint32Array#Uint32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array#Uint32Array()\">Uint32Array</a>(unsigned long length);<br/> </code></td> </tr> <tr> <td><code>Uint32Array </code><code><a title = \"en/JavaScript typed arrays/Uint32Array#Uint32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array#Uint32Array%28%29\">Uint32Array</a></code><code>(<em>TypedArray</em> array);<br/> </code></td> </tr> <tr> <td><code>Uint32Array </code><code><a title = \"en/JavaScript typed arrays/Uint32Array#Uint32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array#Uint32Array%28%29\">Uint32Array</a></code><code>(sequence&lt;type&gt; array);<br/> </code></td> </tr> <tr> <td><code>Uint32Array </code><code><a title = \"en/JavaScript typed arrays/Uint32Array#Uint32Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array#Uint32Array%28%29\">Uint32Array</a></code><code>(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length);<br/> </code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(<em>TypedArray</em> array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(type[] array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>Uint32Array <a title = \"en/JavaScript typed arrays/Int8Array#subarray()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#subarray%28%29\">subarray</a>(long begin, optional long end);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Attributes\"></span><h2 class = \"editable\">Attributes</h2>\n<table style = \"width: auto;\" class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>length</code></td> <td><code>unsigned long<br/> </code></td> <td>The number of entries in the array. <strong>Read only.</strong></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Constants\"></span><h2 class = \"editable\">Constants</h2>\n<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>4</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>4</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Constructor\"></span><h2 class = \"editable\">Constructor</h2>\n<p>Returns a new <code>Uint32Array</code> object.</p>\n<pre>\nUint32Array Uint32Array(\n&nbsp; unsigned long length\n);\n\nUint32Array Uint32Array(\n&nbsp; <em>TypedArray</em> array\n);\n\nUint32Array Uint32Array(\n&nbsp; sequence&lt;type&gt; array\n);\n\nUint32Array Uint32Array(\n&nbsp; ArrayBuffer buffer,\n&nbsp; optional unsigned long byteOffset,\n&nbsp; optional unsigned long length\n);\n</pre>\n<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int16Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 32-bit unsigned integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Uint32Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Uint32Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div><div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Uint32Array</code> object representing the specified data buffer.</p>\n</div><div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of unsigned 32-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 32-bit unsigned integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 32-bit unsigned integer.</p>\n<p>The final form of the constructor creates a new <code>Uint32Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div><div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int16Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to a 32-bit unsigned integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Uint32Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Uint32Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Uint32Array</code> object representing the specified data buffer.</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of unsigned 32-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to a 32-bit unsigned integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to a 32-bit unsigned integer.</p>\n<p>The final form of the constructor creates a new <code>Uint32Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div>",
			"<div id = \"section_11\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div><div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Uint32Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Uint32Array</code> object.</p>\n<pre>\nUint32Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Uint32Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Uint32Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div></div>",
			"<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div>",
			"<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div>",
			"<div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Uint32Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Uint32Array</code> object.</p>\n<pre>\nUint32Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Uint32Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Uint32Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div></div>",
			"<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Uint32Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the last element in the array to be referenced by the new <code>Uint32Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div>",
			"<div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either <code>begin</code> or <code>end</code> is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div>\n</div>",
			"<div id = \"section_17\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" class = \" link-https\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Constructors",
			"Method overview",
			"Attributes",
			"Constants",
			"Element size",
			"Constructor",
			"",
			"",
			"",
			"",
			"Methods",
			"set()",
			"",
			"subarray()",
			"",
			"",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array",
		"title": "Uint8Array",
		"_id": "4eea8390a4c86c4dba000012",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Constructors\"></span><h2 class = \"editable\">Constructors</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>Uint8Array <a title = \"en/JavaScript typed arrays/Uint8Array#Int8Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array#Int8Array%28%29\">Uint8Array</a>(unsigned long length);<br/> </code></td> </tr> <tr> <td><code>Uint8Array </code><code><a title = \"en/JavaScript typed arrays/Uint8Array#Int8Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array#Int8Array%28%29\">Uint8Array</a></code><code>(<em>TypedArray</em> array);<br/> </code></td> </tr> <tr> <td><code>Uint8Array </code><code><a title = \"en/JavaScript typed arrays/Uint8Array#Int8Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array#Int8Array%28%29\">Uint8Array</a></code><code>(sequence&lt;type&gt; array);<br/> </code></td> </tr> <tr> <td><code>Uint8Array </code><code><a title = \"en/JavaScript typed arrays/Uint8Array#Int8Array()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array#Int8Array%28%29\">Uint8Array</a></code><code>(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length);<br/> </code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<div class = \"note\"><strong>Note:</strong> In these methods, <code><em>TypedArray</em></code> represents any of the <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">typed array object types</a>.</div>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(<em>TypedArray</em> array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>void <a title = \"en/JavaScript typed arrays/Int8Array#set()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#set%28%29\">set</a>(type[] array, optional unsigned long offset);<br/> </code></td> </tr> <tr> <td><code>Uint8Array <a title = \"en/JavaScript typed arrays/Int8Array#subarray()\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array#subarray%28%29\">subarray</a>(long begin, optional long end);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Attributes\"></span><h2 class = \"editable\">Attributes</h2>\n<table style = \"width: auto;\" class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>length</code></td> <td><code>unsigned long<br/> </code></td> <td>The number of entries in the array; for these 8-bit values, this is the same as the size of the array in bytes. <strong>Read only.</strong></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Constants\"></span><h2 class = \"editable\">Constants</h2>\n<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>1</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Element_size\"></span><h3 class = \"editable\">Element size</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Constant</td> <td class = \"header\">Value</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>BYTES_PER_ELEMENT</code></td> <td>1</td> <td>The size, in bytes, of each array element.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Constructor\"></span><h2 class = \"editable\">Constructor</h2>\n<p>Returns a new Uint8Array object.</p>\n<pre>\nUint8Array Uint8Array(\n&nbsp; unsigned long length\n);\n\nUint8Array Uint8Array(\n&nbsp; <em>TypedArray</em> array\n);\n\nUint8Array Uint8Array(\n&nbsp; sequence&lt;type&gt; array\n);\n\nUint8Array Uint8Array(\n&nbsp; ArrayBuffer buffer,\n&nbsp; optional unsigned long byteOffset,\n&nbsp; optional unsigned long length\n);\n</pre>\n<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int32Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to an 8-bit unsigned integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Uint8Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Uint8Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div><div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Uint8Array</code> object representing the specified data buffer.</p>\n</div><div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of signed 8-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to an 8-bit signed integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to an 8-bit signed integer.</p>\n<p>The final form of the constructor creates a new <code>Uint8Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div><div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>length</code></dt> <dd>The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.</dd> <dt><code>array</code></dt> <dd>An object of any of the typed array types (such as <code>Int32Array</code>), or a sequence of objects of a particular type, to copy into a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>. Each value in the source array is converted to an 8-bit unsigned integer before being copied into the new array.</dd> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>Uint8Array</code> object.</dd> <dt><code>byteOffset<br/> </code></dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the <code>Uint8Array</code>'s view of the buffer will start with the first byte.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>Uint8Array</code> object representing the specified data buffer.</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Notes\"></span><h6 class = \"editable\">Notes</h6>\n<p>The first form of the constructor, accepting only a length, creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that can hold the specified number of signed 8-bit integers, then creates and returns a typed array view referring to that new buffer. The <code>length</code> must be specified in this case.</p>\n<p>The second form creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified array, except with each element in the new array converted to an 8-bit signed integer.</p>\n<p>The third form of the constructor likewise creates a new <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> object that is a duplicate of the specified JavaScript array, with each element in the new array converted to an 8-bit signed integer.</p>\n<p>The final form of the constructor creates a new <code>Uint8Array</code> object, using the specified <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> as its storage. This lets you access the existing buffer in a different format. If specified, the <code>byteOffset</code> and <code>length</code> parameters let you create the new view to only a portion of the buffer.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The specified <code>byteOffset</code> isn't a multiple of the element size, or the <code>byteOffset</code> and <code>length</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div>",
			"<div id = \"section_11\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div><div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Uint8Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Uint8Array</code> object.</p>\n<pre>\nUint8Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Uint8Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the element after last element in the array to be referenced by the new <code>Uint8Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either begin or end is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div></div></div></div>",
			"<div id = \"section_12\"><span id = \"set()\"></span><h3 class = \"editable\">set()</h3>\n<p>Sets multiple values in the typed array, reading input values from a specified array.</p>\n<pre>\nvoid set(\n&nbsp; <em>TypedArray</em> array,\n&nbsp; optional unsigned long offset\n);\n\nvoid set(\n&nbsp; type[] array,\n&nbsp; optional unsigned long offset\n);\n</pre>\n<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div></div>",
			"<div id = \"section_13\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>array</code></dt> <dd>An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying <code><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a></code>; the browser will intelligently copy the source range of the buffer to the destination range.</dd> <dt>offset \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset into the target array at which to begin writing values from the source <code>array</code>. If you omit this value, 0 is assumed (that is, the source <code>array</code> will overwrite values in the target array starting at index 0).</dd>\n</dl>\n</div>",
			"<div id = \"section_14\"><span id = \"subarray()\"></span><h3 class = \"editable\">subarray()</h3>\n<p>Returns a new <code>Uint8Array</code> view on the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> store for this <code>Uint8Array</code> object.</p>\n<pre>\nUint8Array subarray(\n&nbsp; long begin,\n&nbsp; optional long end\n);\n</pre>\n<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Uint8Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the element after last element in the array to be referenced by the new <code>Uint8Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div><div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either begin or end is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div></div></div>",
			"<div id = \"section_15\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>begin</code></dt> <dd>The offset to the first element in the array to be referenced by the new <code>Uint8Array</code> object.</dd> <dt><code>end</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset to the element after last element in the array to be referenced by the new <code>Uint8Array</code> object; if not specified, all elements from the one specified by <code>begin</code> to the end of the array are included in the new view.</dd>\n</dl>\n</div>",
			"<div id = \"section_16\"><span id = \"Notes_2\"></span><h6 class = \"editable\">Notes</h6>\n<p>The range specified by <code>begin</code> and <code>end</code> is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero. If either begin or end is negative, it refers to an index from the end of the array instead of from the beginning.</p>\n<div class = \"note\"><strong>Note:</strong> Keep in mind that this is creating a new view on the existing buffer; changes to the new object's contents will impact the original object and vice versa.</div></div>",
			"<div id = \"section_17\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" class = \" link-https\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Constructors",
			"Method overview",
			"Attributes",
			"Constants",
			"Element size",
			"Constructor",
			"",
			"",
			"",
			"",
			"Methods",
			"set()",
			"",
			"subarray()",
			"",
			"",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error",
		"title": "Error",
		"_id": "4eea8392a4c86c4dba000013",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Creates an error object.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>new Error([<em>message</em>[, <em>fileName</em>[, <em>lineNumber</em>]]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>message</code></dt> <dd>Human-readable description of the error</dd>\n</dl>\n<dl> <dt><code>fileName</code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the file containing the code that caused the exception</dd>\n</dl>\n<dl> <dt><code>lineNumber</code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The line number of the code that caused the exception</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Runtime errors result in new <code>Error</code> objects being created and thrown.</p>\n<p>This page documents the use of the <code>Error</code> object itself and its use as a constructor function. For a list of properties and methods inherited by <code>Error</code> instances, see <a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\">Error.prototype</a>.</p>\n<div id = \"section_5\"><span id = \"Error_types\"></span><h4 class = \"editable\">Error types</h4>\n<p>Besides the generic <code>Error</code> constructor, there are six other core error constructors in JavaScript. For client-side exceptions, see <a title = \"en/JavaScript/Guide/Statements#Exception Handling Statements\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Statements#Exception_Handling_Statements\">Exception Handling Statements</a>.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/EvalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError\">EvalError</a></dt> <dd>Creates an instance representing an error that occurs regarding the global function <a title = \"en/JavaScript/Reference/Global_Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval()</a></dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a></dt> <dd>Creates an instance representing an error that occurs when a numeric variable or parameter is outside of its valid range</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError\">ReferenceError</a></dt> <dd>Creates an instance representing an error that occurs when de-referencing an invalid reference</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError\">SyntaxError</a></dt> <dd>Creates an instance representing a syntax error that occurs while parsing code in <a title = \"en/JavaScript/Reference/Global_Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval()</a></dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\">TypeError</a></dt> <dd>Creates an instance representing an error that occurs when a variable or parameter is not of a valid type</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/URIError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError\">URIError</a></dt> <dd>Creates an instance representing an error that occurs when <a title = \"en/JavaScript/Reference/Global_Functions/encodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI\">encodeURI()</a> or <a title = \"en/JavaScript/Reference/Global_Functions/decodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURI\">decodeURI()</a> are passed invalid parameters</dd>\n</dl>\n</div><div id = \"section_6\"><span id = \"Custom_Error_Types\"></span><h4 class = \"editable\">Custom Error Types</h4>\n<p>The Error object can be extended to create Error Types for your project.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Create a new object, that prototypally inherits from the Error constructor.\nfunction MyError(message) {\n    this.name = &quot;MyError&quot;;\n    this.message = message || &quot;Default Message&quot;;\n}\nMyError.prototype = new Error();\nMyError.prototype.constructor = MyError;\n\ntry {\n    throw new MyError();\n} catch (e) {\n    console.log(e.name);     // &quot;MyError&quot;\n    console.log(e.message);  // &quot;Default Message&quot;\n}\n\ntry {\n    throw new MyError(&quot;custom message&quot;);\n} catch (e) {\n    console.log(e.name);     // &quot;MyError&quot;\n    console.log(e.message);  // &quot;custom message&quot;\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_5\"><span id = \"Error_types\"></span><h4 class = \"editable\">Error types</h4>\n<p>Besides the generic <code>Error</code> constructor, there are six other core error constructors in JavaScript. For client-side exceptions, see <a title = \"en/JavaScript/Guide/Statements#Exception Handling Statements\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Statements#Exception_Handling_Statements\">Exception Handling Statements</a>.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/EvalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError\">EvalError</a></dt> <dd>Creates an instance representing an error that occurs regarding the global function <a title = \"en/JavaScript/Reference/Global_Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval()</a></dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a></dt> <dd>Creates an instance representing an error that occurs when a numeric variable or parameter is outside of its valid range</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError\">ReferenceError</a></dt> <dd>Creates an instance representing an error that occurs when de-referencing an invalid reference</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError\">SyntaxError</a></dt> <dd>Creates an instance representing a syntax error that occurs while parsing code in <a title = \"en/JavaScript/Reference/Global_Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval()</a></dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\">TypeError</a></dt> <dd>Creates an instance representing an error that occurs when a variable or parameter is not of a valid type</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/URIError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError\">URIError</a></dt> <dd>Creates an instance representing an error that occurs when <a title = \"en/JavaScript/Reference/Global_Functions/encodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI\">encodeURI()</a> or <a title = \"en/JavaScript/Reference/Global_Functions/decodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURI\">decodeURI()</a> are passed invalid parameters</dd>\n</dl>\n</div>",
			"<div id = \"section_6\"><span id = \"Custom_Error_Types\"></span><h4 class = \"editable\">Custom Error Types</h4>\n<p>The Error object can be extended to create Error Types for your project.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Create a new object, that prototypally inherits from the Error constructor.\nfunction MyError(message) {\n    this.name = &quot;MyError&quot;;\n    this.message = message || &quot;Default Message&quot;;\n}\nMyError.prototype = new Error();\nMyError.prototype.constructor = MyError;\n\ntry {\n    throw new MyError();\n} catch (e) {\n    console.log(e.name);     // &quot;MyError&quot;\n    console.log(e.message);  // &quot;Default Message&quot;\n}\n\ntry {\n    throw new MyError(&quot;custom message&quot;);\n} catch (e) {\n    console.log(e.name);     // &quot;MyError&quot;\n    console.log(e.message);  // &quot;custom message&quot;\n}</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Properties\"></span><h3 class = \"editable\">Properties</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>Error</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Properties_2\">Properties of Error instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\">prototype</a></dt> <dd>Allows the addition of properties to <code>Error</code> instances.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acaller\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:caller\" class = \" new\">caller</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aconstructor\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:constructor\" class = \" new\">constructor</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Alength\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:length\" class = \" new\">length</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:name\" class = \" new\">name</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_8\"><span id = \"Methods\"></span><h3 class = \"editable\">Methods</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>Error</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Methods_2\">Methods of Error instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The global <code>Error</code> object contains no methods of its own, however, it does inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aapply\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:apply\" class = \" new\">apply</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acall\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:call\" class = \" new\">call</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toString\" class = \" new\">toString</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:valueOf\" class = \" new\">valueOf</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_9\"><span id = \"Error_instances\"></span><h3 class = \"editable\"><code>Error</code> instances</h3>\n<p>All <strong><code>Error</code></strong> instances and instances of <a title = \"en/JavaScript/Reference/Global_Objects/Error#Error_types\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\">non-generic errors</a> inherit from <strong><code>Error.prototype</code></strong>. As with all constructor functions, you can use the prototype of the constructor to add properties or methods to all instances created with that constructor.\n<p>&nbsp;</p>\n<span id = \"Properties\"></span><span id = \"Properties_2\"></span><h3>Properties</h3>\n<span id = \"Standard_properties\"></span><span id = \"Standard_properties\"></span><h4>Standard properties</h4>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">message</a></dt> <dd>Error message.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/name\">name</a></dt> <dd>Error name.</dd>\n</dl>\n<span id = \"Vendor-specific_extensions\"></span><span id = \"Vendor-specific_extensions\"></span><h4>Vendor-specific extensions</h4>\n<p>\n\n<div style = \"overflow:hidden; border: 1px solid #FFB752; background-color: #FEE3BC; font-weight: bold; text-align: center; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\"><p style = \"margin: 4px 0px 4px 0px;\">Non-standard</p></div></p>\n<span id = \"Microsoft\"></span><span id = \"Microsoft\"></span><h5>Microsoft</h5>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/description\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/description\" class = \"new \">description</a></dt> <dd>Error description. Similar to <a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">message</a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/number\" class = \"new \">number</a></dt> <dd>Error number.</dd>\n</dl>\n<span id = \"Mozilla\"></span><span id = \"Mozilla\"></span><h5>Mozilla</h5>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/fileName\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/fileName\" class = \"new \">fileName</a></dt> <dd>Path to file that raised this error.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/lineNumber\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/lineNumber\" class = \"new \">lineNumber</a></dt> <dd>Line number in file that raised this error.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/stack\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack\">stack</a></dt> <dd>Stack trace.</dd>\n</dl>\n<span id = \"Methods\"></span><span id = \"Methods_2\"></span><h3>Methods</h3>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/toSource\">toSource</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Returns a string containing the source of the specified <code>Error</code> object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/toString\">toString</a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a> method.</dd>\n</dl>\n<span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_10\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_11\"><span id = \"Example:_Throwing_a_generic_error\"></span><h4 class = \"editable\">Example: Throwing a generic error</h4>\n<p>Usually you create an Error object with the intention of raising it using the <a title = \"en/JavaScript/Reference/Statements/throw\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/throw\">throw</a> keyword. You can handle the error using the <a title = \"en/JavaScript/Reference/Statements/try...catch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/try...catch\">try...catch</a> construct:</p>\n\r\n          <pre name = \"code\" class = \"js\">try {\n    throw new Error(&quot;Whoops!&quot;);\n} catch (e) {\n    alert(e.name + &quot;: &quot; + e.message);\n}</pre>\r\n        \n</div><div id = \"section_12\"><span id = \"Example:_Handling_a_specific_error\"></span><h4 class = \"editable\">Example: Handling a specific error</h4>\n<p> You can choose to handle only specific error types by testing the error type with the error's <a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\">constructor</a> property or, if you're writing for modern JavaScript engines, <a title = \"en/JavaScript/Reference/Operators/Special_Operators/instanceof_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/instanceof\">instanceof</a> keyword:</p>\n\r\n          <pre name = \"code\" class = \"js\">try {\n    foo.bar();\n} catch (e) {\n    if (e instanceof EvalError) {\n        alert(e.name + &quot;: &quot; + e.message);\n    } else if (e instanceof RangeError) {\n        alert(e.name + &quot;: &quot; + e.message);\n    }\n    // ... etc\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_11\"><span id = \"Example:_Throwing_a_generic_error\"></span><h4 class = \"editable\">Example: Throwing a generic error</h4>\n<p>Usually you create an Error object with the intention of raising it using the <a title = \"en/JavaScript/Reference/Statements/throw\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/throw\">throw</a> keyword. You can handle the error using the <a title = \"en/JavaScript/Reference/Statements/try...catch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/try...catch\">try...catch</a> construct:</p>\n\r\n          <pre name = \"code\" class = \"js\">try {\n    throw new Error(&quot;Whoops!&quot;);\n} catch (e) {\n    alert(e.name + &quot;: &quot; + e.message);\n}</pre>\r\n        \n</div>",
			"<div id = \"section_12\"><span id = \"Example:_Handling_a_specific_error\"></span><h4 class = \"editable\">Example: Handling a specific error</h4>\n<p> You can choose to handle only specific error types by testing the error type with the error's <a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\">constructor</a> property or, if you're writing for modern JavaScript engines, <a title = \"en/JavaScript/Reference/Operators/Special_Operators/instanceof_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/instanceof\">instanceof</a> keyword:</p>\n\r\n          <pre name = \"code\" class = \"js\">try {\n    foo.bar();\n} catch (e) {\n    if (e instanceof EvalError) {\n        alert(e.name + &quot;: &quot; + e.message);\n    } else if (e instanceof RangeError) {\n        alert(e.name + &quot;: &quot; + e.message);\n    }\n    // ... etc\n}</pre>\r\n        \n</div>",
			"<div id = \"section_13\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\">Error.prototype</a></li> <li><a title = \"en/JavaScript/Reference/Statements/throw\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/throw\">throw</a></li> <li><a title = \"en/JavaScript/Reference/Statements/try...catch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/try...catch\">try...catch</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Error types",
			"Custom Error Types",
			"Properties",
			"Methods",
			"Error instancesPropertiesMethods",
			"Examples",
			"Example: Throwing a generic error",
			"Example: Handling a specific error",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError",
		"title": "EvalError",
		"_id": "4eea8395a4c86c4dba000014",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Represents an error regarding the <a title = \"en/JavaScript/Reference/Global_Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a> function.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>new EvalError([<em>message</em>[, <em>fileName</em>[, <em>lineNumber</em>]]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt>message</dt> <dd>Human-readable description of the error</dd>\n</dl>\n<dl> <dt>fileName</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the file containing the code that caused the exception</dd>\n</dl>\n<dl> <dt>lineNumber</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The line number of the code that caused the exception</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>An EvalError is thrown when <code><a title = \"en/JavaScript/Reference/Global_Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a></code> is used improperly.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h3 class = \"editable\">Properties</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>EvalError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError#Properties_2\">Properties of EvalError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/EvalError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError/prototype\">prototype</a></dt> <dd>Allows the addition of properties to an EvalError object.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acaller\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:caller\" class = \" new\">caller</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aconstructor\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:constructor\" class = \" new\">constructor</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Alength\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:length\" class = \" new\">length</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:name\" class = \" new\">name</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h3 class = \"editable\">Methods</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>EvalError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError#Methods_2\">Methods of EvalError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The global <code>EvalError</code> contains no methods of its own, however, it does inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aapply\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:apply\" class = \" new\">apply</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acall\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:call\" class = \" new\">call</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toString\" class = \" new\">toString</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:valueOf\" class = \" new\">valueOf</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_7\"><span id = \"EvalError_instances\"></span><h3 class = \"editable\"><code>EvalError</code> instances</h3>\n<div id = \"section_8\"><span id = \"Properties_2\"></span><h4 class = \"editable\">Properties</h4>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/EvalError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError/constructor\" class = \"new \"><code>constructor</code></a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/EvalError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError/name\" class = \"new \"><code>name</code></a></dt> <dd>Error name.</dd>\n</dl>\n<p><div class = \"note\"><strong>Note:</strong>&nbsp;Although ECMA-262 specifies that EvalError should provide its own message property, in SpiderMonkey, it inherits Error.prototype.message.</div>\n</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</p>\n</div><div id = \"section_9\"><span id = \"Methods_2\"></span><h4 class = \"editable\">Methods</h4>\n<p>\n<p>Although the <code>EvalError</code> prototype object does not contain any methods of its own, <strong><code>EvalError</code></strong> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span><br/>\n<span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</p>\n</div></div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><h4 class = \"editable\">Properties</h4>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/EvalError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError/constructor\" class = \"new \"><code>constructor</code></a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/EvalError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError/name\" class = \"new \"><code>name</code></a></dt> <dd>Error name.</dd>\n</dl>\n<p><div class = \"note\"><strong>Note:</strong>&nbsp;Although ECMA-262 specifies that EvalError should provide its own message property, in SpiderMonkey, it inherits Error.prototype.message.</div>\n</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><h4 class = \"editable\">Methods</h4>\n<p>\n<p>Although the <code>EvalError</code> prototype object does not contain any methods of its own, <strong><code>EvalError</code></strong> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span><br/>\n<span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_10\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li> <li><a title = \"en/JavaScript/Reference/Global_Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/EvalError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError/prototype\">EvalError.prototype</a></li>\n</ul>\n<p>&nbsp;</p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Properties",
			"Methods",
			"EvalError instances",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError",
		"title": "RangeError",
		"_id": "4eea8398a4c86c4dba000015",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents an error when a number is not within the correct range allowed.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>new RangeError([<em>message</em>[, <em>fileName</em>[, <em>lineNumber</em>]]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>message</dt> <dd>Human-readable description of the error</dd>\n</dl>\n<dl> <dt>fileName</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the file containing the code that caused the exception</dd>\n</dl>\n<dl> <dt>lineNumber</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The line number of the code that caused the exception</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>A RangeError is thrown when trying to pass a number as an argument to a function that does not allow a range that includes that number. This can be encountered when to create an array of an illegal length with the <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a> constructor, or when passing bad values to the numeric methods <a title = \"en/JavaScript/Reference/Global_Objects/Number/toExponential\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toExponential\">toExponential</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">toFixed</a>, or <a title = \"en/JavaScript/Reference/Global_Objects/Number/toPrecision\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toPrecision\">toPrecision</a>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>RangeError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError#Properties_2\">Properties of RangeError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RangeError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError/prototype\">prototype</a></dt> <dd>Allows the addition of properties to an RangeError object.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acaller\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:caller\" class = \" new\">caller</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aconstructor\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:constructor\" class = \" new\">constructor</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Alength\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:length\" class = \" new\">length</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:name\" class = \" new\">name</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>RangeError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError#Methods_2\">Methods of RangeError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The global <code>RangeError</code> contains no methods of its own, however, it does inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aapply\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:apply\" class = \" new\">apply</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acall\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:call\" class = \" new\">call</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toString\" class = \" new\">toString</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:valueOf\" class = \" new\">valueOf</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_7\"><span id = \"RangeError_instances\"></span><h2 class = \"editable\"><code>RangeError</code> instances</h2>\n<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RangeError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RangeError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError/name\" class = \"new \">name</a></dt> <dd>Error name.</dd>\n</dl>\n<div class = \"note\">Although <a title = \"en/ECMAScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a> specifies that <strong>RangeError</strong> should provide its own <code>message</code> property, in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a>, it inherits <a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">Error.prototype.message</a>.</div>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</p>\n</div><div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<p>Although the <code>RangeError</code> prototype object does not contain any methods of its own, <strong>RangeError</strong> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</p>\n</div></div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RangeError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RangeError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError/name\" class = \"new \">name</a></dt> <dd>Error name.</dd>\n</dl>\n<div class = \"note\">Although <a title = \"en/ECMAScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a> specifies that <strong>RangeError</strong> should provide its own <code>message</code> property, in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a>, it inherits <a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">Error.prototype.message</a>.</div>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<p>Although the <code>RangeError</code> prototype object does not contain any methods of its own, <strong>RangeError</strong> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_10\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RangeError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError/prototype\">RangeError.prototype</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toExponential\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toExponential\">toExponential</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">toFixed</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toPrecision\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toPrecision\">toPrecision</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Properties",
			"Methods",
			"RangeError instances",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError",
		"title": "ReferenceError",
		"_id": "4eea8399a4c86c4dba000016",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents an error when a non-existent variable is referenced.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>A ReferenceError is thrown when trying to dereference a variable that has not been declared.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>new ReferenceError(<em>[message[, fileName[, linenumber]]]</em>)</code></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>message</dt> <dd>Human-readable description of the error</dd>\n</dl>\n<dl> <dt>fileName</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the file containing the code that caused the exception</dd>\n</dl>\n<dl> <dt>lineNumber</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The line number of the code that caused the exception</dd>\n</dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>ReferenceError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError#Properties_2\">Properties of ReferenceError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/prototype\"><code>prototype</code></a></dt> <dd>Allows the addition of properties to an ReferenceError object.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acaller\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:caller\" class = \" new\">caller</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aconstructor\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:constructor\" class = \" new\">constructor</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Alength\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:length\" class = \" new\">length</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:name\" class = \" new\">name</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>ReferenceError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError#Methods_2\">Methods of ReferenceError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The global <code>ReferenceError</code> contains no methods of its own, however, it does inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aapply\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:apply\" class = \" new\">apply</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acall\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:call\" class = \" new\">call</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toString\" class = \" new\">toString</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:valueOf\" class = \" new\">valueOf</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_7\"><span id = \"ReferenceError_instances\"></span><h2 class = \"editable\"><code>ReferenceError</code> instances</h2>\n<div id = \"section_8\"><span id = \"Properties_2\"></span><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/name\"><code>name</code></a></dt> <dd>Error name.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</p>\n</div><div id = \"section_9\"><span id = \"Methods_2\"></span><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<p>Although the <code>ReferenceError</code> prototype object does not contain any methods of its own, <strong><code>ReferenceError</code></strong> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</p>\n</div></div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/name\"><code>name</code></a></dt> <dd>Error name.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<p>Although the <code>ReferenceError</code> prototype object does not contain any methods of its own, <strong><code>ReferenceError</code></strong> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_10\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\"><code>Error</code></a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/prototype\"><code>ReferenceError.prototype</code></a></li>\n</ul>\n<p>&nbsp;</p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Syntax",
			"Parameters",
			"Properties",
			"Methods",
			"ReferenceError instances",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError",
		"title": "SyntaxError",
		"_id": "4eea839ea4c86c4dba000017",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Represents an error when trying to interpret syntactically invalid code.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>A SyntaxError is thrown when the JavaScript engine encounters tokens or token order that does not conform to the syntax of the language when parsing code.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>new SyntaxError([<em>message</em>[, <em>fileName</em>[, <em>lineNumber</em>]]])</code></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt>message</dt> <dd>Human-readable description of the error</dd>\n</dl>\n<dl> <dt>fileName</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the file containing the code that caused the exception</dd>\n</dl>\n<dl> <dt>lineNumber</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The line number of the code that caused the exception</dd>\n</dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h3 class = \"editable\">Properties</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>SyntaxError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError#Properties_2\">Properties of SyntaxError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError/prototype\">prototype</a></dt> <dd>Allows the addition of properties to an SyntaxError object.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acaller\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:caller\" class = \" new\">caller</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aconstructor\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:constructor\" class = \" new\">constructor</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Alength\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:length\" class = \" new\">length</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:name\" class = \" new\">name</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h3 class = \"editable\">Methods</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>SyntaxError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError#Methods_2\">Methods of SyntaxError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The global <code>SyntaxError</code> contains no methods of its own, however, it does inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aapply\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:apply\" class = \" new\">apply</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acall\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:call\" class = \" new\">call</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toString\" class = \" new\">toString</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:valueOf\" class = \" new\">valueOf</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_7\"><span id = \"SyntaxError_instances\"></span><h3 class = \"editable\"><code>SyntaxError</code> instances</h3>\n<p>All SyntaxError instances inherit from <a title = \"en/JavaScript/Reference/Global Objects/SyntaxError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError/prototype\">SyntaxError.prototype</a>. You can use the prototype to add properties or methods to all instances.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError/constructor\" class = \"new \"><code>constructor</code></a></dt> <dd>Specifies the function that created an instance's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError/name\" class = \"new \">name</a></dt> <dd>Error name.</dd>\n</dl>\n<div class = \"note\"><strong>Note:</strong> Although <a title = \"en/ECMAScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a>&nbsp; specifies that <code>SyntaxError</code> should provide its own <code>message</code> property, in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"/en/SpiderMonkey\">SpiderMonkey</a>, it inherits <a title = \"en/JavaScript/Reference/Global Objects/Error/message\" rel = \"internal\" href = \"/en/JavaScript/Reference/Global_Objects/Error/message\">Error.prototype.message</a>.</div>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<p>Although the <code>SyntaxError</code> prototype object does not contain any methods of its own, <code>SyntaxError</code> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n<span id = \"See_also\"></span><span id = \"See_also\"></span><h3>See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\">Error.prototype</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">Function.prototype</a></li>\n</ul>\n<p></p></p>\n</div>",
			"<div id = \"section_10\"><span id = \"See_also_2\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError/prototype\">SyntaxError.prototype</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Syntax",
			"Parameters",
			"Properties",
			"Methods",
			"SyntaxError instances",
			"Properties",
			"MethodsSee also",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError",
		"title": "TypeError",
		"_id": "4eea83a0a4c86c4dba000018",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Represents an error when a value is not of the expected type.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>new TypeError([<em>message</em>[, <em>fileName</em>[, <em>lineNumber</em>]]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt>message</dt> <dd>Human-readable description of the error</dd>\n</dl>\n<dl> <dt>fileName</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the file containing the code that caused the exception</dd>\n</dl>\n<dl> <dt>lineNumber</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The line number of the code that caused the exception</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>A TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or function.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h3 class = \"editable\">Properties</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>TypeError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError#Properties_2\">Properties of TypeError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/TypeError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError/prototype\">prototype</a></dt> <dd>Allows the addition of properties to an TypeError object.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acaller\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:caller\" class = \" new\">caller</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aconstructor\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:constructor\" class = \" new\">constructor</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Alength\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:length\" class = \" new\">length</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:name\" class = \" new\">name</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h3 class = \"editable\">Methods</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>TypeError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError#Methods_2\">Methods of TypeError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The global <code>TypeError</code> contains no methods of its own, however, it does inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aapply\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:apply\" class = \" new\">apply</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acall\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:call\" class = \" new\">call</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toString\" class = \" new\">toString</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:valueOf\" class = \" new\">valueOf</a></small>\n</p>\n</div> </span> <span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_7\"><span id = \"TypeError_instances\"></span><h3 class = \"editable\"><code>TypeError</code> instances</h3>\n<p>All<code> TypeError</code> instances inherit from <a title = \"en/JavaScript/Reference/Global Objects/TypeError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError/prototype\"><code>TypeError.prototype</code></a>. You can use the prototype to add properties or methods to all instances.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/TypeError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/TypeError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError/name\" class = \"new \">name</a></dt> <dd>Error name.</dd>\n</dl>\n<div class = \"note\"><strong>Note:</strong> Although <a title = \"en/ECMA-262\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a> specifies that <code>TypeError</code> should provide its own <code>message</code> property, in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a>, it inherits <a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">Error.prototype.message</a>.</div>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<p>Although the <code>TypeError</code> prototype object does not contain any methods of its own, <code>TypeError</code> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_10\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/TypeError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError/prototype\">TypeError.prototype</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Properties",
			"Methods",
			"TypeError instances",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError",
		"title": "URIError",
		"_id": "4eea83a1a4c86c4dba000019",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Represents an error when a malformed URI is encountered.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>new URIError([<em>message</em>[, <em>fileName</em>[, <em>lineNumber</em>]]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt>message</dt> <dd>Human-readable description of the error</dd>\n</dl>\n<dl> <dt>fileName</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the file containing the code that caused the exception</dd>\n</dl>\n<dl> <dt>lineNumber</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The line number of the code that caused the exception</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>A URIError is thrown when the URI handling functions are passed a malformed URI.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Properties\"></span><h3 class = \"editable\">Properties</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For properties available on <code>URIError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError#Properties_2\">Properties of URIError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/URIError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError/prototype\">prototype</a></dt> <dd>Allows the addition of properties to a URIError object.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acaller\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:caller\" class = \" new\">caller</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aconstructor\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:constructor\" class = \" new\">constructor</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Alength\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:length\" class = \" new\">length</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:name\" class = \" new\">name</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_6\"><span id = \"Methods\"></span><h3 class = \"editable\">Methods</h3>\n<p><p><span class = \"lang lang-en\"><small style = \"margin-left: 1em;\"><em>For methods available on <code>URIError</code> instances, see <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError#Methods_2\">Methods of URIError instances</a>.</em></small> </span></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n<p></p>\n\n</p>\n<p>The global <code>URIError</code> contains no methods of its own, however, it does inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:prototype\" class = \" new\">Function.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Aapply\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:apply\" class = \" new\">apply</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3Acall\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:call\" class = \" new\">call</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:toString\" class = \" new\">toString</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AFunction%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Function:valueOf\" class = \" new\">valueOf</a></small>\n</p>\n</div> </span> <span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_7\"><span id = \"URIError_instances\"></span><h3 class = \"editable\"><code>URIError</code> instances</h3>\n<p>All <code>URIError</code> instances inherit from <a title = \"en/JavaScript/Reference/Global Objects/URIError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError/prototype\"><code>URIError.prototype</code></a>. You can use the prototype to add properties or methods to all instances.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Properties_2\"></span><h3 class = \"editable\">Properties</h3>\n<p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/URIError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/URIError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError/name\" class = \"new \">name</a></dt> <dd>Error name.</dd>\n</dl>\n<div class = \"note\"><strong>Note:</strong> Although <a title = \"en/ECMA-262\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a>&nbsp;specifies that <code>URIError </code>should provide its own <code>message</code> property, in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a>, it inherits <code><a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">Error.prototype.message</a></code>.</div>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods_2\"></span><h3 class = \"editable\">Methods</h3>\n<p>\n<p>Although the <code>URIError</code> prototype object does not contain any methods of its own, <code>URIErrror</code> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</p>\n</div>",
			"<div id = \"section_10\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Functions/decodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURI\">decodeURI</a></li> <li><a title = \"en/JavaScript/Reference/Global_Functions/decodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURIComponent\">decodeURIComponent</a></li> <li><a title = \"en/JavaScript/Reference/Global_Functions/encodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI\">encodeURI</a></li> <li><a title = \"en/JavaScript/Reference/Global_Functions/encodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURIComponent\">encodeURIComponent</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/URIError/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError/prototype\">URIError.prototype</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Properties",
			"Methods",
			"URIError instances",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURI",
		"title": "decodeURI",
		"_id": "4eea83a1a4c86c4dba00001a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p><strong>Core Function</strong></p>\n<p>Decodes a Uniform Resource Identifier (URI) previously created by <code><a title = \"en/JavaScript/Reference/Global_Objects/encodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI\">encodeURI</a></code> or by a similar routine.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Core Global Method</th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript ?</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ndecodeURI(<i>encodedURI</i>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>encodedURI</code>&nbsp;</dt><dd> A complete, encoded Uniform Resource Identifier.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Replaces each escape sequence in the encoded URI with the character that it represents.\n</p><p>Does not decode escape sequences that could not have been introduced by <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURI\" title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURI\">encodeURI</a></code>.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/decodeURIComponent\" title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/decodeURIComponent\">decodeURIComponent</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURI\" title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURI\">encodeURI</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURIComponent\" title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURIComponent\">encodeURIComponent</a>\n</p><p><br/>\n</p><p><br/>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURIComponent",
		"title": "decodeURIComponent",
		"_id": "4eea83a5a4c86c4dba00001b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Decodes a Uniform Resource Identifier (URI) component previously created by <code><a title = \"en/JavaScript/Reference/Global_Objects/encodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURIComponent\">encodeURIComponent</a></code> or by a similar routine.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Core Global Method</th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript ?</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> decodeURIComponent(<em>encodedURI</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>encodedURI</code>&nbsp;</dt> <dd>An encoded component of a Uniform Resource Identifier.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Replaces each escape sequence in the encoded URI component with the character that it represents.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/decodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/decodeURI\">decodeURI</a>, <a title = \"en/JavaScript/Reference/Global_Objects/encodeURI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI\">encodeURI</a>, <a title = \"en/JavaScript/Reference/Global_Objects/encodeURIComponent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURIComponent\">encodeURIComponent</a></p>\n<p>&nbsp;</p>\n<p>&nbsp;</p> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseFloat",
		"title": "parseFloat",
		"_id": "4eea83cfa4c86c4dba00001c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Parses a string argument and returns a floating point number.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Core Global Method</th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript ?</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> parseFloat(<em>string</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>string</code>&nbsp;</dt> <dd>A string that represents the value you want to parse.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>parseFloat</code> is a top-level function and is not associated with any object.</p>\n<p><code>parseFloat</code> parses its argument, a string, and returns a floating point number. If it encounters a character other than a sign (+ or -), numeral (0-9), a decimal point, or an exponent, it returns the value up to that point and ignores that character and all succeeding characters. Leading and trailing spaces are allowed.</p>\n<p>If the first character cannot be converted to a number, <code>parseFloat</code> returns <code>NaN</code>.</p>\n<p>For arithmetic purposes, the <code>NaN</code> value is not a number in any radix. You can call the <code><a title = \"en/JavaScript/Reference/Global_Objects/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a></code> function to determine if the result of <code>parseFloat</code> is <code>NaN</code>. If <code>NaN</code> is passed on to arithmetic operations, the operation results will also be <code>NaN</code>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_parseFloat_returning_a_number\"></span><h4 class = \"editable\">Example: <code>parseFloat</code> returning a number</h4>\n<p>The following examples all return <strong>3.14</strong></p>\n\r\n          <pre name = \"code\" class = \"js\">parseFloat(&quot;3.14&quot;);\nparseFloat(&quot;314e-2&quot;);\nparseFloat(&quot;0.0314E+2&quot;);\nparseFloat(&quot;3.14more non-digit characters&quot;);</pre>\r\n        </div><div id = \"section_7\"><span id = \"Example:_parseFloat_returning_NaN\"></span><h4 class = \"editable\">Example: <code>parseFloat</code> returning NaN</h4>\n<p>The following example returns <code>NaN</code></p>\n\r\n          <pre name = \"code\" class = \"js\">parseFloat(&quot;FF2&quot;);</pre>\r\n        </div></div>",
			"<div id = \"section_6\"><span id = \"Example:_parseFloat_returning_a_number\"></span><h4 class = \"editable\">Example: <code>parseFloat</code> returning a number</h4>\n<p>The following examples all return <strong>3.14</strong></p>\n\r\n          <pre name = \"code\" class = \"js\">parseFloat(&quot;3.14&quot;);\nparseFloat(&quot;314e-2&quot;);\nparseFloat(&quot;0.0314E+2&quot;);\nparseFloat(&quot;3.14more non-digit characters&quot;);</pre>\r\n        </div>",
			"<div id = \"section_7\"><span id = \"Example:_parseFloat_returning_NaN\"></span><h4 class = \"editable\">Example: <code>parseFloat</code> returning NaN</h4>\n<p>The following example returns <code>NaN</code></p>\n\r\n          <pre name = \"code\" class = \"js\">parseFloat(&quot;FF2&quot;);</pre>\r\n        </div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a>, <a title = \"en/JavaScript/Reference/Global_Objects/parseInt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseInt\">parseInt</a></p>\n<p>&nbsp;</p>\n<p>&nbsp;</p> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: parseFloat returning a number",
			"Example: parseFloat returning NaN",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseInt",
		"title": "parseInt",
		"_id": "4eea83d0a4c86c4dba00001d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Parses a string argument and returns an integer of the specified radix or base.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Core Global Method</th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript ?</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<pre class = \"eval\">\nvar intValue = parseInt(<em>string</em>[, <em>radix</em>]);\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>string</code>&nbsp;</dt> <dd>The value to parse. If <code>string</code> is not a string, then it is converted to one. Leading whitespace in the string is ignored.</dd>\n</dl>\n<dl> <dt><code>radix</code>&nbsp;</dt> <dd>An integer that represents the <var>radix</var> of the above mentioned string. While this parameter is optional, <strong>always specify it</strong> to eliminate reader confusion and to guarantee predictable behavior.&nbsp; Different implementations produce different results when a radix is not specified.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>parseInt</code> is a top-level function and is not associated with any object.</p>\n<p>The <code>parseInt</code> function converts its first argument to a string, parses it, and returns an integer or <code>NaN</code>. If not <code>NaN</code>, the returned value will be the decimal integer representation of the first argument taken as a number in the specified <var>radix</var> (base). For example, a <var>radix</var> of 10 indicates to convert from a decimal number, 8 octal, 16 hexadecimal, and so on. For radices above <code>10</code>, the letters of the alphabet indicate numerals greater than <code>9</code>. For example, for hexadecimal numbers (base 16), <code>A</code> through <code>F</code> are used.</p>\n<p>If <code>parseInt</code> encounters a character that is not a numeral in the specified radix, it ignores it and all succeeding characters and returns the integer value parsed up to that point. <code>parseInt</code> truncates numbers to integer values. Leading and trailing spaces are allowed.</p>\n<p>If <var>radix</var> is <code>undefined</code> or 0, JavaScript assumes the following:</p>\n<ul> <li>If the input <code>string</code> begins with &quot;0x&quot; or &quot;0X&quot;, <var>radix</var> is 16 (hexadecimal).</li> <li>If the input <code>string</code> begins with &quot;0&quot;, <var>radix</var> is eight (octal). This feature is non-standard, and some implementations deliberately do not support it (instead using the radix 10).&nbsp; For this reason <strong>always specify a radix when using <code>parseInt</code></strong>.</li> <li>If the input <code>string</code> begins with any other value, the radix is 10 (decimal).</li>\n</ul>\n<p>If the first character cannot be converted to a number, <code>parseInt</code> returns <code>NaN</code>.</p>\n<p>For arithmetic purposes, the <code>NaN</code> value is not a number in any radix. You can call the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a></code> function to determine if the result of <code>parseInt</code> is <code>NaN</code>. If <code>NaN</code> is passed on to arithmetic operations, the operation results will also be <code>NaN</code>.</p>\n<p>To convert number to its string literal in a particular radix use <code>intValue.toString(radix)</code>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_parseInt\"></span><h4 class = \"editable\">Example: Using <code>parseInt</code></h4>\n<p>The following examples all return 15:</p>\n<pre class = \"eval\">\nparseInt(&quot; 0xF&quot;, 16);\nparseInt(&quot; F&quot;, 16);\nparseInt(&quot;17&quot;, 8);\nparseInt(021, 8);\nparseInt(&quot;015&quot;, 10);\nparseInt(15.99, 10);\nparseInt(&quot;FXX123&quot;, 16);\nparseInt(&quot;1111&quot;, 2);\nparseInt(&quot;15*3&quot;, 10);\nparseInt(&quot;15e2&quot;, 10);\nparseInt(&quot;15px&quot;, 10);\nparseInt(&quot;12&quot;, 13);\n</pre>\n<p>The following examples all return <code>NaN</code>:</p>\n<pre class = \"eval\">\nparseInt(&quot;Hello&quot;, 8); // Not a number at all\nparseInt(&quot;546&quot;, 2);   // Digits are not valid for binary representations\n</pre>\n<p>The following examples all return <code>-15:</code></p>\n<pre class = \"eval\">\nparseInt(&quot;-F&quot;, 16);\nparseInt(&quot;-0F&quot;, 16);\nparseInt(&quot;-0XF&quot;, 16);\nparseInt(-10, 16);\nparseInt(-15.1, 10)\nparseInt(&quot; -17&quot;, 8);\nparseInt(&quot; -15&quot;, 10);\nparseInt(&quot;-1111&quot;, 2);\nparseInt(&quot;-15e1&quot;, 10);\nparseInt(&quot;-12&quot;, 13);\n</pre>\n<p>The following example returns <code>224:</code></p>\n<pre class = \"eval\">\nparseInt(&quot;0e0&quot;, 16);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_parseInt\"></span><h4 class = \"editable\">Example: Using <code>parseInt</code></h4>\n<p>The following examples all return 15:</p>\n<pre class = \"eval\">\nparseInt(&quot; 0xF&quot;, 16);\nparseInt(&quot; F&quot;, 16);\nparseInt(&quot;17&quot;, 8);\nparseInt(021, 8);\nparseInt(&quot;015&quot;, 10);\nparseInt(15.99, 10);\nparseInt(&quot;FXX123&quot;, 16);\nparseInt(&quot;1111&quot;, 2);\nparseInt(&quot;15*3&quot;, 10);\nparseInt(&quot;15e2&quot;, 10);\nparseInt(&quot;15px&quot;, 10);\nparseInt(&quot;12&quot;, 13);\n</pre>\n<p>The following examples all return <code>NaN</code>:</p>\n<pre class = \"eval\">\nparseInt(&quot;Hello&quot;, 8); // Not a number at all\nparseInt(&quot;546&quot;, 2);   // Digits are not valid for binary representations\n</pre>\n<p>The following examples all return <code>-15:</code></p>\n<pre class = \"eval\">\nparseInt(&quot;-F&quot;, 16);\nparseInt(&quot;-0F&quot;, 16);\nparseInt(&quot;-0XF&quot;, 16);\nparseInt(-10, 16);\nparseInt(-15.1, 10)\nparseInt(&quot; -17&quot;, 8);\nparseInt(&quot; -15&quot;, 10);\nparseInt(&quot;-1111&quot;, 2);\nparseInt(&quot;-15e1&quot;, 10);\nparseInt(&quot;-12&quot;, 13);\n</pre>\n<p>The following example returns <code>224:</code></p>\n<pre class = \"eval\">\nparseInt(&quot;0e0&quot;, 16);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Octal_Interpretations_with_No_Radix\"></span><h3 class = \"editable\">Octal Interpretations with No Radix</h3>\n<p>Although discouraged by ECMAScript 3, many implementations interpret a numeric string beginning with a leading <code>0</code> as octal. The following may have an octal result.</p>\n<pre class = \"eval\">\nparseInt(&quot;0e0&quot;); // 0\nparseInt(&quot;08&quot;); // 0, '8' is not an octal digit.\n</pre>\n<blockquote>\n<div id = \"section_8\"><span id = \"ECMAScript_5_Removes_Octal_Interpretation\"></span><h4 class = \"editable\">ECMAScript 5 Removes Octal Interpretation</h4>\n<p>The ECMAScript 5 specification of the function <code>parseInt</code> no longer allows implementations to treat Strings beginning with a <code>0</code> character as octal values. ECMAScript 5 states:</p>\n<p>The <code>parseInt</code> function produces an integer value dictated by interpretation of the contents of the string argument according to the specified radix. Leading white space in string is ignored. If radix is undefined or <code>0</code>, it is assumed to be <code>10</code> except when the number begins with the character pairs <code>0x</code> or <code>0X</code>, in which case a radix of 16 is assumed. If radix is <code>16</code>, number may also optionally begin with the character pairs <code>0x</code> or <code>0X</code>.</p>\n<p>This differs from ECMAScript 3, which discouraged but allowed octal interpretation.</p>\n<p>Since many implementations have not adopted this behavior as of 2011, and because older browsers must be supported, <strong>always specify a radix</strong>.</p>\n<div id = \"section_9\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/parseFloat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseFloat\">parseFloat</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.valueOf</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">Number.toString</a></p>\n<p></p>\n</div></div></blockquote></div>",
			"<div id = \"section_8\"><span id = \"ECMAScript_5_Removes_Octal_Interpretation\"></span><h4 class = \"editable\">ECMAScript 5 Removes Octal Interpretation</h4>\n<p>The ECMAScript 5 specification of the function <code>parseInt</code> no longer allows implementations to treat Strings beginning with a <code>0</code> character as octal values. ECMAScript 5 states:</p>\n<p>The <code>parseInt</code> function produces an integer value dictated by interpretation of the contents of the string argument according to the specified radix. Leading white space in string is ignored. If radix is undefined or <code>0</code>, it is assumed to be <code>10</code> except when the number begins with the character pairs <code>0x</code> or <code>0X</code>, in which case a radix of 16 is assumed. If radix is <code>16</code>, number may also optionally begin with the character pairs <code>0x</code> or <code>0X</code>.</p>\n<p>This differs from ECMAScript 3, which discouraged but allowed octal interpretation.</p>\n<p>Since many implementations have not adopted this behavior as of 2011, and because older browsers must be supported, <strong>always specify a radix</strong>.</p>\n<div id = \"section_9\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/parseFloat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseFloat\">parseFloat</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.valueOf</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">Number.toString</a></p>\n<p></p>\n</div></div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/parseFloat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseFloat\">parseFloat</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.valueOf</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">Number.toString</a></p>\n<p></p>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using parseInt",
			"Octal Interpretations with No RadixSee also",
			"See also",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity",
		"title": "Infinity",
		"_id": "4eea83d2a4c86c4dba00001e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>A numeric value representing infinity.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Core Global Property</th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> Infinity </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>Infinity</code> is a property of the <em>global object</em>, i.e. it is a variable in global scope.</p>\n<p>The initial value of <code>Infinity</code> is <code><a title = \"en/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY\">Number.POSITIVE_INFINITY</a></code>. The value <code>Infinity</code> (positive infinity) is greater than any other number including itself. This value behaves mathematically like infinity; for example, anything multiplied by <code>Infinity</code> is <code>Infinity</code>, and anything divided by <code>Infinity</code> is 0.</p>\n<p>\n<div style = \"border: 0px none ; margin: 10px 0px; padding: 0px 10px; background-color: rgb(254, 244, 156); text-align: center;\"><p style = \"margin: 4px 0px; font-weight: bold;\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a> note</p><p style = \"margin: 4px 0px;\">Starting in JavaScript 1.8.5 (Firefox 4), <code>Infinity</code> is read only, as per the ECMAScript 5 specification.</p></div></p>\n</div>",
			"<div id = \"section_4\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY\">Number.NEGATIVE_INFINITY</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY\">Number.POSITIVE_INFINITY</a></p>\n<p>&nbsp;</p> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON",
		"title": "JSON",
		"_id": "4eea83d2a4c86c4dba00001f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The <code>JSON</code> object contains methods for converting values to <a class = \" external\" rel = \"external\" href = \"http://json.org/\" title = \"http://json.org/\" target = \"_blank\">JSON notation</a> and for converting JSON notation to values.</p>\n<div id = \"section_2\"><span id = \"JSON_Notation\"></span><h3 style = \"position: static; z-index: auto; \" class = \"editable\">JSON Notation</h3>\n<p><a class = \" external\" title = \"http://json.org/\" rel = \"external\" href = \"http://json.org/\" target = \"_blank\">JSON</a> is a syntax for serializing objects, arrays, numbers, strings, booleans, and null. &nbsp;It is based upon JavaScript syntax but is distinct from it: some JavaScript is not JSON, and some JSON is not JavaScript.</p>\n<p>The main differences between standard object and array literal notation and JSON notation are that all property names in a JSON object must be double-quoted strings and that trailing commas in objects and arrays are forbidden. &nbsp;The main differences between standard number notation and JSON number notation are that in JSON leading zeroes are prohibited and the decimal point in a number must be followed by at least one digit. &nbsp;The main differences between standard string notation and JSON string notation are that in JSON only a limited set of characters may be escaped in strings, certain control characters are prohibited in strings, the Unicode line separator (U+2028) and paragraph separator (U+2029) characters are permitted, and that strings must be double-quoted.&nbsp;&nbsp;</p>\n<p>The full JSON syntax is as follows:</p>\n<pre class = \"eval\"><var>JSON</var> = <strong>null</strong>\n    <em>or</em> <strong>true</strong> <em>or</em> <strong>false</strong>\n    <em>or</em> <var>JSONNumber</var>\n    <em>or</em> <var>JSONString</var>\n    <em>or</em> <var>JSONObject</var>\n    <em>or</em> <var>JSONArray</var>\n\n<var>JSONNumber</var> = <strong>-</strong> <var>PositiveNumber</var>\n          <em>or</em> <var>PositiveNumber</var>\n<var>PositiveNumber</var> = DecimalNumber\n              or <var>DecimalNumber</var> <strong>.</strong> <var>Digits</var>\n              or <var>DecimalNumber</var> <strong>.</strong> <var>Digits</var> <var>ExponentPart</var>\n              or <var>DecimalNumber</var> <var>ExponentPart</var>\n<var>DecimalNumber</var> = <strong>0</strong>\n             <em>or</em> <var>OneToNine</var> <var>Digits</var>\n<var>ExponentPart</var> = <strong>e</strong> <var>Exponent</var>\n            <em>or</em> <strong>E</strong> <var>Exponent</var>\n<var>Exponent</var> = <var>Digits</var>\n        <em>or</em> <strong>+</strong> <var>Digits</var>\n        <em>or</em> <strong>-</strong> <var>Digits</var>\n<var>Digits</var> = <var>Digit</var>\n      <em>or</em> <var>Digits</var> <var>Digit</var>\n<var>Digit</var> = <strong>0</strong> through <strong>9</strong>\n<var>OneToNine</var> = <strong>1</strong> through <strong>9</strong>\n\n<var>JSONString</var> = <strong>&quot;&quot;</strong>\n          <em>or</em> <strong>&quot;</strong> <var>StringCharacters</var> <strong>&quot;</strong>\n<var>StringCharacters</var> = <var>StringCharacter</var>\n                <em>or</em> <var>StringCharacters</var> <var>StringCharacter</var>\n<var>StringCharacter</var> = any character\n                  <em>except</em> <strong>&quot;</strong> <em>or</em> <strong>\\</strong> <em>or</em> U+0000 through U+001F\n               <em>or</em> <var>EscapeSequence</var>\n<var>EscapeSequence</var> = <strong>\\&quot; </strong><em>or</em> <strong>\\/ </strong><em>or</em> <strong>\\\\ </strong><em>or</em> <strong>\\b </strong><em>or</em> <strong>\\f </strong><em>or</em> <strong>\\n </strong><em>or</em> <strong>\\r </strong><em>or</em> <strong>\\t</strong>\n              <em>or</em> <strong>\\u</strong> <var>HexDigit</var> <var>HexDigit</var> <var>HexDigit</var> <var>HexDigit</var>\n<var>HexDigit</var> = <strong>0</strong> through <strong>9</strong>\n        <em>or</em> <strong>A</strong> through <strong>F</strong>\n        <em>or</em> <strong>a</strong> through <strong>f</strong>\n\n<var>JSONObject</var> = <strong>{</strong> <strong>}</strong>\n          <em>or</em> <strong>{</strong> <var>Members</var> <strong>}</strong>\n<var>Members</var> = <var>JSONString</var> <strong>:</strong> <var>JSON</var>\n       <em>or</em> <var>Members</var> <strong>,</strong> <var>JSONString</var> <strong>:</strong> <var>JSON</var>\n\n<var>JSONArray</var> = <strong>[</strong> <strong>]</strong>\n         <em>or</em> <strong>[</strong> <var>ArrayElements</var> <strong>]</strong>\n<var>ArrayElements</var> = <var>JSON</var>\n             <em>or</em> <var>ArrayElements</var> <strong>,</strong> <var>JSON</var></pre>\n<p>Insignificant whitespace may be present anywhere except within a <var>JSONNumber</var> (numbers must contain no whitespace) or <var>JSONString</var> (where it is interpreted as the corresponding character in the string, or would cause an error). The tab character (U+0009), carriage return (U+000D), line feed (U+000A), and space (U+0020) characters are the only valid whitespace characters.</p>\n</div></div>",
			"<div id = \"section_2\"><span id = \"JSON_Notation\"></span><h3 style = \"position: static; z-index: auto; \" class = \"editable\">JSON Notation</h3>\n<p><a class = \" external\" title = \"http://json.org/\" rel = \"external\" href = \"http://json.org/\" target = \"_blank\">JSON</a> is a syntax for serializing objects, arrays, numbers, strings, booleans, and null. &nbsp;It is based upon JavaScript syntax but is distinct from it: some JavaScript is not JSON, and some JSON is not JavaScript.</p>\n<p>The main differences between standard object and array literal notation and JSON notation are that all property names in a JSON object must be double-quoted strings and that trailing commas in objects and arrays are forbidden. &nbsp;The main differences between standard number notation and JSON number notation are that in JSON leading zeroes are prohibited and the decimal point in a number must be followed by at least one digit. &nbsp;The main differences between standard string notation and JSON string notation are that in JSON only a limited set of characters may be escaped in strings, certain control characters are prohibited in strings, the Unicode line separator (U+2028) and paragraph separator (U+2029) characters are permitted, and that strings must be double-quoted.&nbsp;&nbsp;</p>\n<p>The full JSON syntax is as follows:</p>\n<pre class = \"eval\"><var>JSON</var> = <strong>null</strong>\n    <em>or</em> <strong>true</strong> <em>or</em> <strong>false</strong>\n    <em>or</em> <var>JSONNumber</var>\n    <em>or</em> <var>JSONString</var>\n    <em>or</em> <var>JSONObject</var>\n    <em>or</em> <var>JSONArray</var>\n\n<var>JSONNumber</var> = <strong>-</strong> <var>PositiveNumber</var>\n          <em>or</em> <var>PositiveNumber</var>\n<var>PositiveNumber</var> = DecimalNumber\n              or <var>DecimalNumber</var> <strong>.</strong> <var>Digits</var>\n              or <var>DecimalNumber</var> <strong>.</strong> <var>Digits</var> <var>ExponentPart</var>\n              or <var>DecimalNumber</var> <var>ExponentPart</var>\n<var>DecimalNumber</var> = <strong>0</strong>\n             <em>or</em> <var>OneToNine</var> <var>Digits</var>\n<var>ExponentPart</var> = <strong>e</strong> <var>Exponent</var>\n            <em>or</em> <strong>E</strong> <var>Exponent</var>\n<var>Exponent</var> = <var>Digits</var>\n        <em>or</em> <strong>+</strong> <var>Digits</var>\n        <em>or</em> <strong>-</strong> <var>Digits</var>\n<var>Digits</var> = <var>Digit</var>\n      <em>or</em> <var>Digits</var> <var>Digit</var>\n<var>Digit</var> = <strong>0</strong> through <strong>9</strong>\n<var>OneToNine</var> = <strong>1</strong> through <strong>9</strong>\n\n<var>JSONString</var> = <strong>&quot;&quot;</strong>\n          <em>or</em> <strong>&quot;</strong> <var>StringCharacters</var> <strong>&quot;</strong>\n<var>StringCharacters</var> = <var>StringCharacter</var>\n                <em>or</em> <var>StringCharacters</var> <var>StringCharacter</var>\n<var>StringCharacter</var> = any character\n                  <em>except</em> <strong>&quot;</strong> <em>or</em> <strong>\\</strong> <em>or</em> U+0000 through U+001F\n               <em>or</em> <var>EscapeSequence</var>\n<var>EscapeSequence</var> = <strong>\\&quot; </strong><em>or</em> <strong>\\/ </strong><em>or</em> <strong>\\\\ </strong><em>or</em> <strong>\\b </strong><em>or</em> <strong>\\f </strong><em>or</em> <strong>\\n </strong><em>or</em> <strong>\\r </strong><em>or</em> <strong>\\t</strong>\n              <em>or</em> <strong>\\u</strong> <var>HexDigit</var> <var>HexDigit</var> <var>HexDigit</var> <var>HexDigit</var>\n<var>HexDigit</var> = <strong>0</strong> through <strong>9</strong>\n        <em>or</em> <strong>A</strong> through <strong>F</strong>\n        <em>or</em> <strong>a</strong> through <strong>f</strong>\n\n<var>JSONObject</var> = <strong>{</strong> <strong>}</strong>\n          <em>or</em> <strong>{</strong> <var>Members</var> <strong>}</strong>\n<var>Members</var> = <var>JSONString</var> <strong>:</strong> <var>JSON</var>\n       <em>or</em> <var>Members</var> <strong>,</strong> <var>JSONString</var> <strong>:</strong> <var>JSON</var>\n\n<var>JSONArray</var> = <strong>[</strong> <strong>]</strong>\n         <em>or</em> <strong>[</strong> <var>ArrayElements</var> <strong>]</strong>\n<var>ArrayElements</var> = <var>JSON</var>\n             <em>or</em> <var>ArrayElements</var> <strong>,</strong> <var>JSON</var></pre>\n<p>Insignificant whitespace may be present anywhere except within a <var>JSONNumber</var> (numbers must contain no whitespace) or <var>JSONString</var> (where it is interpreted as the corresponding character in the string, or would cause an error). The tab character (U+0009), carriage return (U+000D), line feed (U+000A), and space (U+0020) characters are the only valid whitespace characters.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The <code>JSON</code> object contains methods for parsing JSON and converting values to JSON. It can't be called or constructed, and aside from its two method properties it has no interesting functionality of its own.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Object/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</dt>\n</dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/JSON/parse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON/parse\">parse</a></dt> <dd>Parse a string as JSON, optionally transform the produced value and its properties, and return the value.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/JSON/stringify\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON/stringify\">stringify</a></dt> <dd>Return a JSON string corresponding to the specified value, optionally including only certain properties or replacing property values in a user-defined manner.</dd>\n</dl> </div>",
			"<div id = \"section_6\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2> <p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p> <p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p> <div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>10.5</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table> </div> <div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table> </div>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToString\"><code>toString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</p></div>"
		],
		"sectionNames": [
			"Summary",
			"JSON Notation",
			"Description",
			"Properties",
			"Methods",
			"Cross-browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math",
		"title": "Math",
		"_id": "4eea83d6a4c86c4dba000020",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>A built-in object that has properties and methods for mathematical constants and functions.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>Unlike the other global objects, <code>Math</code> is not a constructor. All properties and methods of <code>Math</code> are static. You refer to the constant pi as <code>Math.PI</code> and you call the sine function as <code>Math.sin(x)</code>, where <code>x</code> is the method's argument. Constants are defined with the full precision of real numbers in JavaScript.</p></div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/E\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/E\">E</a></dt> <dd>Euler's constant and the base of natural logarithms, approximately 2.718.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/LN2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/LN2\">LN2</a></dt> <dd>Natural logarithm of 2, approximately 0.693.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/LN10\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/LN10\">LN10</a></dt> <dd>Natural logarithm of 10, approximately 2.302.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/LOG2E\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/LOG2E\">LOG2E</a></dt> <dd>Base 2 logarithm of E, approximately 1.442.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/LOG10E\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/LOG10E\">LOG10E</a></dt> <dd>Base 10 logarithm of E, approximately 0.434.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/PI\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/PI\">PI</a></dt> <dd>Ratio of the circumference of a circle to its diameter, approximately 3.14159.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/SQRT1_2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/SQRT1_2\">SQRT1_2</a></dt> <dd>Square root of 1/2; equivalently, 1 over the square root of 2, approximately 0.707.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/SQRT2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/SQRT2\">SQRT2</a></dt> <dd>Square root of 2, approximately 1.414.</dd>\n</dl>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Constructor\" title = \"en/JavaScript/Reference/Global_Objects/Object/Constructor\"><code>constructor</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<dl> <dt></dt> <div class = \"note\">Note that the trigonometric functions (sin, cos, tan, asin, acos, atan, atan2) expect or return angles in radians - to convert radians to degrees divide by (Math.PI / 180), and multiply by this to convert the other way.</div> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/abs\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/abs\">abs</a></dt> <dd>Returns the absolute value (modulus) of a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/acos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/acos\">acos</a></dt> <dd>Returns the arccosine of a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/asin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/asin\">asin</a></dt> <dd>Returns the arcsine of a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/atan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan\">atan</a></dt> <dd>Returns the arctangent of a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/atan2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan2\">atan2</a></dt> <dd>Returns the arctangent of the quotient of its arguments.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/ceil\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/ceil\">ceil</a></dt> <dd>Returns the smallest integer greater than or equal to a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/cos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/cos\">cos</a></dt> <dd>Returns the cosine of a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/exp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/exp\">exp</a></dt> <dd>Returns E<sup>number</sup>, where <var>number</var> is the argument, and E is Euler's constant (2.718...), the base of the natural logarithm.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/floor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/floor\">floor</a></dt> <dd>Returns the largest integer less than or equal to a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/log\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/log\">log</a></dt> <dd>Returns the natural logarithm (log<sub>e</sub>, also ln) of a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/max\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/max\">max</a></dt> <dd>Returns the largest of zero or more numbers.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/min\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/min\">min</a></dt> <dd>Returns the smallest of zero or more numbers.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/pow\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/pow\">pow</a></dt> <dd>Returns base to the exponent power, that is, base<sup>exponent</sup>.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/random\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/random\">random</a></dt> <dd>Returns a pseudo-random number between 0 and 1.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/round\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/round\">round</a></dt> <dd>Returns the value of a number rounded to the nearest integer.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/sin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sin\">sin</a></dt> <dd>Returns the sine of a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/sqrt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sqrt\">sqrt</a></dt> <dd>Returns the positive square root of a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/tan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/tan\">tan</a></dt> <dd>Returns the tangent of a number.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Math/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/toSource\" class = \"new \">toSource</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Returns the string <code>&quot;Math&quot;</code>.</dd>\n</dl>\n<p>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToString\"><code>toString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN",
		"title": "NaN",
		"_id": "4eea83d7a4c86c4dba000021",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>A value representing Not-A-Number.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Core Global Property</th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>NaN</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>NaN</code> is a property of the <em>global object</em>.</p>\n<p>The initial value of <code>NaN</code> is Not-A-Number &mdash; the same as the value of <code>Number.NaN</code>. In modern browsers, <code>NaN</code> is a non-configurable, non-writable property. Even when this is not the case, avoid overriding it.</p>\n<p>It is rather rare to use <code>NaN</code> in a program. It is the returned value when Math functions fail (<code>Math.sqrt(-1)</code>) or when a function trying to parse a number fails (<code>parseInt(&quot;blabla&quot;)</code>).</p>\n<div id = \"section_4\"><span id = \"Testing_against_NaN\"></span><h3 class = \"editable\">Testing against <code>NaN</code></h3>\n<p>Equality operator (<code>==</code> and <code>===</code>) cannot be used to test a value against <code>NaN</code>. Use <a title = \"en/JavaScript/Reference/Global_Objects/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\"><code>isNaN</code></a> instead.</p>\n\r\n          <pre name = \"code\" class = \"js\">NaN === NaN;        // false\nNumber.NaN === NaN; // false\nisNaN(NaN);         // true\nisNaN(Number.NaN);  // true</pre>\r\n        \n</div></div>",
			"<div id = \"section_4\"><span id = \"Testing_against_NaN\"></span><h3 class = \"editable\">Testing against <code>NaN</code></h3>\n<p>Equality operator (<code>==</code> and <code>===</code>) cannot be used to test a value against <code>NaN</code>. Use <a title = \"en/JavaScript/Reference/Global_Objects/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\"><code>isNaN</code></a> instead.</p>\n\r\n          <pre name = \"code\" class = \"js\">NaN === NaN;        // false\nNumber.NaN === NaN; // false\nisNaN(NaN);         // true\nisNaN(Number.NaN);  // true</pre>\r\n        \n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Functions/isNaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN\">isNaN</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Testing against NaN",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined",
		"title": "undefined",
		"_id": "4eea83d8a4c86c4dba000022",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The value undefined.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Core Global Property</th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code> undefined </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>undefined</code> is a property of the <em>global object</em>, i.e. it is a variable in global scope.</p>\n<p>The initial value of <code>undefined</code> is the primitive value <code>undefined</code>. </p>\n<p>\n<div style = \"border: 0px none ; margin: 10px 0px; padding: 0px 10px; background-color: rgb(254, 244, 156); text-align: center;\"><p style = \"margin: 4px 0px; font-weight: bold;\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a> note</p><p style = \"margin: 4px 0px;\">Starting in JavaScript 1.8.5 (Firefox 4), <code>undefined</code> is non-writable, as per the ECMAScript 5 specification.</p></div></p>\n<p>A variable that has not been assigned a value is of type undefined. A method or statement also returns <code>undefined</code> if the variable that is being evaluated does not have an assigned value. A function returns <code>undefined</code> if a value was not <a title = \"en/Core_JavaScript_1.5_Reference/Statements/return\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/return\">return</a>ed.</p>\n<p>You can use <code>undefined</code> and the strict equality and inequality operators to determine whether a variable has a value. In the following code, the variable <code>x</code> is not defined, and the <code>if</code> statement evaluates to true.</p>\n\r\n          <pre name = \"code\" class = \"js\">var x;\nif (x === undefined) {\n   // these statements execute\n}\nif (x !== undefined) {\n   // these statements do not execute\n}</pre>\r\n        \n<div class = \"note\">Note: The strict equality operator rather than the standard equality operator must be used here, because <code>x == undefined</code> also checks whether <code>x</code> is <code>null</code>, while strict equality doesn't. <code>null</code> is not equivalent to <code>undefined</code>. See <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Comparison_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comparison_Operators\">comparison operators</a> for details.</div>\n<p>Alternatively, <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/typeof_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/typeof\">typeof</a> can be used:</p>\n\r\n          <pre name = \"code\" class = \"js\">var x;\nif (typeof x == 'undefined') {\n   // these statements execute\n}</pre>\r\n        \n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/block",
		"title": "block",
		"_id": "4eea83d9a4c86c4dba000023",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>A block statement is used to group zero or more statements. The block is delimited by a pair of curly brackets.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Version_Information\"></span><h2 class = \"editable\">Version Information</h2>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0, NES 2.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n\r\n          <pre name = \"code\" class = \"js\">{\n   statement_1\n   statement_2\n   ...\n   statement_n\n}</pre>\r\n        \n</div>",
			"<div id = \"section_4\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>statement_1</code>, <code>statement_2</code>, <code>statement_n</code></dt> <dd>Statements grouped within the block statement.</dd>\n</dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>This statement is commonly used with control flow statements (e.g. <code>if</code>, <code>for</code>, <code>while</code>). For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">while (x &lt; 10) {\n   x++;\n}</pre>\r\n        \n<p><strong>Important</strong>: JavaScript does <strong>not</strong> have block scope. Variables introduced with a block are scoped to the containing function or script, and the effects of setting them persist beyond the block itself. In other words, block statements do not introduce a scope. Although &quot;standalone&quot; blocks are valid syntax, you do not want to use standalone blocks in JavaScript, because they don't do what you think they do, if you think they do anything like such blocks in C or Java. For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">var x = 1;\n{\n   var x = 2;\n}\nalert(x); // outputs 2</pre>\r\n        \n<p>This outputs 2 because the <code>var x</code> statement within the conditional is in the same scope as the <code>var x</code> statement before the conditional. In C or Java, the equivalent code would have outputted 1.</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Version Information",
			"Syntax",
			"Parameters",
			"Description"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/break",
		"title": "break",
		"_id": "4eea83daa4c86c4dba000024",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Terminates the current loop, switch, or label statement and transfers program control to the statement following the terminated statement.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Version_Information\"></span><h2 class = \"editable\">Version Information</h2>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0, NES 2.0</td> </tr> <tr> <td>ECMA Version:</td> <td> <p>ECMA-262 (for the unlabeled version)</p> <p>ECMA-262, Edition 3 (for the labeled version)</p> </td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n\r\n          <pre name = \"code\" class = \"js\">break [label];</pre>\r\n        \n</div>",
			"<div id = \"section_4\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>label</code>&nbsp;</dt> <dd>Identifier associated with the label of the statement.&nbsp; If the statement is not a loop or switch, this is required.</dd>\n</dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The <code>break</code> statement includes an optional label that allows the program to break out of a labeled statement. The <code>break</code> statement needs to be nested within this labelled statement. The labelled statement can be any <a title = \"En/Core JavaScript 1.5 Reference/Statements/Block\" class = \"internal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/block\">block</a> statement; it does not have to be preceded by a loop statement.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n<p>The following function has a <code>break</code> statement that terminates the <code><a title = \"en/JavaScript/Reference/Statements/while\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/while\">while</a></code> loop when <code>i</code> is 3, and then returns the value 3 * <code>x</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">function testBreak(x) {\n   var i = 0;\n   while (i &lt; 6) {\n      if (i == 3) {\n         break;\n      }\n      i += 1;\n   }\n   return i * x;\n}</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Statements/continue\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/continue\"><code>continue</code></a></li> <li><a title = \"en/JavaScript/Reference/Statements/label\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/label\"><code>label</code></a></li> <li><a title = \"en/JavaScript/Reference/Statements/switch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/switch\"><code>switch</code></a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Version Information",
			"Syntax",
			"Parameters",
			"Description",
			"Example",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/const",
		"title": "const",
		"_id": "4eea83e0a4c86c4dba000025",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Declares a read-only, named constant.</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.5, NES 6.0 (Netscape extension, <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">C engine</a> only)</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>const <em>varname1 = <em>value1 [</em>, <em>varname2</em> = <em>value2 [</em>, <em>varname3</em> = <em>value3 [</em>, ... [</em>, <em>varnameN</em> = <em>valueN]]]]</em>;</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>varnameN</code></dt> <dd>Constant name. It can be any legal identifier.</dd>\n</dl>\n<dl> <dt><code>valueN</code></dt> <dd>Value of the constant. It can be any legal expression.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>Creates a constant that can be global or local to the function in which it is declared. Constants follow the same scope rules as variables.</p>\n<p>The value of a constant cannot change through re-assignment, and a constant cannot be re-declared. Because of this, although it is possible to declare a constant without initializing it, it would be useless to do so.</p>\n<p>A constant cannot share its name with a function or a variable in the same scope.</p>\n<p>&nbsp;</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Browser_Compatibility\"></span><h2 class = \"editable\">Browser Compatibility</h2>\n<p style = \"margin-top: 0px; margin-right: 0px; margin-bottom: 1.286em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; \"><code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">const</code><span class = \"Apple-converted-space\">&nbsp;</span>is a<span class = \"Apple-converted-space\">&nbsp;</span><strong>Mozilla-specific extension and is not part of ECMAScript 5.&nbsp;</strong></p>\n<p style = \"margin-top: 0px; margin-right: 0px; margin-bottom: 1.286em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; \">It is supported in Firefox &amp; Chrome (V8) and partially supported in Opera 9+ &amp; Safari (though it acts as a <code>var</code>). It is not supported in IE6-9.</p>\n<p>&nbsp;</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<p>The following example produces the output &quot;<code>a is 7.</code>&quot;</p>\n\r\n          <pre name = \"code\" class = \"js\">const a = 7;\nconsole.log(&quot;a is &quot; + a + &quot;.&quot;);</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><code><a title = \"en/Core_JavaScript_1.5_Reference/Statements/var\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/var\">var</a></code></li> <li><a title = \"en/JavaScript/Reference/Statements/let\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/let\"><code>let</code></a></li> <li><a title = \"en/JavaScript/Guide/Values, Variables, and Literals#Constants\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Values%2C_Variables%2C_and_Literals#Constants\">Constants in JavaScript Guide</a></li>\n</ul>\n<p></p>\n<div style = \"-webkit-border-radius: 8px; -moz-border-radius: 8px; -moz-opacity: 0; opacity: 0; display: none; padding: 10px; background-color: #ffffff; position: fixed; right: 0px; top: 0px;\"><img alt = \"Replacing Emoji...\" title = \"Replacing Emoji...\" src = \"data:image/gif;base64,R0lGODlhEAAQAOYAAP////7+/qOjo/39/enp6bW1tfn5+fr6+vX19fz8/Kurq+3t7cDAwLGxscfHx+Xl5fT09LS0tPf398HBwc/Pz+bm5gMDA+Tk5N/f38TExO7u7pqamsLCwtTU1OLi4jw8PKioqLCwsPLy8q2trbKystvb26qqqtnZ2dfX17u7uyYmJs3NzdjY2Lm5uZ6ensvLy66urvv7++zs7FJSUurq6oWFhfb29kpKStzc3AwMDNHR0aSkpCkpKefn511dXb29vaenp8zMzLe3t/Hx8dDQ0FlZWWZmZsrKyqampvDw8ODg4Li4uL+/v+jo6PPz88jIyHp6eqWlpb6+vk5OTsPDw8bGxsXFxRQUFGpqat3d3fj4+NbW1rq6ury8vJCQkG5ubhwcHN7e3paWloKCgoyMjImJiWFhYXR0dFRUVIeHh5OTk0ZGRo6OjldXV39/fzIyMnd3d9ra2nx8fDY2NnFxcUFBQWxsbJSUlHh4eKGhoaKioi0tLSMjI4CAgNLS0qysrCH/C05FVFNDQVBFMi4wAwEAAAAh+QQEBQAAACwAAAAAEAAQAAAHyIAAggADgi1oCYOKghVfHQAbVwkHLSWLAE1vPgBqYAAUAj2KFQQAETw/ZXwrOy8ABwQBA2NFPwg+XjoFUSE2FREgEgAYNTNwNlqCk08CBReKL1GFih0sgyk7USAelxAOEwxHQGxeYmGXIi0kDVKDFzoBixjPgxIZG38xiz8CVCIAAZYICOKtA4QhSrogYAHEhAEAJSoAICDgxIsCDwRsAZDkxDQABkhECJBhBAArUTRcIqDgAQAOCgIggIHiUgBhAFakiGcgkaBAACH5BAQFAAAALAAAAAANAAsAAAdvgACCAAOCG3SFg4IXcDgAX3MDWjdMgzI+bgBnHwB3Fg4ADxoAHGgcUDcnFnSEYmNBEnIuOgwgKjIVABUCcmISB4IHIksCg1tcAYoAHSxBP0IFPcoAEA4TDQ0FTdMiLYMLYcmKGBcABhRIITHKPwKBACH5BAQFAAAALAAAAAAQAAgAAAdkgACCAAOCCmSFg4oAPWIPAGVmA04+XYsASWMuAGxGnDxUigROAERQHRtYKDw1AAZZAQMRIHEGG1wYQQ1rMh1FORoAGgwCEQYxggkQchZvBQGDF0TQiml3gysME1ULl00bTAxHgQAh+QQEBQAAACwDAAAADQAKAAAHZ4AAAQAAUkADhIkAMgUEAEhpAwhjRIkIJgUAIGUAAlM6ihh6KCNkODMuABAYATgHXFQXKEx2MlZTdTYCQjEJhAkIbjwzPwEXRIOKG0CJVQuKhBdpZGIwBU3QADgfPCpTC2HJiSFdiYEAIfkEBAUAAAAsBQAAAAsADgAAB3mAAAA6TAGChwALABwmARIuHYcpABlAAC1QOIcCHg55F3IFADYeAVwUMjhBXkkUXz42MQmCA1piM2dBAYaII6KIiE1jX1hkwAAeRTdrX7yHJA6HMYgBN3x5ig4dEEMsRhd3V21aAicvBQ96UgBbGwkRARkjAFZRioKBACH5BAQFAAAALAgAAQAIAA8AAAdigAoBBy0lAIcjABQCFYcAITI7LwBaFwEPWSFOcWpjNgADBiNQYiyOABxPp4cLG2U1Lo49UF92ZY4FVqsBZipnSgAXJm0EAm9vNmRLFgUAcSQDiT58BI6CF2DNhykBACIJjoEAIfkEBAUAAAAsBgACAAoADgAAB22AABkjABQCPQCJHg4hMjsvAAcEARQyD1khNhURIBIJiQMHTwIhGImnAEeQqKcaI0g7BawyG15eSKwcK6yJAWMzZA8AO0pxQmYEBUVmWiFfbQ4qLgAeRwMDPlMAZzwoqGhTARVrUqhQcAMAnqeBACH5BAQFAAAALAMABQANAAsAAAdygAJCMQkAAAMHTwIFFwAXRAGGkh0sklULkpIQDhMMRwVNmYYaJgohUgsskZlEKJJIbQiZAXpQIDIALR5GYhcYGW4aR301WgATYBFjaCszIQAERAMaPHADZ3UAajNhlh84AF9zAzJGVZIDsgBeWIVahYaBACH5BAQFAAAALAAACAAQAAgAAAdlgBMNDUAoAIeIIi0kDVKIFAIDiIcYF5NDUDl7NpMAKQJUIgAJHzkbBFAbND0dGyIoQCYGAEtZAEcqChtnJ1AcAEknkodDN1MDXmYAI3IVnQAdcxMAZD4BSWUvzwEQhztjkloJiIEAIfkEBAUAAAAsAAAGAA0ACgAAB2SAAIJWGwOChx0sUDMzZkGHhxAOfUVtRRmQgiIthywkhpAYFwBDZHt1Epk/AgNGfGU9Yn8LMihdCCwAR5gdM0shaiV5W5AQX3QBIGUAP1EahxdGKwBINQEiMCiHAakAKS6GBgmBACH5BAQFAAAALAAAAwALAA0AAAdygABPGAA6Ah4OITI7Az5XLiJYGTIPWSEATWx8c04xAAADB58ADmQDo59eWF9wHaifeGs3aEevqCUMp68QSG1GBq8DblMuCw0MQ0NKXQAUFAAYUA5MBQ8CozZeagE/IwBWow81JwATCgEIowESnyspAQCBACH5BAQFAAAALAAAAAAIAA8AAAdhgACCAAmCOoM4b4ccg0N8dQAZACgeAFUWIQ0DM3MKCGhQJ5NYKmgIB4MAHF4DgjtlZGolg2RYWGcoqYIXRAGDEiluZagAAxtQBUkZHRAAfnEAPQInL4MGJBEBkoIECg+qgQA7\"/></div>\n<div style = \"-webkit-border-radius: 8px; -moz-border-radius: 8px; -moz-opacity: 0; opacity: 0; display: none; padding: 10px; background-color: #ffffff; position: fixed; right: 0px; top: 0px;\"><img title = \"Replacing Emoji...\" alt = \"Replacing Emoji...\" src = \"data:image/gif;base64,R0lGODlhEAAQAOYAAP////7+/qOjo/39/enp6bW1tfn5+fr6+vX19fz8/Kurq+3t7cDAwLGxscfHx+Xl5fT09LS0tPf398HBwc/Pz+bm5gMDA+Tk5N/f38TExO7u7pqamsLCwtTU1OLi4jw8PKioqLCwsPLy8q2trbKystvb26qqqtnZ2dfX17u7uyYmJs3NzdjY2Lm5uZ6ensvLy66urvv7++zs7FJSUurq6oWFhfb29kpKStzc3AwMDNHR0aSkpCkpKefn511dXb29vaenp8zMzLe3t/Hx8dDQ0FlZWWZmZsrKyqampvDw8ODg4Li4uL+/v+jo6PPz88jIyHp6eqWlpb6+vk5OTsPDw8bGxsXFxRQUFGpqat3d3fj4+NbW1rq6ury8vJCQkG5ubhwcHN7e3paWloKCgoyMjImJiWFhYXR0dFRUVIeHh5OTk0ZGRo6OjldXV39/fzIyMnd3d9ra2nx8fDY2NnFxcUFBQWxsbJSUlHh4eKGhoaKioi0tLSMjI4CAgNLS0qysrCH/C05FVFNDQVBFMi4wAwEAAAAh+QQEBQAAACwAAAAAEAAQAAAHyIAAggADgi1oCYOKghVfHQAbVwkHLSWLAE1vPgBqYAAUAj2KFQQAETw/ZXwrOy8ABwQBA2NFPwg+XjoFUSE2FREgEgAYNTNwNlqCk08CBReKL1GFih0sgyk7USAelxAOEwxHQGxeYmGXIi0kDVKDFzoBixjPgxIZG38xiz8CVCIAAZYICOKtA4QhSrogYAHEhAEAJSoAICDgxIsCDwRsAZDkxDQABkhECJBhBAArUTRcIqDgAQAOCgIggIHiUgBhAFakiGcgkaBAACH5BAQFAAAALAAAAAANAAsAAAdvgACCAAOCG3SFg4IXcDgAX3MDWjdMgzI+bgBnHwB3Fg4ADxoAHGgcUDcnFnSEYmNBEnIuOgwgKjIVABUCcmISB4IHIksCg1tcAYoAHSxBP0IFPcoAEA4TDQ0FTdMiLYMLYcmKGBcABhRIITHKPwKBACH5BAQFAAAALAAAAAAQAAgAAAdkgACCAAOCCmSFg4oAPWIPAGVmA04+XYsASWMuAGxGnDxUigROAERQHRtYKDw1AAZZAQMRIHEGG1wYQQ1rMh1FORoAGgwCEQYxggkQchZvBQGDF0TQiml3gysME1ULl00bTAxHgQAh+QQEBQAAACwDAAAADQAKAAAHZ4AAAQAAUkADhIkAMgUEAEhpAwhjRIkIJgUAIGUAAlM6ihh6KCNkODMuABAYATgHXFQXKEx2MlZTdTYCQjEJhAkIbjwzPwEXRIOKG0CJVQuKhBdpZGIwBU3QADgfPCpTC2HJiSFdiYEAIfkEBAUAAAAsBQAAAAsADgAAB3mAAAA6TAGChwALABwmARIuHYcpABlAAC1QOIcCHg55F3IFADYeAVwUMjhBXkkUXz42MQmCA1piM2dBAYaII6KIiE1jX1hkwAAeRTdrX7yHJA6HMYgBN3x5ig4dEEMsRhd3V21aAicvBQ96UgBbGwkRARkjAFZRioKBACH5BAQFAAAALAgAAQAIAA8AAAdigAoBBy0lAIcjABQCFYcAITI7LwBaFwEPWSFOcWpjNgADBiNQYiyOABxPp4cLG2U1Lo49UF92ZY4FVqsBZipnSgAXJm0EAm9vNmRLFgUAcSQDiT58BI6CF2DNhykBACIJjoEAIfkEBAUAAAAsBgACAAoADgAAB22AABkjABQCPQCJHg4hMjsvAAcEARQyD1khNhURIBIJiQMHTwIhGImnAEeQqKcaI0g7BawyG15eSKwcK6yJAWMzZA8AO0pxQmYEBUVmWiFfbQ4qLgAeRwMDPlMAZzwoqGhTARVrUqhQcAMAnqeBACH5BAQFAAAALAMABQANAAsAAAdygAJCMQkAAAMHTwIFFwAXRAGGkh0sklULkpIQDhMMRwVNmYYaJgohUgsskZlEKJJIbQiZAXpQIDIALR5GYhcYGW4aR301WgATYBFjaCszIQAERAMaPHADZ3UAajNhlh84AF9zAzJGVZIDsgBeWIVahYaBACH5BAQFAAAALAAACAAQAAgAAAdlgBMNDUAoAIeIIi0kDVKIFAIDiIcYF5NDUDl7NpMAKQJUIgAJHzkbBFAbND0dGyIoQCYGAEtZAEcqChtnJ1AcAEknkodDN1MDXmYAI3IVnQAdcxMAZD4BSWUvzwEQhztjkloJiIEAIfkEBAUAAAAsAAAGAA0ACgAAB2SAAIJWGwOChx0sUDMzZkGHhxAOfUVtRRmQgiIthywkhpAYFwBDZHt1Epk/AgNGfGU9Yn8LMihdCCwAR5gdM0shaiV5W5AQX3QBIGUAP1EahxdGKwBINQEiMCiHAakAKS6GBgmBACH5BAQFAAAALAAAAwALAA0AAAdygABPGAA6Ah4OITI7Az5XLiJYGTIPWSEATWx8c04xAAADB58ADmQDo59eWF9wHaifeGs3aEevqCUMp68QSG1GBq8DblMuCw0MQ0NKXQAUFAAYUA5MBQ8CozZeagE/IwBWow81JwATCgEIowESnyspAQCBACH5BAQFAAAALAAAAAAIAA8AAAdhgACCAAmCOoM4b4ccg0N8dQAZACgeAFUWIQ0DM3MKCGhQJ5NYKmgIB4MAHF4DgjtlZGolg2RYWGcoqYIXRAGDEiluZagAAxtQBUkZHRAAfnEAPQInL4MGJBEBkoIECg+qgQA7\"/></div></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Browser Compatibility",
			"Examples",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/continue",
		"title": "continue",
		"_id": "4eea83e2a4c86c4dba000026",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Terminates execution of the statements in the current iteration of the current or labelled loop, and continues execution of the loop with the next iteration.</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0, NES 2.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262 (for the unlabeled version) <p>ECMA-262, Edition 3 (for the labeled version)</p> </td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>continue [<em>label</em>]; </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>label</code></dt> <dd>Identifier associated with the label of the statement.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>In contrast to the <code><a title = \"en/JavaScript/Reference/Statements/break\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/break\">break</a></code> statement, <code>continue</code> does not terminate the execution of the loop entirely: instead,</p>\n<ul> <li>In a <code><a title = \"en/JavaScript/Reference/Statements/while\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/while\">while</a></code> loop, it jumps back to the condition.</li>\n</ul>\n<ul> <li>In a <code><a title = \"en/JavaScript/Reference/Statements/for\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for\">for</a></code> loop, it jumps to the update expression.</li>\n</ul>\n<p>The <code>continue</code> statement can include an optional label that allows the program to jump to the next iteration of a labelled loop statement instead of the current loop. In this case, the <code>continue</code> statement needs to be nested within this labelled statement.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_continue_with_while\"></span><h4 class = \"editable\">Example: Using <code>continue</code> with <code>while</code></h4>\n<p>The following example shows a <code><a title = \"en/JavaScript/Reference/Statements/while\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/while\">while</a></code> loop that has a <code>continue</code> statement that executes when the value of <code>i</code> is 3. Thus, <code>n</code> takes on the values 1, 3, 7, and 12.</p>\n\r\n          <pre name = \"code\" class = \"js\">i = 0;\nn = 0;\nwhile (i &lt; 5) {\n   i++;\n   if (i == 3)\n      continue;\n   n += i;\n}</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Example:_Using_continue_with_a_label\"></span><h4 class = \"editable\">Example: Using <code>continue</code> with a label</h4>\n<p>In the following example, a statement labeled <code>checkiandj</code> contains a statement labeled <code>checkj</code>. If <code>continue</code> is encountered, the program continues at the top of the <code>checkj</code> statement. Each time <code>continue</code> is encountered, <code>checkj</code> reiterates until its condition returns false. When false is returned, the remainder of the <code>checkiandj</code> statement is completed.</p>\n<p>If <code>continue</code> had a label of <code>checkiandj</code>, the program would continue at the top of the <code>checkiandj</code> statement.</p>\n\r\n          <pre name = \"code\" class = \"js\">checkiandj:\nwhile (i &lt; 4) {\n   document.write(i + &quot;&lt;br&gt;&quot;);\n   i += 1;\n\n   checkj:\n   while (j &gt; 4) {\n      document.write(j + &quot;&lt;br&gt;&quot;);\n      j -= 1;\n      if ((j % 2) == 0)\n         continue checkj;\n      document.write(j + &quot; is odd.&lt;br&gt;&quot;);\n   }\n   document.write(&quot;i = &quot; + i + &quot;&lt;br&gt;&quot;);\n   document.write(&quot;j = &quot; + j + &quot;&lt;br&gt;&quot;);\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_continue_with_while\"></span><h4 class = \"editable\">Example: Using <code>continue</code> with <code>while</code></h4>\n<p>The following example shows a <code><a title = \"en/JavaScript/Reference/Statements/while\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/while\">while</a></code> loop that has a <code>continue</code> statement that executes when the value of <code>i</code> is 3. Thus, <code>n</code> takes on the values 1, 3, 7, and 12.</p>\n\r\n          <pre name = \"code\" class = \"js\">i = 0;\nn = 0;\nwhile (i &lt; 5) {\n   i++;\n   if (i == 3)\n      continue;\n   n += i;\n}</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_continue_with_a_label\"></span><h4 class = \"editable\">Example: Using <code>continue</code> with a label</h4>\n<p>In the following example, a statement labeled <code>checkiandj</code> contains a statement labeled <code>checkj</code>. If <code>continue</code> is encountered, the program continues at the top of the <code>checkj</code> statement. Each time <code>continue</code> is encountered, <code>checkj</code> reiterates until its condition returns false. When false is returned, the remainder of the <code>checkiandj</code> statement is completed.</p>\n<p>If <code>continue</code> had a label of <code>checkiandj</code>, the program would continue at the top of the <code>checkiandj</code> statement.</p>\n\r\n          <pre name = \"code\" class = \"js\">checkiandj:\nwhile (i &lt; 4) {\n   document.write(i + &quot;&lt;br&gt;&quot;);\n   i += 1;\n\n   checkj:\n   while (j &gt; 4) {\n      document.write(j + &quot;&lt;br&gt;&quot;);\n      j -= 1;\n      if ((j % 2) == 0)\n         continue checkj;\n      document.write(j + &quot; is odd.&lt;br&gt;&quot;);\n   }\n   document.write(&quot;i = &quot; + i + &quot;&lt;br&gt;&quot;);\n   document.write(&quot;j = &quot; + j + &quot;&lt;br&gt;&quot;);\n}</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/JavaScript/Reference/Statements/break\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/break\">break</a>, <a title = \"en/JavaScript/Reference/Statements/label\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/label\">label</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using continue with while",
			"Example: Using continue with a label",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/debugger",
		"title": "debugger",
		"_id": "4eea83e2a4c86c4dba000027",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Invokes any available debugging functionality. If no debugging functionality is available, this statement has no effect.</p>\n<table class = \"standard-table\"> <tbody> <tr> <td colspan = \"2\" class = \"header\">Statement</td> </tr> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMA-262 5th Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>debugger;</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples<code><br/>\n</code></h3>\n<p>The following example shows code where a debugger statement has been inserted, to invoke a debugger (if one exists) when the function is called.</p>\n<pre class = \"eval\">\nfunction potentiallyBuggyCode()\n{\n  debugger;\n  // do potentially buggy stuff to examine, step through, etc.\n} \n</pre>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Examples\n"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/do...while",
		"title": "do...while",
		"_id": "4eea83e4a4c86c4dba000028",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Creates a loop that executes a specified statement until the test condition evaluates to false. The condition is evaluated after executing the statement, resulting in the specified statement executing at least once.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Statement</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.2, NES 3.0</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262, Edition 3\n</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<pre class = \"eval\">do\n   <i>statement</i>\nwhile (<i>condition</i>);\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>statement</code>&nbsp;</dt><dd> A statement that is executed at least once and is re-executed each time the condition evaluates to true. To execute multiple statements within the loop, use a <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/block\" title = \"en/Core_JavaScript_1.5_Reference/Statements/block\">block</a> statement (<code>{ ... }</code>) to group those statements.\n</dd></dl>\n<dl><dt> <code>condition</code>&nbsp;</dt><dd> An expression evaluated after each pass through the loop. If <code>condition</code> evaluates to true, the <code>statement</code> is re-executed. When <code>condition</code> evaluates to false, control passes to the statement following the <code>do...while</code>.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_5\"><span id = \"Example:_Using_do...while\"></span><h4 class = \"editable\"> Example: Using <code>do...while</code> </h4>\n<p>In the following example, the <code>do...while</code> loop iterates at least once and reiterates until <code>i</code> is no longer less than 5.\n</p>\n<pre class = \"eval\">do {\n   i += 1;\n   document.write(i);\n} while (i &lt; 5);\n</pre>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Example:_Using_do...while\"></span><h4 class = \"editable\"> Example: Using <code>do...while</code> </h4>\n<p>In the following example, the <code>do...while</code> loop iterates at least once and reiterates until <code>i</code> is no longer less than 5.\n</p>\n<pre class = \"eval\">do {\n   i += 1;\n   document.write(i);\n} while (i &lt; 5);\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/while\" title = \"en/Core_JavaScript_1.5_Reference/Statements/while\">while</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for\" title = \"en/Core_JavaScript_1.5_Reference/Statements/for\">for</a>\n</p><p><br/>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Examples ",
			" Example: Using do...while ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/export",
		"title": "export",
		"_id": "4eea83e4a4c86c4dba000029",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Allows a signed script to provide properties, functions, and objects to other signed or unsigned scripts. This feature is not in ECMA-262, Edition 3.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.2, NES 3.0</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> export <em>name1</em>, <em>name2</em>, ..., <em>nameN</em>; </code></p>\n<p><code> export *; </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code><em>nameN</em></code>&nbsp;</dt> <dd>Property, function, or object to be exported.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Typically, information in a signed script is available only to scripts signed by the same principals. By exporting properties, functions, or objects, a signed script makes this information available to any script (signed or unsigned). The receiving script uses the companion import statement to access the information.</p>\n<p>The first syntax exports the specified properties, functions, and objects.</p>\n<p>The second syntax exports all properties, functions, and objects from the script.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/JavaScript/Reference/Statements/import\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/import\">import</a></p>\n<p>&nbsp;</p>\n\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/for",
		"title": "for",
		"_id": "4eea83e9a4c86c4dba00002a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Creates a loop that consists of three optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement executed in the loop.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0, NES 2.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<pre class = \"eval\">for ([<em>initialization</em>]; [<em>condition</em>]; [<em>final-expression</em>])\n   <em>statement</em>\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>initialization</code></dt> <dd>An expression (including assignment expressions) or variable declaration. Typically used to initialize a counter variable. This expression may optionally declare new variables with the <code>var</code> keyword. These variables are not local to the loop, i.e. they are in the same scope the <code>for</code> loop is in. The result of this expression is discarded.</dd>\n</dl>\n<dl> <dt><code>condition</code></dt> <dd>An expression to be evaluated before each loop iteration. If this expression evaluates to true, <code>statement</code> is executed. This conditional test is optional. If omitted, the condition always evaluates to true. If the expression evaluates to false, execution skips to the first expression following the <code>for</code> construct.</dd>\n</dl>\n<dl> <dt><code>final-expression</code></dt> <dd>An expression to be evaluated at the end of each loop iteration. This occurs before the next evaluation of <code>condition</code>. Generally used to update or increment the counter variable.</dd>\n</dl>\n<dl> <dt><code>statement</code></dt> <dd>A statement that is executed as long as the condition evaluates to true. To execute multiple statements within the loop, use a <a title = \"en/JavaScript/Reference/Statements/block\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/block\">block</a> statement (<code>{ ... }</code>) to group those statements.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_5\"><span id = \"Example:_Using_for\"></span><h4 class = \"editable\">Example: Using <code>for</code></h4>\n<p>The following <code>for</code> statement starts by declaring the variable <code>i</code> and initializing it to <code>0</code>. It checks that <code>i</code> is less than nine, performs the two succeeding statements, and increments <code>i</code> by 1 after each pass through the loop.</p>\n\r\n          <pre name = \"code\" class = \"js\">for (var i = 0; i &lt; 9; i++) {\n   n += i;\n   myfunc(n);\n}</pre>\r\n        \n</div><div id = \"section_6\"><span id = \"Example:_Using_for_without_the_statement_section\"></span><h4 class = \"editable\">Example: Using <code>for</code> without the <code>statement</code> section</h4>\n<p>The following <code>for</code> cycle calculates the offset position of a node in the <em>[final-expression]</em> section, and therefore it does not require the use of a <code>statement</code> or <code><a title = \"en/JavaScript/Reference/Statements/block\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/block\">block</a> statement</code> section:</p>\n\r\n          <pre name = \"code\" class = \"js\">function showOffsetPos (sId) {\n  var nLeft = 0, nTop = 0;\n  for (var oItNode = document.getElementById(sId); oItNode; nLeft += oItNode.offsetLeft, nTop += oItNode.offsetTop, oItNode = oItNode.offsetParent);\n  alert(&quot;Offset position of \\&quot;&quot; + sId + &quot;\\&quot; element:\\n left: &quot; + nLeft + &quot;px;\\n top: &quot; + nTop + &quot;px;&quot;);\n}</pre>\r\n        \n<div class = \"note\"><strong>Note:</strong> In this case, when you do not use the <code>statement</code> section, <strong>a semicolon is put immediately after the declaration of the cycle</strong>.</div>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Example:_Using_for\"></span><h4 class = \"editable\">Example: Using <code>for</code></h4>\n<p>The following <code>for</code> statement starts by declaring the variable <code>i</code> and initializing it to <code>0</code>. It checks that <code>i</code> is less than nine, performs the two succeeding statements, and increments <code>i</code> by 1 after each pass through the loop.</p>\n\r\n          <pre name = \"code\" class = \"js\">for (var i = 0; i &lt; 9; i++) {\n   n += i;\n   myfunc(n);\n}</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_for_without_the_statement_section\"></span><h4 class = \"editable\">Example: Using <code>for</code> without the <code>statement</code> section</h4>\n<p>The following <code>for</code> cycle calculates the offset position of a node in the <em>[final-expression]</em> section, and therefore it does not require the use of a <code>statement</code> or <code><a title = \"en/JavaScript/Reference/Statements/block\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/block\">block</a> statement</code> section:</p>\n\r\n          <pre name = \"code\" class = \"js\">function showOffsetPos (sId) {\n  var nLeft = 0, nTop = 0;\n  for (var oItNode = document.getElementById(sId); oItNode; nLeft += oItNode.offsetLeft, nTop += oItNode.offsetTop, oItNode = oItNode.offsetParent);\n  alert(&quot;Offset position of \\&quot;&quot; + sId + &quot;\\&quot; element:\\n left: &quot; + nLeft + &quot;px;\\n top: &quot; + nTop + &quot;px;&quot;);\n}</pre>\r\n        \n<div class = \"note\"><strong>Note:</strong> In this case, when you do not use the <code>statement</code> section, <strong>a semicolon is put immediately after the declaration of the cycle</strong>.</div>\n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/JavaScript/Reference/Statements/while\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/while\">while</a>, <a title = \"en/JavaScript/Reference/Statements/do...while\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/do...while\">do...while</a>, <a title = \"en/JavaScript/Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\">for...in</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Examples",
			"Example: Using for",
			"Example: Using for without the statement section",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in",
		"title": "for...in",
		"_id": "4eea83eaa4c86c4dba00002b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Iterates over the enumerable properties of an object, in arbitrary order. For each distinct property, statements can be executed.</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0, NES 2.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<pre class = \"eval\">for (<em>variable</em> in <em>object</em>) {\n  <span style = \"font-style: italic;\">...</span>\n} \n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>variable</code></dt> <dd>A different property name is assigned to <em>variable</em> on each iteratation.</dd>\n</dl>\n<dl> <dt><code>object</code></dt> <dd>Object whose enumerable properties are iterated.</dd>\n</dl>\n<p>Description</p>\n<p>A <code>for...in</code> loop does not iterate over non&ndash;enumerable properties. Objects created from built&ndash;in constructors like Array and Object have inherited non&ndash;enumerable properties from <code>Object.prototype</code> and <code>String.prototype</code> that are not enumerable, such as <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/String\">String</a></code>'s <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf\">indexOf</a></code> method or <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></code>'s <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code> method. The loop will iterate over all enumerable properties of the object or that it inherits from its constructor's proptotype (including any which overwrite built-in properties).</p>\n<p>A <code>for...in</code> loop iterates over the properties of an object in an arbitrary order (see the <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/delete_Operator#Cross-browser_issues\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/delete#Cross-browser_issues\">delete operator</a> for more on why one cannot depend on the seeming orderliness of iteration, at least in a cross-browser setting). If a property is modified in one iteration and then visited at a later time, its value in the loop is its value at that later time. A property that is deleted before it has been visited will not be visited later. Properties added to the object over which iteration is occurring may either be visited or omitted from iteration. In general it is best not to add, modify or remove properties from the object during iteration, other than the property currently being visited. There is no guarantee whether or not an added property will be visited, whether a modified property (other than the current one) will be visited before or after it is modified, or whether a deleted property will be visited before it is deleted.</p>\n<div class = \"note\">Where only the properties of the object should be considered, a&nbsp;<a class = \"internal\" title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/hasOwnProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty\">hasOwnProperty</a>&nbsp;check should be performed to ensure that only properties of the object and not inherited properties are used (<a class = \"internal\" title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/propertyIsEnumerable\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable\">propertyIsEnumerable</a>&nbsp;can also be used but is not intuitive).<br/> <br/> In some cases, built&ndash;in prototypes be usefully extended by the user where there are no concerns caused by inclusion of other code that may use&nbsp;<code>for..in</code>&nbsp; and not perform the above checks.</div>\n<div class = \"note\"> <p><strong><code>for..in</code> should not be used to iterate over an <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a> where index order is important.</strong> Array indexes are just enumerable properties with integer names and are otherwise identical to general Object properties.&nbsp; There is no guarantee that <code>for...in</code> will return the indexes in any particular order and it will return all enumerable properties, including those with non&ndash;integer names and those that are inherited.</p> <p>Because the order of iteration is implementation dependent, iterating over an array may not visit elements in a consistent order. Therefore it is better to use a <a title = \"en/Core_JavaScript_1.5_Reference/Statements/for\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for\">for</a> loop with a numeric index when iterating over arrays where the order of access is important.</p>\n</div>\n</div>",
			"<div id = \"section_4\"><span id = \"Example\"></span><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<p>The following function takes as its arguments an object and the object's name. It then iterates over all the object's enumerable properties and returns a string of the property names and their values.</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {a:1, b:2, c:3};\n\nfunction show_props(obj, objName) {  \n   var result = &quot;&quot;;  \n   for (var prop in obj) {  \n      result += objName + &quot;.&quot; + prop + &quot; = &quot; + obj[prop] + &quot;\\n&quot;;  \n   }  \n   return result;  \n}  \n\nalert(show_props(o, &quot;o&quot;));\n/* alerts:\no.a = 1\no.b = 2\no.c = 3\n*/</pre>\r\n        \n<div id = \"section_5\"><span id = \"See_also\"></span><span id = \"Iterating_over_only\"></span><h4 class = \"editable\">Iterating over only&nbsp;</h4>\n</div></div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><span id = \"Iterating_over_only\"></span><h4 class = \"editable\">Iterating over only&nbsp;</h4>\n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Statements/for_each...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for_each...in\">for each...in</a> - similar to <code>for...in</code>, but iterates over the values of object's properties, rather than the property names themselves. (<a title = \"en/New_in_JavaScript_1.6\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">New in JavaScript 1.6</a>.)</li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Statements/for\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for\">for</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Iterators_and_Generators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Iterators_and_Generators\">Generator expressions</a> (uses the <code>for...in</code> syntax)</li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Examples",
			"Iterating over only&nbsp;",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/for_each...in",
		"title": "for each...in",
		"_id": "4eea83eaa4c86c4dba00002c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Iterates a specified variable over all values of object's properties. For each distinct property, a specified statement is executed.</p>\n<p><strong>Note:</strong> <code>for each...in</code> is a Mozilla extension, and is not part of the ECMAScript standard.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td><a title = \"en/JavaScript/New_in_JavaScript/1.6\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></td> </tr> <tr> <td>ECMA Version:</td> <td>none</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<pre class = \"eval\">\nfor each (<em>variable</em> in <em>object</em>)\n  <em>statement</em>\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>variable</code>&nbsp;</dt> <dd>Variable to iterate over property values, optionally declared with the <code>var</code> keyword. This variable is local to the function, not to the loop.</dd>\n</dl>\n<dl> <dt><code>object</code>&nbsp;</dt> <dd>Object for which the properties are iterated.</dd>\n</dl>\n<dl> <dt><code>statement</code>&nbsp;</dt> <dd>A statement to execute for each property. To execute multiple statements within the loop, use a <a title = \"en/JavaScript/Reference/Statements/block\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/block\">block</a> statement (<code>{ ... }</code>) to group those statements.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Some built-in properties are not iterated over. These include all built-in methods of objects, e.g. <code>String</code>'s <code>indexOf</code> method. However, all user-defined properties are iterated over.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_for_each...in\"></span><h4 class = \"editable\">Example: Using <code>for each...in</code></h4>\n<p><strong>Warning:</strong> Never use a loop like this on arrays. Only use it on objects. <a title = \"en/JavaScript/Reference/Statements/for...in#Description\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in#Description\">Details</a>.</p>\n<p>The following snippet iterates over an object's properties, calculating their sum:</p>\n<pre class = \"eval\">\nvar sum = 0;\nvar obj = {prop1: 5, prop2: 13, prop3: 8};\nfor each (var item in obj) {\n  sum += item;\n}\nprint(sum); // prints &quot;26&quot;, which is 5+13+8\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_for_each...in\"></span><h4 class = \"editable\">Example: Using <code>for each...in</code></h4>\n<p><strong>Warning:</strong> Never use a loop like this on arrays. Only use it on objects. <a title = \"en/JavaScript/Reference/Statements/for...in#Description\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in#Description\">Details</a>.</p>\n<p>The following snippet iterates over an object's properties, calculating their sum:</p>\n<pre class = \"eval\">\nvar sum = 0;\nvar obj = {prop1: 5, prop2: 13, prop3: 8};\nfor each (var item in obj) {\n  sum += item;\n}\nprint(sum); // prints &quot;26&quot;, which is 5+13+8\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\">for...in</a> - a similar statement that iterates over the property <em>names</em>.</li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Statements/for\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for\">for</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Working_with_Arrays#Array_comprehensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Working_with_Arrays#Array_comprehensions\">Array&nbsp;comprehensions</a> (these use <code>for each</code>)</li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using for each...in",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/function",
		"title": "function",
		"_id": "4eea83eba4c86c4dba00002d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Declares a function with the specified parameters.</p>\n<p>You can also define functions using the <code><a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></code> constructor and the <code><a title = \"en/JavaScript/Reference/Operators/Special/function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/function\">function operator</a></code> (function expression).</p>\n<table class = \"standard-table\"> <tbody> <tr> <td colspan = \"2\" class = \"header\">Statement</td> </tr> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMA-262</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<pre class = \"eval\">function <i>name</i>([<i>param</i>] [, <i>param</i>] [..., <i>param</i>]) {\n   <i>statements</i>\n}\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>name</code>&nbsp;</dt><dd> The function name.\n</dd></dl>\n<dl><dt> <code>param</code>&nbsp;</dt><dd> The name of an argument to be passed to the function. A function can have up to 255 arguments.\n</dd></dl>\n<dl><dt> <code>statements</code>&nbsp;</dt><dd> The statements which comprise the body of the function.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>To return a value, the function must have a <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/return\" title = \"en/Core_JavaScript_1.5_Reference/Statements/return\">return</a></code> statement that specifies the value to return.\n</p><p>A function created with the <code>function</code> statement is a <code>Function</code> object and has all the properties, methods, and behavior of <code>Function</code> objects. See <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function\">Function</a></code> for detailed information on functions.\n</p><p>A function can also be declared inside an expression. In this case the function is usually anonymous. See <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/function_Operator\" title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/function_Operator\">function operator</a></code> for more information about the <code>function</code> (function expression).\n</p><p>Functions can be conditionally declared. That is, a function definition can be nested within an <code>if</code> statement. Technically, such declarations are not actually function declarations; they are function expressions.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_function\"></span><h4 class = \"editable\"> Example: Using <code>function</code> </h4>\n<p>The following code declares a function that returns the total dollar amount of sales, when given the number of units sold of products <code>a</code>, <code>b</code>, and <code>c</code>.\n</p>\n<pre class = \"eval\">function calc_sales(units_a, units_b, units_c) {\n   return units_a*79 + units_b * 129 + units_c * 699;\n}\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_function\"></span><h4 class = \"editable\"> Example: Using <code>function</code> </h4>\n<p>The following code declares a function that returns the total dollar amount of sales, when given the number of units sold of products <code>a</code>, <code>b</code>, and <code>c</code>.\n</p>\n<pre class = \"eval\">function calc_sales(units_a, units_b, units_c) {\n   return units_a*79 + units_b * 129 + units_c * 699;\n}\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions\" title = \"en/Core_JavaScript_1.5_Reference/Functions\">Functions</a></code>,\n<code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function\">Function</a></code>,\n<code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/function_Operator\" title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/function_Operator\">function operator</a></code>\n</p><p><br/>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using function ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/if...else",
		"title": "if...else",
		"_id": "4eea83eca4c86c4dba00002e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Executes a statement if a specified condition is true. If the condition is false, another statement can be executed.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td colspan = \"2\" class = \"header\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0, NES 2.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<pre class = \"eval\">\nif (<em>condition</em>)\n   <em>statement1</em>\n[else\n   <em>statement2</em>]\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>condition</code>&nbsp;</dt> <dd>An expression that evaluates to true or false.</dd>\n</dl>\n<dl> <dt><code>statement1</code>&nbsp;</dt> <dd>Statement that is executed if <code>condition</code> evaluates to true. Can be any statement, including further nested <code>if</code> statements. To execute multiple statements, use a <a title = \"en/JavaScript/Reference/Statements/block\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/block\">block</a> statement ({ ... }) to group those statements.</dd>\n</dl>\n<dl> <dt><code>statement2</code>&nbsp;</dt> <dd>Statement that is executed if <code>condition</code> evaluates to false and the <code>else</code> clause exists. Can be any statement, including block statements and further nested <code>if</code> statements.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Multiple <code>if...else</code> statements can be nested to create an <code>else if</code> clause:</p>\n<pre class = \"eval\">\nif (<em>condition1</em>)\n   <em>statement1</em>\nelse if (<em>condition2</em>)\n   <em>statement2</em>\nelse if (<em>condition3</em>)\n   <em>statement3</em>\n...\nelse\n   <em>statementN</em>\n</pre>\n<p>To see how this works, this is how it would look like if the nesting were properly indented:</p>\n<pre class = \"eval\">\nif (<em>condition1</em>)\n   <em>statement1</em>\nelse\n   if (<em>condition2</em>)\n      <em>statement2</em>\n   else\n      if (<em>condition3</em>)\n...\n</pre>\n<p>To execute multiple statements within a clause, use a block statement (<code>{ ... }</code>) to group those statements. In general, it is a good practice to always use block statements, especially in code involving nested <code>if</code> statements:</p>\n<pre class = \"eval\">\nif (<em>condition</em>) {\n   <em>statements1</em>\n} else {\n   <em>statements2</em>\n}\n</pre>\n<p>Do not confuse the primitive boolean values <code>true</code> and <code>false</code> with the true and false values of the <a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">Boolean</a> object. Any value that is not <code>undefined</code>, <code>null</code>, <code>0</code>, <code>NaN</code>, or the empty string (<code>&quot;&quot;</code>), and any object, including a Boolean object whose value is false, evaluates to true when passed to a conditional statement. For example:</p>\n<pre class = \"eval\">\nvar b = new Boolean(false);\nif (b) // this condition evaluates to true\n</pre>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_if...else\"></span><h4 class = \"editable\">Example: Using <code>if...else</code></h4>\n<pre class = \"eval\">\nif (cipher_char == from_char) {\n   result = result + to_char;\n   x++;\n} else {\n   result = result + clear_char;\n</pre>\n</div><div id = \"section_7\"><span id = \"Example:_Assignment_within_the_conditional_expression\"></span><h4 class = \"editable\">Example: Assignment within the conditional expression</h4>\n<p>It is advisable to not use simple assignments in a conditional expression, because the assignment can be confused with equality when glancing over the code. For example, do not use the following code:</p>\n<pre class = \"eval\">\nif (x = y) {\n   /* do the right thing */\n}\n</pre>\n<p>If you need to use an assignment in a conditional expression, a common practice is to put additional parentheses around the assignment. For example:</p>\n<pre class = \"eval\">\nif ((x = y)) {\n   /* do the right thing */\n}\n</pre>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n\n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_if...else\"></span><h4 class = \"editable\">Example: Using <code>if...else</code></h4>\n<pre class = \"eval\">\nif (cipher_char == from_char) {\n   result = result + to_char;\n   x++;\n} else {\n   result = result + clear_char;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Assignment_within_the_conditional_expression\"></span><h4 class = \"editable\">Example: Assignment within the conditional expression</h4>\n<p>It is advisable to not use simple assignments in a conditional expression, because the assignment can be confused with equality when glancing over the code. For example, do not use the following code:</p>\n<pre class = \"eval\">\nif (x = y) {\n   /* do the right thing */\n}\n</pre>\n<p>If you need to use an assignment in a conditional expression, a common practice is to put additional parentheses around the assignment. For example:</p>\n<pre class = \"eval\">\nif ((x = y)) {\n   /* do the right thing */\n}\n</pre>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using if...else",
			"Example: Assignment within the conditional expression"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/import",
		"title": "import",
		"_id": "4eea83f1a4c86c4dba00002f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Allows a script to import properties, functions, and objects from a signed script that has exported the information.\n</p><p>This feature is not in ECMA 262, Edition 3.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Statement</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.2, NES 3.0</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nimport <i>objectName</i>.<i>name1</i>, <i>objectName</i>.<i>name2</i>, ..., <i>objectName</i>.<i>nameN</i>;\n</code>\n</p><p><code>\nimport <i>objectName</i>.<i>*</i>;\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>objectName</code>&nbsp;</dt><dd> Name of the object that will receive the imported names.\n</dd></dl>\n<dl><dt> <code>nameN</code>&nbsp;</dt><dd> Property, function, or object to be imported.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>objectName</code> parameter is the name of the object that will receive the imported names. For example, if <code>f</code> and <code>p</code> have been exported, and if <code>obj</code> is an object from the importing script, the following code makes <code>f</code> and <code>p</code> accessible in the importing script as properties of <code>obj</code>.\n</p>\n<pre class = \"eval\">import obj.f, obj.p;\n</pre>\n<p>The first syntax imports the specified properties, functions, and objects from the exported script.\n</p><p>The second syntax imports all properties, functions, and objects from the exported script.\n</p><p>Typically, information in a signed script is available only to scripts signed by the same principals. By exporting (using the <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/export\" title = \"en/Core_JavaScript_1.5_Reference/Statements/export\">export</a></code> statement) properties, functions, or objects, a signed script makes this information available to any script (signed or unsigned). The receiving script uses the <code>import</code> statement to access the information.\n</p><p>The script must load the export script into a window, frame, or layer before it can import and use any exported properties, functions, and objects.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/export\" title = \"en/Core_JavaScript_1.5_Reference/Statements/export\">export</a>\n</p><p><br/>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/label",
		"title": "label",
		"_id": "4eea83f2a4c86c4dba000030",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Provides a statement with an identifier that you can refer to using a <code>break</code> or <code>continue</code> statement.</p>\n<p>For example, you can use a label to identify a loop, and then use the <code>break</code> or <code>continue</code> statements to indicate whether a program should interrupt the loop or continue its execution.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.2, NES 3.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262, Edition 3</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<pre class = \"eval\"><em>label</em>&nbsp;:\n   <em>statement</em>\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>label</code></dt> <dd>Any JavaScript identifier that is not a reserved word.</dd>\n</dl>\n<dl> <dt><code>statement</code></dt> <dd>Statements. <code>break</code> can be used with any labeled statement, and <code>continue</code> can be used with looping labeled statements.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Avoid_using_labels\"></span><h2 class = \"editable\">Avoid using labels</h2>\n<p>Labels are not very commonly used in JavaScript since they make programs harder to read an understand. As much as possible, avoid using labels and, depending on the cases, prefer <a title = \"function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/function\">calling functions</a> or <a title = \"throw\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/throw\">throwing</a> an error.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"continue_Example\"></span><h3 class = \"editable\"><code>continue</code> Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var i,j;\n\nloop1:\nfor (i = 0; i &lt; 3; i++) {      //The first for statement is labeled &quot;loop1&quot;\n   loop2:\n   for (j = 0; j &lt; 3; j++) {   //The second for statement is labeled &quot;loop2&quot;\n      if (i == 1 &amp;&amp; j == 1) {\n         continue loop1;\n      } else {\n         console.log(&quot;i = &quot; + i + &quot;, j = &quot; + j);\n      }\n   }\n} \n// Output is:\n//   &quot;i = 0, j = 0&quot;\n//   &quot;i = 0, j = 1&quot;\n//   &quot;i = 0, j = 2&quot;\n//   &quot;i = 1, j = 0&quot;\n//   &quot;i = 2, j = 0&quot;\n//   &quot;i = 2, j = 1&quot;\n//   &quot;i = 2, j = 2&quot;\n// Notice how it skips both &quot;i = 1, j = 1&quot; and &quot;i = 1, j = 2&quot;</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"See_also\"></span><span id = \"Example_2_(continue)\"></span><h3 class = \"editable\">Example 2 <code>(continue)</code></h3>\n<p>Given an array of items and an array of tests, this example counts the number of items that passes all the tests.</p>\n\r\n          <pre name = \"code\" class = \"js\">var itemsPassed = 0;\nvar i, j;\n\ntop:\nfor (i = 0; i &lt; items.length; i++){\n  for (j = 0; j &lt; tests.length; j++)\n    if (!tests[j].pass(items[i]))\n      continue top;\n  itemsPassed++;\n}</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example_3_(break)\"></span><h3 class = \"editable\">Example 3 <code>(break)</code></h3>\n<p>Given an array of items and an array of tests, this example determines whether all items pass all tests.</p>\n\r\n          <pre name = \"code\" class = \"js\">var allPass = true;\nvar i, j;\n\ntop:\nfor (i = 0; items.length; i++)\n  for (j = 0; j &lt; tests.length; i++)\n    if (!tests[j].pass(items[i])){\n      allPass = false;\n      break top;\n    }</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"continue_Example\"></span><h3 class = \"editable\"><code>continue</code> Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var i,j;\n\nloop1:\nfor (i = 0; i &lt; 3; i++) {      //The first for statement is labeled &quot;loop1&quot;\n   loop2:\n   for (j = 0; j &lt; 3; j++) {   //The second for statement is labeled &quot;loop2&quot;\n      if (i == 1 &amp;&amp; j == 1) {\n         continue loop1;\n      } else {\n         console.log(&quot;i = &quot; + i + &quot;, j = &quot; + j);\n      }\n   }\n} \n// Output is:\n//   &quot;i = 0, j = 0&quot;\n//   &quot;i = 0, j = 1&quot;\n//   &quot;i = 0, j = 2&quot;\n//   &quot;i = 1, j = 0&quot;\n//   &quot;i = 2, j = 0&quot;\n//   &quot;i = 2, j = 1&quot;\n//   &quot;i = 2, j = 2&quot;\n// Notice how it skips both &quot;i = 1, j = 1&quot; and &quot;i = 1, j = 2&quot;</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><span id = \"Example_2_(continue)\"></span><h3 class = \"editable\">Example 2 <code>(continue)</code></h3>\n<p>Given an array of items and an array of tests, this example counts the number of items that passes all the tests.</p>\n\r\n          <pre name = \"code\" class = \"js\">var itemsPassed = 0;\nvar i, j;\n\ntop:\nfor (i = 0; i &lt; items.length; i++){\n  for (j = 0; j &lt; tests.length; j++)\n    if (!tests[j].pass(items[i]))\n      continue top;\n  itemsPassed++;\n}</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example_3_(break)\"></span><h3 class = \"editable\">Example 3 <code>(break)</code></h3>\n<p>Given an array of items and an array of tests, this example determines whether all items pass all tests.</p>\n\r\n          <pre name = \"code\" class = \"js\">var allPass = true;\nvar i, j;\n\ntop:\nfor (i = 0; items.length; i++)\n  for (j = 0; j &lt; tests.length; i++)\n    if (!tests[j].pass(items[i])){\n      allPass = false;\n      break top;\n    }</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Statements/break\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/break\">break</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Statements/continue\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/continue\">continue</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Avoid using labels",
			"Examples",
			"continue Example",
			"Example 2 (continue)",
			"Example 3 (break)",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/let",
		"title": "let",
		"_id": "4eea83f2a4c86c4dba000031",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Declares a local variable, optionally initializing it to a value.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>let</code> definition:</p>\n\r\n          <pre name = \"code\" class = \"js\">let var1 [= value1] [, var2 [= value2]] [, ..., varN [= valueN]];</pre>\r\n        \n<p><code>let</code> expression:</p>\n\r\n          <pre name = \"code\" class = \"js\">let (var1 [= value1] [, var2 [= value2]] [, ..., varN [= valueN]]) expression;</pre>\r\n        \n<p><code>let</code> statement:</p>\n\r\n          <pre name = \"code\" class = \"js\">let (var1 [= value1] [, var2 [= value2]] [, ..., varN [= valueN]]) statement;</pre>\r\n        \n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<table style = \"\" class = \"standard-table\"> <thead> <tr> <th scope = \"col\">Parameter</th> <th scope = \"col\">Description</th> </tr> </thead> <tbody> <tr> <td><code>var1</code>, <code>var2</code>, &hellip;, <code>varN</code></td> <td>Variable name. It can be any legal identifier.</td> </tr> <tr> <td><code>value1</code>, <code>value2</code>, &hellip;, <code>valueN</code></td> <td>Initial value of the variable. It can be any legal expression.</td> </tr> <tr> <td><code>expression</code></td> <td>Any legal <a title = \"en/JavaScript/Guide/Expressions and Operators#Expressions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Expressions_and_Operators#Expressions\">expression</a>.</td> </tr> <tr> <td><code>statement</code></td> <td>Any legal <a title = \"en/JavaScript/Reference/Statements\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements\">statement</a>.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>let</code> allows you to declare variables, limiting its scope to the block, statement, or expression on which is used. This is unlike the <a title = \"en/JavaScript/Reference/Statements/var\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/var\"><code>var</code></a> keyword, which defines a variable globally, or local to an entire function regardless of block scope.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<p>A <em>let expression</em> limit the scope of the variable declared only in that expression.</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = 5;\nlet(a = 6) alert(a); // 6\nalert(a); // 5</pre>\r\n        \n<p>&nbsp;Used inside a block, <em>let</em> limits the variable's scope to that block. Note the difference between <em>var </em>which its scope is inside the function where is declared</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = 5;\nvar b = 10;\nif (a === 5) {\n  let a = 4; // The scope is inside the if-block\n  var b = 1; // The scope is inside the function\n\n  console.log(a);  // 4\n  console.log(b);  // 1\n} \nconsole.log(a); // 5\nconsole.log(b); // 1</pre>\r\n        \n<p>You can use the <em>let</em> keyword to bind variables locally in the scope of for loops instead of using a global variable (defined using <em>var</em>) for that.</p>\n\r\n          <pre name = \"code\" class = \"js\">for (let i = 0; i&lt;10; i++) {\n  alert(i); // 1, 2, 3, 4 ... 9\n}\n\nalert(i); // i is not defined</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Statements/var\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/var\"><code>var</code></a></li> <li><a title = \"en/JavaScript/Reference/Statements/const\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/const\"><code>const</code></a></li> <li><a title = \"en/JavaScript/New in JavaScript/1.7#Block scope with let (Merge into let Statement)\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.7#Block_scope_with_let_(Merge_into_let_Statement)\">New in&nbsp;JavaScript 1.7</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/return",
		"title": "return",
		"_id": "4eea83f3a4c86c4dba000032",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Specifies the value to be returned by a function.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Statement</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.0, NES 2.0</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nreturn [<em>expression</em>];\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>expression</code>&nbsp;</dt><dd> The expression to return. If omitted, <code>undefined</code> is returned instead.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_5\"><span id = \"Example:_Using_return\"></span><h4 class = \"editable\"> Example: Using <code>return</code> </h4>\n<p>The following function returns the square of its argument, <code>x</code>, where <code>x</code> is a number.\n</p>\n<pre class = \"eval\">function square(x) {\n   return x * x;\n}\n</pre>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Example:_Using_return\"></span><h4 class = \"editable\"> Example: Using <code>return</code> </h4>\n<p>The following function returns the square of its argument, <code>x</code>, where <code>x</code> is a number.\n</p>\n<pre class = \"eval\">function square(x) {\n   return x * x;\n}\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions\" title = \"en/Core_JavaScript_1.5_Reference/Functions\">Functions</a>\n</p><p><br/>\n</p><p><br/>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Examples ",
			" Example: Using return ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/switch",
		"title": "switch",
		"_id": "4eea83f4a4c86c4dba000033",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Evaluates an expression, matching the expression's value to a case label, and executes statements associated with that case.</p>\n<table class = \"fullwidth-table\" style = \"width: auto;\"> <tbody> <tr> <td colspan = \"2\" class = \"header\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.2, NES 3.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262, Edition 3</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<pre class = \"eval\">\nswitch (<em>expression</em>) {\n   case <em>label1</em>:\n      <em>statements1</em>\n      [break;]\n   case <em>label2</em>:\n      <em>statements2</em>\n      [break;]\n   ...\n   case <em>labelN</em>:\n      <em>statementsN</em>\n      [break;]\n   default:\n      <em>statements_def</em>\n      [break;]\n}\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>expression</code>&nbsp;</dt> <dd>An expression matched against each label.</dd>\n</dl>\n<dl> <dt><code>labelN</code>&nbsp;</dt> <dd>Identifier used to match against <code>expression</code>.</dd>\n</dl>\n<dl> <dt><code>statementsN</code>&nbsp;</dt> <dd>Statements that are executed if <code>expression</code> matches the associated label.</dd>\n</dl>\n<dl> <dt><code>statements_def</code>&nbsp;</dt> <dd>Statements that are executed if <code>expression</code> does not match any label.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>If a match is found, the program executes the associated statements. If multiple cases match the provided value, the first case that matches is selected, even if the cases are not equal to each other.</p>\n<p>The program first looks for a <code>case</code> clause with a label matching the value of expression and then transfers control to that clause, executing the associated statements. If no matching label is found, the program looks for the optional <code>default</code> clause, and if found, transfers control to that clause, executing the associated statements. If no <code>default</code> clause is found, the program continues execution at the statement following the end of <code>switch</code>. By convention, the <code>default</code> clause is the last clause, but it does not need to be so.</p>\n<p>The optional <code><a title = \"en/Core_JavaScript_1.5_Reference/Statements/break\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/break\">break</a></code> statement associated with each case label ensures that the program breaks out of switch once the matched statement is executed and continues execution at the statement following switch. If <code>break</code> is omitted, the program continues execution at the next statement in the <code>switch</code> statement.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Example:_Using_switch\"></span><h3 class = \"editable\">Example: Using <code>switch</code></h3>\n<p>In the following example, if <code>expression</code> evaluates to &quot;Bananas&quot;, the program matches the value with case &quot;Bananas&quot; and executes the associated statement. When <code>break</code> is encountered, the program breaks out of <code>switch</code> and executes the statement following <code>switch</code>. If <code>break</code> were omitted, the statement for case &quot;Cherries&quot; would also be executed.</p>\n\r\n          <pre name = \"code\" class = \"js\">switch (expr) {\n   case &quot;Oranges&quot;:\n      document.write(&quot;Oranges are $0.59 a pound.&lt;br&gt;&quot;);\n      break;\n   case &quot;Apples&quot;:\n      document.write(&quot;Apples are $0.32 a pound.&lt;br&gt;&quot;);\n      break;\n   case &quot;Bananas&quot;:\n      document.write(&quot;Bananas are $0.48 a pound.&lt;br&gt;&quot;);\n      break;\n   case &quot;Cherries&quot;:\n      document.write(&quot;Cherries are $3.00 a pound.&lt;br&gt;&quot;);\n      break;\n   case &quot;Mangoes&quot;:\n   case &quot;Papayas&quot;:\n      document.write(&quot;Mangoes and papayas are $2.79 a pound.&lt;br&gt;&quot;);\n      break;\n   default:\n      document.write(&quot;Sorry, we are out of &quot; + expr + &quot;.&lt;br&gt;&quot;);\n}\ndocument.write(&quot;Is there anything else you'd like?&lt;br&gt;&quot;);</pre>\r\n        \n<p>&nbsp;</p>\n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_switch\"></span><h3 class = \"editable\">Example: Using <code>switch</code></h3>\n<p>In the following example, if <code>expression</code> evaluates to &quot;Bananas&quot;, the program matches the value with case &quot;Bananas&quot; and executes the associated statement. When <code>break</code> is encountered, the program breaks out of <code>switch</code> and executes the statement following <code>switch</code>. If <code>break</code> were omitted, the statement for case &quot;Cherries&quot; would also be executed.</p>\n\r\n          <pre name = \"code\" class = \"js\">switch (expr) {\n   case &quot;Oranges&quot;:\n      document.write(&quot;Oranges are $0.59 a pound.&lt;br&gt;&quot;);\n      break;\n   case &quot;Apples&quot;:\n      document.write(&quot;Apples are $0.32 a pound.&lt;br&gt;&quot;);\n      break;\n   case &quot;Bananas&quot;:\n      document.write(&quot;Bananas are $0.48 a pound.&lt;br&gt;&quot;);\n      break;\n   case &quot;Cherries&quot;:\n      document.write(&quot;Cherries are $3.00 a pound.&lt;br&gt;&quot;);\n      break;\n   case &quot;Mangoes&quot;:\n   case &quot;Papayas&quot;:\n      document.write(&quot;Mangoes and papayas are $2.79 a pound.&lt;br&gt;&quot;);\n      break;\n   default:\n      document.write(&quot;Sorry, we are out of &quot; + expr + &quot;.&lt;br&gt;&quot;);\n}\ndocument.write(&quot;Is there anything else you'd like?&lt;br&gt;&quot;);</pre>\r\n        \n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using switch"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/throw",
		"title": "throw",
		"_id": "4eea83fba4c86c4dba000034",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Throws a user-defined exception.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.4</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262, Edition 3</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>throw <em>expression</em>; </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>expression</code></dt> <dd>The expression to throw.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Use the <code>throw</code> statement to throw an exception. When you throw an exception, <code>expression</code> specifies the value of the exception. Each of the following throws an exception:</p>\n<ul> <li><code>throw &quot;Error2&quot;; // generates an exception with a string value</code></li> <li><code>throw 42; // generates an exception with the value 42</code></li> <li><code>throw true; // generates an exception with the value true</code></li>\n</ul>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Throw_an_object\"></span><h4 class = \"editable\">Example: Throw an object</h4>\n<p>You can specify an object when you throw an exception. You can then reference the object's properties in the <code>catch</code> block. The following example creates an object <code>myUserException</code> of type <code>UserException</code> and uses it in a <code>throw</code> statement.</p>\n<pre>function UserException(message) {\n   this.message = message;\n   this.name = &quot;UserException&quot;;\n}\nfunction getMonthName(mo) {\n   mo = mo-1; // Adjust month number for array index (1=Jan, 12=Dec)\n   var months = new Array(&quot;Jan&quot;, &quot;Feb&quot;, &quot;Mar&quot;, &quot;Apr&quot;, &quot;May&quot;, &quot;Jun&quot;, &quot;Jul&quot;,\n      &quot;Aug&quot;, &quot;Sep&quot;, &quot;Oct&quot;, &quot;Nov&quot;, &quot;Dec&quot;);\n   if (months[mo]&nbsp;!== undefined) {\n      return months[mo];\n   } else {\n      myUserException = new UserException(&quot;InvalidMonthNo&quot;);\n      throw myUserException;\n   }\n}\n\ntry {\n   // statements to try\n   var myMonth = 15; // 15 is out of bound to raise the exception\n   monthName = getMonthName(myMonth);\n} catch (e) {\n   monthName = &quot;unknown&quot;;\n   logMyErrors(e.message, e.name); // pass exception object to err handler\n}\n</pre>\n</div><div id = \"section_7\"><span id = \"Example:_Another_example_of_throwing_an_object\"></span><h4 class = \"editable\">Example: Another example of throwing an object</h4>\n<p>The following example tests an input string for a U.S. zip code. If the zip code uses an invalid format, the throw statement throws an exception by creating an object of type <code>ZipCodeFormatException</code>.</p>\n<pre>/*\n * Creates a ZipCode object.\n *\n * Accepted formats for a zip code are:\n *    12345\n *    12345-6789\n *    123456789\n *    12345 6789\n *\n * If the argument passed to the ZipCode constructor does not\n * conform to one of these patterns, an exception is thrown.\n */\n\nfunction ZipCode(zip) {\n   zip = new String(zip);\n   pattern = /[0-9]{5}([- ]?[0-9]{4})?/;\n   if (pattern.test(zip)) {\n      // zip code value will be the first match in the string\n      this.value = zip.match(pattern)[0];\n      this.valueOf = function() {\n         return this.value\n      };\n      this.toString = function() {\n         return String(this.value)\n      };\n   } else {\n      throw new ZipCodeFormatException(zip);\n   }\n}\n\nfunction ZipCodeFormatException(value) {\n   this.value = value;\n   this.message = &quot;does not conform to the expected format for a zip code&quot;;\n   this.toString = function() {\n      return this.value + this.message\n   };\n}\n\n/*\n * This could be in a script that validates address data\n * for US addresses.\n */\n\nvar ZIPCODE_INVALID = -1;\nvar ZIPCODE_UNKNOWN_ERROR = -2;\n\nfunction verifyZipCode(z) {\n   try {\n      z = new ZipCode(z);\n   } catch (e) {\n      if (e instanceof ZipCodeFormatException) {\n         return ZIPCODE_INVALID;\n      } else {\n         return ZIPCODE_UNKNOWN_ERROR;\n      }\n   }\n   return z;\n}\n\na = verifyZipCode(95060);         // returns 95060\nb = verifyZipCode(9560;)          // returns -1\nc = verifyZipCode(&quot;a&quot;);           // returns -1\nd = verifyZipCode(&quot;95060&quot;);       // returns 95060\ne = verifyZipCode(&quot;95060 1234&quot;);  // returns 95060 1234\n</pre>\n</div><div id = \"section_8\"><span id = \"Example:_Rethrow_an_exception\"></span><h4 class = \"editable\">Example: Rethrow an exception</h4>\n<p>You can use <code>throw</code> to rethrow an exception after you catch it. The following example catches an exception with a numeric value and rethrows it if the value is over 50. The rethrown exception propagates up to the enclosing function or to the top level so that the user sees it.</p>\n<pre class = \"eval\">try {\n   throw n; // throws an exception with a numeric value\n} catch (e) {\n   if (e &lt;= 50) {\n      // statements to handle exceptions 1-50\n   } else {\n      // cannot handle this exception, so rethrow\n      throw e;\n   }\n}\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Throw_an_object\"></span><h4 class = \"editable\">Example: Throw an object</h4>\n<p>You can specify an object when you throw an exception. You can then reference the object's properties in the <code>catch</code> block. The following example creates an object <code>myUserException</code> of type <code>UserException</code> and uses it in a <code>throw</code> statement.</p>\n<pre>function UserException(message) {\n   this.message = message;\n   this.name = &quot;UserException&quot;;\n}\nfunction getMonthName(mo) {\n   mo = mo-1; // Adjust month number for array index (1=Jan, 12=Dec)\n   var months = new Array(&quot;Jan&quot;, &quot;Feb&quot;, &quot;Mar&quot;, &quot;Apr&quot;, &quot;May&quot;, &quot;Jun&quot;, &quot;Jul&quot;,\n      &quot;Aug&quot;, &quot;Sep&quot;, &quot;Oct&quot;, &quot;Nov&quot;, &quot;Dec&quot;);\n   if (months[mo]&nbsp;!== undefined) {\n      return months[mo];\n   } else {\n      myUserException = new UserException(&quot;InvalidMonthNo&quot;);\n      throw myUserException;\n   }\n}\n\ntry {\n   // statements to try\n   var myMonth = 15; // 15 is out of bound to raise the exception\n   monthName = getMonthName(myMonth);\n} catch (e) {\n   monthName = &quot;unknown&quot;;\n   logMyErrors(e.message, e.name); // pass exception object to err handler\n}\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Another_example_of_throwing_an_object\"></span><h4 class = \"editable\">Example: Another example of throwing an object</h4>\n<p>The following example tests an input string for a U.S. zip code. If the zip code uses an invalid format, the throw statement throws an exception by creating an object of type <code>ZipCodeFormatException</code>.</p>\n<pre>/*\n * Creates a ZipCode object.\n *\n * Accepted formats for a zip code are:\n *    12345\n *    12345-6789\n *    123456789\n *    12345 6789\n *\n * If the argument passed to the ZipCode constructor does not\n * conform to one of these patterns, an exception is thrown.\n */\n\nfunction ZipCode(zip) {\n   zip = new String(zip);\n   pattern = /[0-9]{5}([- ]?[0-9]{4})?/;\n   if (pattern.test(zip)) {\n      // zip code value will be the first match in the string\n      this.value = zip.match(pattern)[0];\n      this.valueOf = function() {\n         return this.value\n      };\n      this.toString = function() {\n         return String(this.value)\n      };\n   } else {\n      throw new ZipCodeFormatException(zip);\n   }\n}\n\nfunction ZipCodeFormatException(value) {\n   this.value = value;\n   this.message = &quot;does not conform to the expected format for a zip code&quot;;\n   this.toString = function() {\n      return this.value + this.message\n   };\n}\n\n/*\n * This could be in a script that validates address data\n * for US addresses.\n */\n\nvar ZIPCODE_INVALID = -1;\nvar ZIPCODE_UNKNOWN_ERROR = -2;\n\nfunction verifyZipCode(z) {\n   try {\n      z = new ZipCode(z);\n   } catch (e) {\n      if (e instanceof ZipCodeFormatException) {\n         return ZIPCODE_INVALID;\n      } else {\n         return ZIPCODE_UNKNOWN_ERROR;\n      }\n   }\n   return z;\n}\n\na = verifyZipCode(95060);         // returns 95060\nb = verifyZipCode(9560;)          // returns -1\nc = verifyZipCode(&quot;a&quot;);           // returns -1\nd = verifyZipCode(&quot;95060&quot;);       // returns 95060\ne = verifyZipCode(&quot;95060 1234&quot;);  // returns 95060 1234\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Rethrow_an_exception\"></span><h4 class = \"editable\">Example: Rethrow an exception</h4>\n<p>You can use <code>throw</code> to rethrow an exception after you catch it. The following example catches an exception with a numeric value and rethrows it if the value is over 50. The rethrown exception propagates up to the enclosing function or to the top level so that the user sees it.</p>\n<pre class = \"eval\">try {\n   throw n; // throws an exception with a numeric value\n} catch (e) {\n   if (e &lt;= 50) {\n      // statements to handle exceptions 1-50\n   } else {\n      // cannot handle this exception, so rethrow\n      throw e;\n   }\n}\n</pre>\n</div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/JavaScript/Reference/Statements/try...catch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/try...catch\">try...catch</a></p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Throw an object",
			"Example: Another example of throwing an object",
			"Example: Rethrow an exception",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/try...catch",
		"title": "try...catch",
		"_id": "4eea83fca4c86c4dba000035",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Marks a block of statements to try, and specifies a response, should an exception be thrown.</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.4 <p>JavaScript 1.5, NES 6.0: Added multiple catch clauses (Netscape extension).</p> </td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262, Edition 3</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<pre class = \"eval\">try {\n   <em>try_statements</em>\n}\n[catch (<em>exception_var_1</em> if <em>condition_1</em>) {\n   <em>catch_statements_1</em>\n}]\n...\n[catch (<em>exception_var_2</em>) {\n   <em>catch_statements_2</em>\n}]\n[finally {\n   <em>finally_statements</em>\n}]\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>try_statements</code></dt> <dd>The statements to be executed.</dd>\n</dl>\n<dl> <dt><code>catch_statements_1</code>, <code>catch_statements_2</code></dt> <dd>Statements that are executed if an exception is thrown in the <code>try</code> block.</dd>\n</dl>\n<dl> <dt><code>exception_var_1</code>, <code>exception_var_2</code></dt> <dd>An identifier to hold an exception object for the associated <code>catch</code> clause.</dd>\n</dl>\n<dl> <dt><code>condition_1</code></dt> <dd>A conditional expression.</dd>\n</dl>\n<dl> <dt><code>finally_statements</code></dt> <dd>Statements that are executed after the <code>try</code> statement completes. These statements execute regardless of whether or not an exception was thrown or caught.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>try</code> statement consists of a <code>try</code> block, which contains one or more statements, and at least one <code>catch</code> clause or a <code>finally</code> clause, or both. That is, there are three forms of the <code>try</code> statement:</p>\n<ol> <li><code>try...catch</code></li> <li><code>try...finally</code></li> <li><code>try...catch...finally</code></li>\n</ol>\n<p>A <code>catch</code> clause contain statements that specify what to do if an exception is thrown in the <code>try</code> block. That is, you want the <code>try</code> block to succeed, and if it does not succeed, you want control to pass to the <code>catch</code> block. If any statement within the <code>try</code> block (or in a function called from within the <code>try</code> block) throws an exception, control immediately shifts to the <code>catch</code> clause. If no exception is thrown in the <code>try</code> block, the <code>catch</code> clause is skipped.</p>\n<p>The <code>finally</code> clause executes after the <code>try</code> block and <code>catch</code> clause(s) execute but before the statements following the <code>try</code> statement. It always executes, regardless of whether or not an exception was thrown or caught.</p>\n<p>You can nest one or more <code>try</code> statements. If an inner <code>try</code> statement does not have a <code>catch</code> clause, the enclosing <code>try</code> statement's <code>catch</code> clause is entered.</p>\n<p>You also use the <code>try</code> statement to handle Java exceptions. See the <a title = \"en/JavaScript/Guide\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide\">Core JavaScript 1.5 Guide</a> for information on Java exceptions.</p>\n<div id = \"section_5\"><span id = \"Unconditional_catch_clause\"></span><h4 class = \"editable\">Unconditional <code>catch</code> clause</h4>\n<p>When a single, unconditional <code>catch</code> clause is used, the <code>catch</code> block is entered when any exception is thrown. For example, when the exception occurs in the following code, control transfers to the <code>catch</code> clause.</p>\n\r\n          <pre name = \"code\" class = \"js\">try {\n   throw &quot;myException&quot;; // generates an exception\n}\ncatch (e) {\n   // statements to handle any exceptions\n   logMyErrors(e); // pass exception object to error handler\n}</pre>\r\n        \n</div><div id = \"section_6\"><span id = \"Conditional_catch_clauses\"></span><h4 class = \"editable\">Conditional <code>catch</code> clauses</h4>\n<p>You can also use one or more conditional <code>catch</code> clauses to handle specific exceptions. In this case, the appropriate <code>catch</code> clause is entered when the specified exception is thrown. In the following example, code in the <code>try</code> block can potentially throw three exceptions: <code>TypeError</code>, <code>RangeError</code>, and <code>EvalError</code>. When an exception occurs, control transfers to the appropriate <code>catch</code> clause. If the exception is not one of the specified exceptions and an unconditional <code>catch</code> clause is found, control transfers to that <code>catch</code> clause.</p>\n<p>If you use an unconditional <code>catch</code> clause with one or more conditional <code>catch</code> clauses, the unconditional <code>catch</code> clause must be specified last. Otherwise, the unconditional <code>catch</code> clause will intercept all types of exception before they can reach the conditional ones.</p>\n\r\n          <pre name = \"code\" class = \"js\">try {\n   myroutine(); // may throw three exceptions\n} catch (e if e instanceof TypeError) {\n   // statements to handle TypeError exceptions\n} catch (e if e instanceof RangeError) {\n   // statements to handle RangeError exceptions\n} catch (e if e instanceof EvalError) {\n   // statements to handle EvalError exceptions\n} catch (e) {\n   // statements to handle any unspecified exceptions\n   logMyErrors(e); // pass exception object to error handler\n}</pre>\r\n        \n<p>Note: This functionality is not part of the ECMAScript specification.</p>\n</div><div id = \"section_7\"><span id = \"The_exception_identifier\"></span><h4 class = \"editable\">The exception identifier</h4>\n<p>When an exception is thrown in the <code>try</code> block, <em><code>exception_var</code></em> (e.g. the <code>e</code> in <code>catch (e)</code>) holds the value specified by the <code>throw</code> statement. You can use this identifier to get information about the exception that was thrown.</p>\n<p>This identifier is local to the <code>catch</code> clause. That is, it is created when the <code>catch</code> clause is entered, and after the <code>catch</code> clause finishes executing, the identifier is no longer available.</p>\n</div><div id = \"section_8\"><span id = \"The_finally_clause\"></span><h4 class = \"editable\">The <code>finally</code> clause</h4>\n<p>The <code>finally</code> clause contains statements to execute after the <code>try</code> block and <code>catch</code> clause(s) execute but before the statements following the <code>try</code> statement. The <code>finally</code> clause executes regardless of whether or not an exception is thrown. If an exception is thrown, the statements in the <code>finally</code> clause execute even if no <code>catch</code> clause handles the exception.</p>\n<p>You can use the <code>finally</code> clause to make your script fail gracefully when an exception occurs; for example, you may need to release a resource that your script has tied up. The following example opens a file and then executes statements that use the file (server-side JavaScript allows you to access files). If an exception is thrown while the file is open, the <code>finally</code> clause closes the file before the script fails.</p>\n\r\n          <pre name = \"code\" class = \"js\">openMyFile()\ntry {\n   // tie up a resource\n   writeMyFile(theData);\n}\nfinally {\n   closeMyFile(); // always close the resource\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_5\"><span id = \"Unconditional_catch_clause\"></span><h4 class = \"editable\">Unconditional <code>catch</code> clause</h4>\n<p>When a single, unconditional <code>catch</code> clause is used, the <code>catch</code> block is entered when any exception is thrown. For example, when the exception occurs in the following code, control transfers to the <code>catch</code> clause.</p>\n\r\n          <pre name = \"code\" class = \"js\">try {\n   throw &quot;myException&quot;; // generates an exception\n}\ncatch (e) {\n   // statements to handle any exceptions\n   logMyErrors(e); // pass exception object to error handler\n}</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Conditional_catch_clauses\"></span><h4 class = \"editable\">Conditional <code>catch</code> clauses</h4>\n<p>You can also use one or more conditional <code>catch</code> clauses to handle specific exceptions. In this case, the appropriate <code>catch</code> clause is entered when the specified exception is thrown. In the following example, code in the <code>try</code> block can potentially throw three exceptions: <code>TypeError</code>, <code>RangeError</code>, and <code>EvalError</code>. When an exception occurs, control transfers to the appropriate <code>catch</code> clause. If the exception is not one of the specified exceptions and an unconditional <code>catch</code> clause is found, control transfers to that <code>catch</code> clause.</p>\n<p>If you use an unconditional <code>catch</code> clause with one or more conditional <code>catch</code> clauses, the unconditional <code>catch</code> clause must be specified last. Otherwise, the unconditional <code>catch</code> clause will intercept all types of exception before they can reach the conditional ones.</p>\n\r\n          <pre name = \"code\" class = \"js\">try {\n   myroutine(); // may throw three exceptions\n} catch (e if e instanceof TypeError) {\n   // statements to handle TypeError exceptions\n} catch (e if e instanceof RangeError) {\n   // statements to handle RangeError exceptions\n} catch (e if e instanceof EvalError) {\n   // statements to handle EvalError exceptions\n} catch (e) {\n   // statements to handle any unspecified exceptions\n   logMyErrors(e); // pass exception object to error handler\n}</pre>\r\n        \n<p>Note: This functionality is not part of the ECMAScript specification.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"The_exception_identifier\"></span><h4 class = \"editable\">The exception identifier</h4>\n<p>When an exception is thrown in the <code>try</code> block, <em><code>exception_var</code></em> (e.g. the <code>e</code> in <code>catch (e)</code>) holds the value specified by the <code>throw</code> statement. You can use this identifier to get information about the exception that was thrown.</p>\n<p>This identifier is local to the <code>catch</code> clause. That is, it is created when the <code>catch</code> clause is entered, and after the <code>catch</code> clause finishes executing, the identifier is no longer available.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"The_finally_clause\"></span><h4 class = \"editable\">The <code>finally</code> clause</h4>\n<p>The <code>finally</code> clause contains statements to execute after the <code>try</code> block and <code>catch</code> clause(s) execute but before the statements following the <code>try</code> statement. The <code>finally</code> clause executes regardless of whether or not an exception is thrown. If an exception is thrown, the statements in the <code>finally</code> clause execute even if no <code>catch</code> clause handles the exception.</p>\n<p>You can use the <code>finally</code> clause to make your script fail gracefully when an exception occurs; for example, you may need to release a resource that your script has tied up. The following example opens a file and then executes statements that use the file (server-side JavaScript allows you to access files). If an exception is thrown while the file is open, the <code>finally</code> clause closes the file before the script fails.</p>\n\r\n          <pre name = \"code\" class = \"js\">openMyFile()\ntry {\n   // tie up a resource\n   writeMyFile(theData);\n}\nfinally {\n   closeMyFile(); // always close the resource\n}</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<p>See the examples for <a title = \"en/JavaScript/Reference/Statements/throw\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/throw\">throw</a>.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Statements/throw\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/throw\">throw</a></li> <li><a title = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Unconditional catch clause",
			"Conditional catch clauses",
			"The exception identifier",
			"The finally clause",
			"Examples",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/while",
		"title": "while",
		"_id": "4eea83fca4c86c4dba000036",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Creates a loop that executes a specified statement as long as the test condition evaluates to true. The condition is evaluated before executing the statement.\n</p>\n<table class = \"fullwidth-table\" border = \"1\">\n<tr>\n<td colspan = \"2\">Statement</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.0, NES 2.0</td>\n</tr>\n<tr>\n<td>ECMA version:</td>\n<td>ECMA-262</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<pre class = \"eval\">while (<i>condition</i>)\n  <i>statement</i>\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>condition</code>&nbsp;</dt><dd> An expression evaluated before each pass through the loop. If this condition evaluates to true, <code>statement</code> is executed. When condition evaluates to false, execution continues with the statement after the <code>while</code> loop.\n</dd></dl>\n<dl><dt> <code>statement</code>&nbsp;</dt><dd> A statement that is executed as long as the condition evaluates to true. To execute multiple statements within the loop, use a <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/block\" title = \"en/Core_JavaScript_1.5_Reference/Statements/block\">block</a> statement (<code>{ ... }</code>) to group those statements.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<p>The following <code>while</code> loop iterates as long as <code>n</code> is less than three.\n</p>\n<pre class = \"eval\">n = 0;\nx = 0;\nwhile (n &lt; 3) {\n  n ++;\n  x += n;\n}\n</pre>\n<p>Each iteration, the loop increments <code>n</code> and adds it to <code>x</code>. Therefore, <code>x</code> and <code>n</code> take on the following values:\n</p>\n<ul><li> After the first pass: <code>n</code> = 1 and <code>x</code> = 1\n</li><li> After the second pass: <code>n</code> = 2 and <code>x</code> = 3\n</li><li> After the third pass: <code>n</code> = 3 and <code>x</code> = 6\n</li></ul>\n<p>After completing the third pass, the condition <code>n</code> &lt; 3 is no longer true, so the loop terminates.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/do...while\" title = \"en/Core_JavaScript_1.5_Reference/Statements/do...while\">do...while</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for\" title = \"en/Core_JavaScript_1.5_Reference/Statements/for\">for</a>\n</p><p><br/>\n</p><p><br/>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Examples ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/var",
		"title": "var",
		"_id": "4eea83fea4c86c4dba000037",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Declares a variable, optionally initializing it to a value.</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0, NES 2.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>var <em>varname1 [</em>= <em>value1 [</em>, <em>varname2 [</em>, <em>varname3 ... [</em>, <em>varnameN]]]]</em>;</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>varnameN</code></dt> <dd>Variable name. It can be any legal identifier.</dd>\n</dl>\n<dl> <dt><code>valueN</code></dt> <dd>Initial value of the variable. It can be any legal expression.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The scope of a variable declared with <code>var</code> is the enclosing function or, for variables declared outside a function, the global scope (which is bound to the global object).</p>\n<p>Using <code>var</code> outside a function is optional; assigning a value to an undeclared variable implicitly declares it as a global variable (also a property of the global object). The difference is that z declared variable is a non-configurable property of the global object while an undeclared is configurable.</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = 1;\nb = 2;\n\ndelete this.a; // Throws a TypeError in strict mode. Fails silently otherwise.\ndelete this.b;\n\nconsole.log(a, b); // Throws a ReferenceError. Since the 'b' property doesn't exist in the global object,\n// the 'b' variable stops being a variable</pre>\r\n        \n<p>Consequently, it is recommended to always declare your variables, regardless of being in the global scope or in a function</p>\n<p>Failure to declare the variable in these cases will very likely lead to unexpected results. For that reason, in ECMAScript 5 <a title = \"Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/Strict_mode\">strict mode</a>, assigning a value an undeclared variable inside a function throws an error.</p>\n<div id = \"section_5\"><span id = \"var_hoisting\"></span><h3 class = \"editable\">var hoisting</h3>\n<p>In JavaScript, variable can be declared after being used.</p>\n\r\n          <pre name = \"code\" class = \"js\">bla = 2\nvar bla;\n// ...\n\n// is implicitly understood as:\n\nvar bla;\nbla = 2;</pre>\r\n        \n<p>For that reason, it is recommanded to always declare variable at the top of functions. Otherwise, it may lead to confusing cases:</p>\n\r\n          <pre name = \"code\" class = \"js\">var cells = document.getElementsByTagName('td');\n\nfor(var i=0; i&lt;cells.length; i++){\n  var cell = cells[i];\n  cell.addEventListener('click', function(){\n    cell.style.backgroundColor = '#00F'; // which 'cell' ?\n  }, false);\n}</pre>\r\n        \n<p>Here, while the intention is to capture the 'local' cell within the loop, what happened is the following:</p>\n\r\n          <pre name = \"code\" class = \"js\">var i, cell;\nvar cells = document.getElementsByTagName('td');\n\nfor(i=0; i&lt;cells.length; i++){\n  cell = cells[i];\n  cell.addEventListener('click', function(){\n    cell.style.backgroundColor = '#00F';\n  }, false);\n}</pre>\r\n        \n<p>The 'cell' captured in the event listener is the global 'cell' variable which, at the end of the loop contains the last cell traversed in the loop. Consequently, clicking on any cell will only affect the last cell.</p></div></div>",
			"<div id = \"section_5\"><span id = \"var_hoisting\"></span><h3 class = \"editable\">var hoisting</h3>\n<p>In JavaScript, variable can be declared after being used.</p>\n\r\n          <pre name = \"code\" class = \"js\">bla = 2\nvar bla;\n// ...\n\n// is implicitly understood as:\n\nvar bla;\nbla = 2;</pre>\r\n        \n<p>For that reason, it is recommanded to always declare variable at the top of functions. Otherwise, it may lead to confusing cases:</p>\n\r\n          <pre name = \"code\" class = \"js\">var cells = document.getElementsByTagName('td');\n\nfor(var i=0; i&lt;cells.length; i++){\n  var cell = cells[i];\n  cell.addEventListener('click', function(){\n    cell.style.backgroundColor = '#00F'; // which 'cell' ?\n  }, false);\n}</pre>\r\n        \n<p>Here, while the intention is to capture the 'local' cell within the loop, what happened is the following:</p>\n\r\n          <pre name = \"code\" class = \"js\">var i, cell;\nvar cells = document.getElementsByTagName('td');\n\nfor(i=0; i&lt;cells.length; i++){\n  cell = cells[i];\n  cell.addEventListener('click', function(){\n    cell.style.backgroundColor = '#00F';\n  }, false);\n}</pre>\r\n        \n<p>The 'cell' captured in the event listener is the global 'cell' variable which, at the end of the loop contains the last cell traversed in the loop. Consequently, clicking on any cell will only affect the last cell.</p></div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<p>Declaring and initializing two variables:</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = 0, b = 0;</pre>\r\n        \n<p>Assigning 2 variables with single string value.</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = &quot;A&quot;;\nvar b = a;\n\n// Equivalent to:\n\nvar a, b = a = &quot;A&quot;;</pre>\r\n        \n<p>Be careful of the order though:</p>\n\r\n          <pre name = \"code\" class = \"js\">var x = y, y = 'A';\nconsole.log(x + y); // undefinedA\n\n// Here, x is declared. y declaration (but not initialisation!) is hoisted\n// so, at the time of &quot;x = y&quot;, y is declared (no ReferenceError is thrown) and its value is 'undefined'\n// then, y is assigned its value.\n// Consequently, after the first line, x === undefined &amp;&amp; y === 'A'. Hence the concatenation</pre>\r\n        \n<p>Be careful of initialization of several variables:</p>\n\r\n          <pre name = \"code\" class = \"js\">var x = 0;\n\nfunction f(){\n  var x = y = 1; // x is declared locally. y is not!\n}\nf();\n\nconsole.log(x, y); // 0, 1\n// x is the global one as expected\n// y leaked outside of the function, though!</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Statements/let\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/let\"><code>let</code></a></li> <li><code><a title = \"en/Core_JavaScript_1.5_Reference/Statements/const\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/const\">const</a></code></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Statements/const\" class = \" external\" rel = \"external\" href = \"http://blog.meloncard.com/post/12175941935/how-one-missing-var-ruined-our-launch\" target = \"_blank\">How One Missing `var` Ruined our Launch</a>.</li> </ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"var hoisting",
			"Examples",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Statements/with",
		"title": "with",
		"_id": "4eea8401a4c86c4dba000038",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Extends the scope chain for a statement.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td colspan = \"2\">Statement</td>\n</tr>\n<tr>\n<td><i>Implemented in:</i></td>\n<td>JavaScript 1.0, NES 2.0</td>\n</tr>\n<tr>\n<td><i>ECMA version:</i></td>\n<td>ECMA-262</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<pre class = \"eval\">with (<i>object</i>)\n  <i>statement</i>\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>object</code>&nbsp;</dt><dd> Adds the given object to the scope chain used when evaluating the statement. The parentheses around object are required.\n</dd></dl>\n<dl><dt> <code>statement</code>&nbsp;</dt><dd> Any statement. To execute multiple statements, use a <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/block\" title = \"en/Core_JavaScript_1.5_Reference/Statements/block\">block</a> statement ({ ... }) to group those statements.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>JavaScript looks up an unqualified name by searching a scope chain associated with the execution context of the script or function containing that unqualified name. The 'with' statement adds the given object to the head of this scope chain during the evaluation of its statement body. If an unqualified name used in the body matches a property in the scope chain, then the name is bound to the property and the object containing the property. Otherwise a 'ReferenceError' is thrown.</p>\n<div class = \"note\">Using <code>with</code> is not recommended, and is forbidden in ECMAScript 5 <a title = \"en/JavaScript/Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Strict_mode\">strict mode</a>. The recommended alternative is to assign the object whose properties you want to access to a temporary variable.<br/>\n(On a historical note, Firefox 1.5 used to generate a warning when the 'with' statement was used: &quot;deprecated with statement usage&quot;. This has been removed in Firefox 1.5.0.1 (\n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=322430\" class = \"external\" title = \"VERIFIED FIXED - Remove &quot;deprecated with statement usage&quot; strict warning\">\nbug 322430</a>\n).)</div>\n<p><em>Performance Pro &amp; Con</em></p>\n<ul> <li>Pro: 'with' can help reduce file size by reducing the need to repeat a lengthy object reference without performance penalty. The scope chain change required by 'with' is not computationally expensive. Use of 'with' will relieve the interpreter of parsing repeated object references. Note, however, that in many cases this benefit can be achieved by using a temporary variable to store a reference to the desired object.</li>\n</ul>\n<ul> <li>Con: 'with' forces the specified object to be searched first for all name lookups. Therefore all identifiers that aren't members of the specified object will be found more slowly in a 'with' block. Where performance is important, 'with' should only be used to encompass code blocks that access members of the specified object.</li>\n</ul>\n<p><em>Ambiguity Con</em></p>\n<ul> <li>Con: 'with' makes it hard for a human reader or JavaScript compiler to decide whether an unqualified name will be found along the scope chain, and if so, in which object. So given this example: <pre>\nfunction f(x, o) {\n  with (o)\n    print(x);\n}\n</pre> <p>only when <code>f</code> is called is <code>x</code> either found or not, and if found, either in <code>o</code> or (if no such property exists) in <code>f</code>'s activation object, where <code>x</code> names the first formal argument. If you forget to define <code>x</code> in the object you pass as the second argument, or if there's some similar bug or confusion, you won't get an error -- just unexpected results.</p> </li>\n</ul></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_with\"></span><h4 class = \"editable\"> Example: Using <code>with</code> </h4>\n<p>The following <code>with</code> statement specifies that the <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math\"><code>Math</code></a> object is the default object. The statements following the <code>with</code> statement refer to the <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/PI\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/PI\"><code>PI</code></a> property and the <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/cos\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/cos\"><code>cos</code></a> and <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/sin\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/sin\"><code>sin</code></a> methods, without specifying an object. JavaScript assumes the <code>Math</code> object for these references.\n</p>\n<pre class = \"eval\">var a, x, y;\nvar r = 10;\nwith (Math) {\n  a = PI * r * r;\n  x = r * cos(PI);\n  y = r * sin(PI / 2);\n}\n</pre>\n<p><br/>\n</p>\n\n\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_with\"></span><h4 class = \"editable\"> Example: Using <code>with</code> </h4>\n<p>The following <code>with</code> statement specifies that the <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math\"><code>Math</code></a> object is the default object. The statements following the <code>with</code> statement refer to the <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/PI\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/PI\"><code>PI</code></a> property and the <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/cos\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/cos\"><code>cos</code></a> and <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/sin\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/sin\"><code>sin</code></a> methods, without specifying an object. JavaScript assumes the <code>Math</code> object for these references.\n</p>\n<pre class = \"eval\">var a, x, y;\nvar r = 10;\nwith (Math) {\n  a = PI * r * r;\n  x = r * cos(PI);\n  y = r * sin(PI / 2);\n}\n</pre>\n<p><br/>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			"Description",
			" Examples ",
			" Example: Using with "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators",
		"title": "Arithmetic Operators",
		"_id": "4eea840aa4c86c4dba00003a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value. The standard arithmetic operators are addition (+), subtraction (-), multiplication (*), and division (/).</p>\n<p>These operators work as they do in most other programming languages when used with floating point numbers (in particular, note that division by zero produces <a class = \"internal\" title = \"en/Core JavaScript 1.5 Reference/Global Properties/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\"><code>+/-Infinity</code></a>). For example:</p>\n<pre class = \"eval\">\n1 / 2      // returns 0.5 in JavaScript\n1 / 2      // returns 0 in Java (neither number is explicitly a floating point number)\n\n1.0 / 2.0  // returns 0.5 in both JavaScript and Java\n\n2.0 / 0    // returns Infinity in Javascript\n2.0 / 0.0  // returns Infinity too\n2.0 / -0.0 // returns -Infinity in Javascript\n\n</pre>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Operators</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \".25_.28Modulus.29\"></span><span id = \".25_(Modulus)\"></span><h3 class = \"editable\">&nbsp;% (Modulus)</h3>\n<p>The modulus operator is used as follows:</p>\n<p><code> <em>var1</em>&nbsp;% <em>var2</em> </code></p>\n<p>The modulus operator returns the first operand modulo the second operand, that is, <code>var1</code> modulo <code>var2</code>, in the preceding statement, where <code>var1</code> and <code>var2</code> are variables. The modulo function is the integer remainder of dividing <code>var1</code> by <code>var2</code>. For example, <code>12&nbsp;% 5</code> returns <code>2</code>. The result will have the same sign as <em>var1</em>; that is, <code>&minus;1&nbsp;% 2</code> returns <code>&minus;1</code>.</p>\n</div>",
			"<div id = \"section_3\"><span id = \".2B.2B_.28Increment.29\"></span><span id = \".2B.2B_(Increment)\"></span><h3 class = \"editable\">++ (Increment)</h3>\n<p>The increment operator is used as follows:</p>\n<p><code><em>var</em>++</code> or <code>++<em>var</em></code></p>\n<p>This operator increments (adds one to) its operand and returns a value. If used postfix, with operator after operand (for example, x++), then it returns the value before incrementing. If used prefix with operator before operand (for example, ++x), then it returns the value after incrementing.</p>\n<p>For example, if <code>x</code> is three, then the statement <code>y = x++</code> sets <code>y</code> to 3 and increments <code>x</code> to 4. If <code>x</code> is 3, then the statement <code>y = ++x</code> increments <code>x</code> to 4 and sets <code>y</code> to 4.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"--_.28Decrement.29\"></span><span id = \"--_(Decrement)\"></span><h3 class = \"editable\">-- (Decrement)</h3>\n<p>The decrement operator is used as follows:</p>\n<p><code><em>var</em>--</code> or <code>--<em>var</em></code></p>\n<p>This operator decrements (subtracts one from) its operand and returns a value. If used postfix (for example, x--), then it returns the value before decrementing. If used prefix (for example, --x), then it returns the value after decrementing.</p>\n<p>For example, if <code>x</code> is three, then the statement <code>y = x--</code> sets <code>y</code> to 3 and decrements <code>x</code> to 2. If <code>x</code> is 3, then the statement <code>y = --x</code> decrements <code>x</code> to 2 and sets <code>y</code> to 2.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"-_.28Unary_Negation.29\"></span><span id = \"-_(Unary_Negation)\"></span><h3 class = \"editable\">- (Unary Negation)</h3>\n<p>The unary negation operator precedes its operand and negates it. For example, <code>y = -x</code> negates the value of <code>x</code> and assigns that to <code>y</code>; that is, if <code>x</code> were 3, <code>y</code> would get the value -3 and <code>x</code> would retain the value 3.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"-_.28Unary_Negation.29\"></span><span id = \".2B_(Unary_Plus)\"></span><h3 class = \"editable\">+ (Unary Plus)</h3>\n<p>The unary plus operator precedes its operand and evaluates to its operand but attempts to converts it into a number, if it isn't already. For example, <code>y = +x</code> takes the value of <code>x</code> and assigns that to <code>y</code>; that is, if <code>x</code> were 3, <code>y</code> would get the value 3 and <code>x</code> would retain the value 3; but if x were the string &quot;3&quot;, y would also get the value 3. Although unary negation (-) also can convert non-numbers, unary plus is the fastest and preferred way of converting something into a number, because it does not perform any other operations on the number. It can convert string representations of integers and floats, as well as the non-string values true, false, and null. Integers in both decimal and hexadecimal (&quot;0x&quot;-prefixed) formats are supported. Negative numbers are supported (though not for hex). If it cannot parse a particular value, it will evaluate to NaN.</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"&nbsp;% (Modulus)",
			"++ (Increment)",
			"-- (Decrement)",
			"- (Unary Negation)",
			"+ (Unary Plus)"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/Assignment_Operators",
		"title": "Assignment Operators",
		"_id": "4eea840aa4c86c4dba00003b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>An assignment operator assigns a value to its left operand based on the value of its right operand.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td colspan = \"2\" class = \"header\">Operators</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n<p>The basic assignment operator is equal (<code>=</code>), which assigns the value of its right operand to its left operand. That is, <code>x = y</code> assigns the value of <code>y</code> to <code>x</code>. The other assignment operators are usually shorthand for standard operations, as shown in the following table.</p>\n<table class = \"standard-table\"> <tbody> <tr> <th>Shorthand operator</th> <th>Meaning</th> </tr> <tr> <td><code>x += y</code></td> <td><code>x = x + y</code></td> </tr> <tr> <td><code>x -= y</code></td> <td><code>x = x - y</code></td> </tr> <tr> <td><code>x *= y</code></td> <td><code>x = x * y</code></td> </tr> <tr> <td><code>x /= y</code></td> <td><code>x = x / y</code></td> </tr> <tr> <td><code>x&nbsp;%= y</code></td> <td><code>x = x&nbsp;% y</code></td> </tr> <tr> <td><code>x &lt;&lt;= y</code></td> <td><code>x = x &lt;&lt; y</code></td> </tr> <tr> <td><code>x &gt;&gt;= y</code></td> <td><code>x = x &gt;&gt; y</code></td> </tr> <tr> <td><code>x &gt;&gt;&gt;= y</code></td> <td><code>x = x &gt;&gt;&gt; y</code></td> </tr> <tr> <td><code>x &amp;= y</code></td> <td><code>x = x &amp; y</code></td> </tr> <tr> <td><code>x ^= y</code></td> <td><code>x = x ^ y</code></td> </tr> <tr> <td><code>x |= y</code></td> <td><code>x = x | y</code></td> </tr> </tbody>\n</table>\n<p>In unusual situations, the assignment operator is not identical to the Meaning expression in this table. When the left operand of an assignment operator itself contains an assignment operator, the left operand is evaluated only once. For example:</p>\n<pre>\na[i++] += 5 //i is evaluated only once\na[i++] = a[i++] + 5 //i is evaluated twice\n</pre>\n\n<p></p></div>"
		],
		"sectionNames": [
			"Summary"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators",
		"title": "Bitwise Operators",
		"_id": "4eea840ba4c86c4dba00003c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Bitwise operators treat their operands as a sequence of 32 bits (zeros and ones), rather than as decimal, hexadecimal, or octal numbers. For example, the decimal number nine has a binary representation of 1001. Bitwise operators perform their operations on such binary representations, but they return standard JavaScript numerical values.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td colspan = \"2\" class = \"header\">Operators</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n<p>The following table summarizes JavaScript's bitwise operators:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <th>Operator</th> <th>Usage</th> <th>Description</th> </tr> <tr> <td>Bitwise AND</td> <td style = \"white-space: nowrap\"><code>a &amp; b</code></td> <td>Returns a one in each bit position for which the corresponding bits of both operands are ones.</td> </tr> <tr> <td>Bitwise OR</td> <td style = \"white-space: nowrap\"><code>a | b</code></td> <td>Returns a one in each bit position for which the corresponding bits of either or both operands are ones.</td> </tr> <tr> <td>Bitwise XOR</td> <td style = \"white-space: nowrap\"><code>a ^ b</code></td> <td>Returns a one in each bit position for which the corresponding bits of either but not both operands are ones.</td> </tr> <tr> <td>Bitwise NOT</td> <td style = \"white-space: nowrap\"><code>~ a</code></td> <td>Inverts the bits of its operand.</td> </tr> <tr> <td>Left shift</td> <td style = \"white-space: nowrap\"><code>a &lt;&lt; b</code></td> <td>Shifts <code>a</code> in binary representation <code>b</code> (&lt; 32) bits to the left, shifting in zeros from the right.</td> </tr> <tr> <td>Sign-propagating right shift</td> <td style = \"white-space: nowrap\"><code>a &gt;&gt; b</code></td> <td>Shifts <code>a</code> in binary representation <code>b</code> (&lt; 32) bits to the right, discarding bits shifted off.</td> </tr> <tr> <td>Zero-fill right shift</td> <td style = \"white-space: nowrap\"><code>a &gt;&gt;&gt; b</code></td> <td>Shifts <code>a</code> in binary representation <code>b</code> (&lt; 32) bits to the right, discarding bits shifted off, and shifting in zeros from the left.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Signed_32-bit_integers\"></span><h3 class = \"editable\">Signed 32-bit integers</h3>\n<p>The operands of all bitwise operators are converted to signed 32-bit integers in big-endian order and in two's complement format. Big-endian order means that the most significant bit (the bit position with the greatest value) is the left-most bit if the 32 bits are arranged in a horizontal line. Two's complement format means that a number's negative counterpart (e.g. 5 vs. -5) is all the number's bits inverted (bitwise NOT of the number, a.k.a. one's complement of the number) plus one. For example, the following encodes the integer 314 (base 10):</p>\n<pre class = \"eval\">\n00000000000000000000000100111010\n</pre>\n<p>The following encodes ~314, i.e. the one's complement of 314:</p>\n<pre class = \"eval\">\n11111111111111111111111011000101\n</pre>\n<p>Finally, the following encodes -314, i.e. the two's complement of 314:</p>\n<pre class = \"eval\">\n11111111111111111111111011000110\n</pre>\n<p>The two's complement guarantees that the left-most bit is 0 when the number is positive and 1 when the number is negative. Thus, it is called the <em>sign bit</em>.</p>\n<p>The number 0 is the integer that is composed completely of 0 bits.</p>\n<p>The number -1 is the integer that is composed completely of 1 bits.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Bitwise_logical_operators\"></span><h3 class = \"editable\">Bitwise logical operators</h3>\n<p>Conceptually, the bitwise logical operators work as follows:</p>\n<ul> <li>The operands are converted to 32-bit integers and expressed by a series of bits (zeros and ones).</li> <li>Each bit in the first operand is paired with the corresponding bit in the second operand: first bit to first bit, second bit to second bit, and so on.</li> <li>The operator is applied to each pair of bits, and the result is constructed bitwise.</li>\n</ul>\n<div id = \"section_4\"><span id = \"&amp;_.28Bitwise_AND.29\"></span><span id = \".26_(Bitwise_AND)\"></span><h4 class = \"editable\">&amp; (Bitwise AND)</h4>\n<p>Performs the AND operation on each pair of bits. <code>a</code> AND <code>b</code> yields 1 only if both <code>a</code> and <code>b</code> are 1. The truth table for the AND operation is:</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">a</td> <td class = \"header\">b</td> <td class = \"header\">a AND b</td> </tr> <tr> <td>0</td> <td>0</td> <td>0</td> </tr> <tr> <td>0</td> <td>1</td> <td>0</td> </tr> <tr> <td>1</td> <td>0</td> <td>0</td> </tr> <tr> <td>1</td> <td>1</td> <td>1</td> </tr> </tbody>\n</table>\n<p>Example:</p>\n<pre class = \"eval\">\n     9 (base 10) = 00000000000000000000000000001001 (base 2)\n    14 (base 10) = 00000000000000000000000000001110 (base 2)\n                   --------------------------------\n14 &amp; 9 (base 10) = 00000000000000000000000000001000 (base 2) = 8 (base 10)\n</pre>\n<p>Bitwise ANDing any number x with 0 yields 0.</p>\n<p>Bitwise ANDing any number x with -1 yields x.</p>\n</div><div id = \"section_5\"><span id = \"|_.28Bitwise_OR.29\"></span><span id = \".7C_(Bitwise_OR)\"></span><h4 class = \"editable\">| (Bitwise OR)</h4>\n<p>Performs the OR operation on each pair of bits. <code>a</code> OR <code>b</code> yields 1 if either <code>a</code> or <code>b</code> is 1. The truth table for the OR operation is:</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">a</td> <td class = \"header\">b</td> <td class = \"header\">a OR b</td> </tr> <tr> <td>0</td> <td>0</td> <td>0</td> </tr> <tr> <td>0</td> <td>1</td> <td>1</td> </tr> <tr> <td>1</td> <td>0</td> <td>1</td> </tr> <tr> <td>1</td> <td>1</td> <td>1</td> </tr> </tbody>\n</table>\n<pre class = \"eval\">\n     9 (base 10) = 00000000000000000000000000001001 (base 2)\n    14 (base 10) = 00000000000000000000000000001110 (base 2)\n                   --------------------------------\n14 | 9 (base 10) = 00000000000000000000000000001111 (base 2) = 15 (base 10)\n</pre>\n<p>Bitwise ORing any number x with 0 yields x.</p>\n<p>Bitwise ORing any number x with -1 yields -1.</p>\n</div><div id = \"section_6\"><span id = \".5E_.28Bitwise_XOR.29\"></span><span id = \".5E_(Bitwise_XOR)\"></span><h4 class = \"editable\">^ (Bitwise XOR)</h4>\n<p>Performs the XOR operation on each pair of bits. <code>a</code> XOR <code>b</code> yields 1 if <code>a</code> and <code>b</code> are different. The truth table for the XOR operation is:</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">a</td> <td class = \"header\">b</td> <td class = \"header\">a XOR b</td> </tr> <tr> <td>0</td> <td>0</td> <td>0</td> </tr> <tr> <td>0</td> <td>1</td> <td>1</td> </tr> <tr> <td>1</td> <td>0</td> <td>1</td> </tr> <tr> <td>1</td> <td>1</td> <td>0</td> </tr> </tbody>\n</table>\n<p>Example:</p>\n<pre class = \"eval\">\n     9 (base 10) = 00000000000000000000000000001001 (base 2)\n    14 (base 10) = 00000000000000000000000000001110 (base 2)\n                   --------------------------------\n14 ^ 9 (base 10) = 00000000000000000000000000000111 (base 2) = 7 (base 10)\n</pre>\n<p>Bitwise XORing any number x with 0 yields x.</p>\n<p>Bitwise XORing any number x with -1 yields ~x.</p>\n</div><div id = \"section_7\"><span id = \".7E_.28Bitwise_NOT.29\"></span><span id = \".7E_(Bitwise_NOT)\"></span><h4 class = \"editable\">~ (Bitwise NOT)</h4>\n<p>Performs the NOT operator on each bit. NOT <code>a</code> yields the inverted value (a.k.a. one's complement) of <code>a</code>. The truth table for the NOT operation is:</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">a</td> <td class = \"header\">NOT a</td> </tr> <tr> <td>0</td> <td>1</td> </tr> <tr> <td>1</td> <td>0</td> </tr> </tbody>\n</table>\n<p>Example:</p>\n<pre class = \"eval\">\n 9 (base 10) = 00000000000000000000000000001001 (base 2)\n               --------------------------------\n~9 (base 10) = 11111111111111111111111111110110 (base 2) = -10 (base 10)\n</pre>\n<p>Bitwise NOTing any number x yields -(x + 1). For example, ~5 yields -6.</p>\n</div></div>",
			"<div id = \"section_4\"><span id = \"&amp;_.28Bitwise_AND.29\"></span><span id = \".26_(Bitwise_AND)\"></span><h4 class = \"editable\">&amp; (Bitwise AND)</h4>\n<p>Performs the AND operation on each pair of bits. <code>a</code> AND <code>b</code> yields 1 only if both <code>a</code> and <code>b</code> are 1. The truth table for the AND operation is:</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">a</td> <td class = \"header\">b</td> <td class = \"header\">a AND b</td> </tr> <tr> <td>0</td> <td>0</td> <td>0</td> </tr> <tr> <td>0</td> <td>1</td> <td>0</td> </tr> <tr> <td>1</td> <td>0</td> <td>0</td> </tr> <tr> <td>1</td> <td>1</td> <td>1</td> </tr> </tbody>\n</table>\n<p>Example:</p>\n<pre class = \"eval\">\n     9 (base 10) = 00000000000000000000000000001001 (base 2)\n    14 (base 10) = 00000000000000000000000000001110 (base 2)\n                   --------------------------------\n14 &amp; 9 (base 10) = 00000000000000000000000000001000 (base 2) = 8 (base 10)\n</pre>\n<p>Bitwise ANDing any number x with 0 yields 0.</p>\n<p>Bitwise ANDing any number x with -1 yields x.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"|_.28Bitwise_OR.29\"></span><span id = \".7C_(Bitwise_OR)\"></span><h4 class = \"editable\">| (Bitwise OR)</h4>\n<p>Performs the OR operation on each pair of bits. <code>a</code> OR <code>b</code> yields 1 if either <code>a</code> or <code>b</code> is 1. The truth table for the OR operation is:</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">a</td> <td class = \"header\">b</td> <td class = \"header\">a OR b</td> </tr> <tr> <td>0</td> <td>0</td> <td>0</td> </tr> <tr> <td>0</td> <td>1</td> <td>1</td> </tr> <tr> <td>1</td> <td>0</td> <td>1</td> </tr> <tr> <td>1</td> <td>1</td> <td>1</td> </tr> </tbody>\n</table>\n<pre class = \"eval\">\n     9 (base 10) = 00000000000000000000000000001001 (base 2)\n    14 (base 10) = 00000000000000000000000000001110 (base 2)\n                   --------------------------------\n14 | 9 (base 10) = 00000000000000000000000000001111 (base 2) = 15 (base 10)\n</pre>\n<p>Bitwise ORing any number x with 0 yields x.</p>\n<p>Bitwise ORing any number x with -1 yields -1.</p>\n</div>",
			"<div id = \"section_6\"><span id = \".5E_.28Bitwise_XOR.29\"></span><span id = \".5E_(Bitwise_XOR)\"></span><h4 class = \"editable\">^ (Bitwise XOR)</h4>\n<p>Performs the XOR operation on each pair of bits. <code>a</code> XOR <code>b</code> yields 1 if <code>a</code> and <code>b</code> are different. The truth table for the XOR operation is:</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">a</td> <td class = \"header\">b</td> <td class = \"header\">a XOR b</td> </tr> <tr> <td>0</td> <td>0</td> <td>0</td> </tr> <tr> <td>0</td> <td>1</td> <td>1</td> </tr> <tr> <td>1</td> <td>0</td> <td>1</td> </tr> <tr> <td>1</td> <td>1</td> <td>0</td> </tr> </tbody>\n</table>\n<p>Example:</p>\n<pre class = \"eval\">\n     9 (base 10) = 00000000000000000000000000001001 (base 2)\n    14 (base 10) = 00000000000000000000000000001110 (base 2)\n                   --------------------------------\n14 ^ 9 (base 10) = 00000000000000000000000000000111 (base 2) = 7 (base 10)\n</pre>\n<p>Bitwise XORing any number x with 0 yields x.</p>\n<p>Bitwise XORing any number x with -1 yields ~x.</p>\n</div>",
			"<div id = \"section_7\"><span id = \".7E_.28Bitwise_NOT.29\"></span><span id = \".7E_(Bitwise_NOT)\"></span><h4 class = \"editable\">~ (Bitwise NOT)</h4>\n<p>Performs the NOT operator on each bit. NOT <code>a</code> yields the inverted value (a.k.a. one's complement) of <code>a</code>. The truth table for the NOT operation is:</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">a</td> <td class = \"header\">NOT a</td> </tr> <tr> <td>0</td> <td>1</td> </tr> <tr> <td>1</td> <td>0</td> </tr> </tbody>\n</table>\n<p>Example:</p>\n<pre class = \"eval\">\n 9 (base 10) = 00000000000000000000000000001001 (base 2)\n               --------------------------------\n~9 (base 10) = 11111111111111111111111111110110 (base 2) = -10 (base 10)\n</pre>\n<p>Bitwise NOTing any number x yields -(x + 1). For example, ~5 yields -6.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Bitwise_shift_operators\"></span><h3 class = \"editable\">Bitwise shift operators</h3>\n<p>The bitwise shift operators take two operands: the first is a quantity to be shifted, and the second specifies the number of bit positions by which the first operand is to be shifted. The direction of the shift operation is controlled by the operator used.</p>\n<p>Shift operators convert their operands to 32-bit integers in big-endian order and return a result of the same type as the left operand.&nbsp; The right operand should be less than 32, but if not only the low five bits will be used.</p>\n<div id = \"section_9\"><span id = \".3C.3C_.28Left_shift.29\"></span><span id = \".3C.3C_(Left_shift)\"></span><h4 class = \"editable\">&lt;&lt; (Left shift)</h4>\n<p>This operator shifts the first operand the specified number of bits to the left. Excess bits shifted off to the left are discarded. Zero bits are shifted in from the right.</p>\n<p>For example, <code>9 &lt;&lt; 2</code> yields 36:</p>\n<pre class = \"eval\">\n     9 (base 10): 00000000000000000000000000001001 (base 2)\n                  --------------------------------\n9 &lt;&lt; 2 (base 10): 00000000000000000000000000100100 (base 2) = 36 (base 10)\n</pre>\n<p>Bitwise shifting any number <strong>x</strong> to the left by <strong>y</strong> bits yields <strong>x * y^2</strong>.</p>\n</div><div id = \"section_10\"><span id = \".3E.3E_.28Sign-propagating_right_shift.29\"></span><span id = \".3E.3E_(Sign-propagating_right_shift)\"></span><h4 class = \"editable\">&gt;&gt; (Sign-propagating right shift)</h4>\n<p>This operator shifts the first operand the specified number of bits to the right. Excess bits shifted off to the right are discarded. Copies of the leftmost bit are shifted in from the left. Since the new leftmost bit has the same value as the previous leftmost bit, the sign bit (the leftmost bit) does not change. Hence the name &quot;sign-propagating&quot;.</p>\n<p>For example, <code>9 &gt;&gt; 2</code> yields 2:</p>\n<pre class = \"eval\">\n     9 (base 10): 00000000000000000000000000001001 (base 2)\n                  --------------------------------\n9 &gt;&gt; 2 (base 10): 00000000000000000000000000000010 (base 2) = 2 (base 10)\n</pre>\n<p>Likewise, <code>-9 &gt;&gt; 2</code> yields -3, because the sign is preserved:</p>\n<pre class = \"eval\">\n     -9 (base 10): 11111111111111111111111111110111 (base 2)\n                   --------------------------------\n-9 &gt;&gt; 2 (base 10): 11111111111111111111111111111101 (base 2) = -3 (base 10)\n</pre>\n</div><div id = \"section_11\"><span id = \".3E.3E.3E_.28Zero-fill_right_shift.29\"></span><span id = \".3E.3E.3E_(Zero-fill_right_shift)\"></span><h4 class = \"editable\">&gt;&gt;&gt; (Zero-fill right shift)</h4>\n<p>This operator shifts the first operand the specified number of bits to the right. Excess bits shifted off to the right are discarded. Zero bits are shifted in from the left. The sign bit becomes 0, so the result is always positive.</p>\n<p>For non-negative numbers, zero-fill right shift and sign-propagating right shift yield the same result. For example, <code>9 &gt;&gt;&gt; 2</code> yields 2, the same as <code>9 &gt;&gt; 2</code>:</p>\n<pre class = \"eval\">\n      9 (base 10): 00000000000000000000000000001001 (base 2)\n                   --------------------------------\n9 &gt;&gt;&gt; 2 (base 10): 00000000000000000000000000000010 (base 2) = 2 (base 10)\n</pre>\n<p>However, this is not the case for negative numbers. For example, <code>-9 &gt;&gt;&gt; 2</code> yields 1073741821, which is different than <code>-9 &gt;&gt; 2</code> (which yields -3):</p>\n<pre class = \"eval\">\n      -9 (base 10): 11111111111111111111111111110111 (base 2)\n                    --------------------------------\n-9 &gt;&gt;&gt; 2 (base 10): 00111111111111111111111111111101 (base 2) = 1073741821 (base 10)\n</pre>\n</div></div>",
			"<div id = \"section_9\"><span id = \".3C.3C_.28Left_shift.29\"></span><span id = \".3C.3C_(Left_shift)\"></span><h4 class = \"editable\">&lt;&lt; (Left shift)</h4>\n<p>This operator shifts the first operand the specified number of bits to the left. Excess bits shifted off to the left are discarded. Zero bits are shifted in from the right.</p>\n<p>For example, <code>9 &lt;&lt; 2</code> yields 36:</p>\n<pre class = \"eval\">\n     9 (base 10): 00000000000000000000000000001001 (base 2)\n                  --------------------------------\n9 &lt;&lt; 2 (base 10): 00000000000000000000000000100100 (base 2) = 36 (base 10)\n</pre>\n<p>Bitwise shifting any number <strong>x</strong> to the left by <strong>y</strong> bits yields <strong>x * y^2</strong>.</p>\n</div>",
			"<div id = \"section_10\"><span id = \".3E.3E_.28Sign-propagating_right_shift.29\"></span><span id = \".3E.3E_(Sign-propagating_right_shift)\"></span><h4 class = \"editable\">&gt;&gt; (Sign-propagating right shift)</h4>\n<p>This operator shifts the first operand the specified number of bits to the right. Excess bits shifted off to the right are discarded. Copies of the leftmost bit are shifted in from the left. Since the new leftmost bit has the same value as the previous leftmost bit, the sign bit (the leftmost bit) does not change. Hence the name &quot;sign-propagating&quot;.</p>\n<p>For example, <code>9 &gt;&gt; 2</code> yields 2:</p>\n<pre class = \"eval\">\n     9 (base 10): 00000000000000000000000000001001 (base 2)\n                  --------------------------------\n9 &gt;&gt; 2 (base 10): 00000000000000000000000000000010 (base 2) = 2 (base 10)\n</pre>\n<p>Likewise, <code>-9 &gt;&gt; 2</code> yields -3, because the sign is preserved:</p>\n<pre class = \"eval\">\n     -9 (base 10): 11111111111111111111111111110111 (base 2)\n                   --------------------------------\n-9 &gt;&gt; 2 (base 10): 11111111111111111111111111111101 (base 2) = -3 (base 10)\n</pre>\n</div>",
			"<div id = \"section_11\"><span id = \".3E.3E.3E_.28Zero-fill_right_shift.29\"></span><span id = \".3E.3E.3E_(Zero-fill_right_shift)\"></span><h4 class = \"editable\">&gt;&gt;&gt; (Zero-fill right shift)</h4>\n<p>This operator shifts the first operand the specified number of bits to the right. Excess bits shifted off to the right are discarded. Zero bits are shifted in from the left. The sign bit becomes 0, so the result is always positive.</p>\n<p>For non-negative numbers, zero-fill right shift and sign-propagating right shift yield the same result. For example, <code>9 &gt;&gt;&gt; 2</code> yields 2, the same as <code>9 &gt;&gt; 2</code>:</p>\n<pre class = \"eval\">\n      9 (base 10): 00000000000000000000000000001001 (base 2)\n                   --------------------------------\n9 &gt;&gt;&gt; 2 (base 10): 00000000000000000000000000000010 (base 2) = 2 (base 10)\n</pre>\n<p>However, this is not the case for negative numbers. For example, <code>-9 &gt;&gt;&gt; 2</code> yields 1073741821, which is different than <code>-9 &gt;&gt; 2</code> (which yields -3):</p>\n<pre class = \"eval\">\n      -9 (base 10): 11111111111111111111111111110111 (base 2)\n                    --------------------------------\n-9 &gt;&gt;&gt; 2 (base 10): 00111111111111111111111111111101 (base 2) = 1073741821 (base 10)\n</pre>\n</div>",
			"<div id = \"section_12\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_13\"><span id = \"Example:_Flags_and_bitmasks\"></span><h4 class = \"editable\">Example: Flags and bitmasks</h4>\n<p>The bitwise logical operators are often used to create, manipulate, and read sequences of <em>flags</em>, which are like binary variables. Variables could be used instead of these sequences, but binary flags take much less memory (by a factor of 32).</p>\n<p>Suppose there are 4 flags:</p>\n<ul> <li>flag A: we have an ant problem</li> <li>flag B: we own a bat</li> <li>flag C: we own a cat</li> <li>flag D: we own a duck</li>\n</ul>\n<p>These flags are represented by a sequence of bits: DCBA. When a flag is <em>set</em>, it has a value of 1. When a flag is <em>cleared</em>, it has a value of 0. Suppose a variable <code>flags</code> has the binary value 0101:</p>\n<pre class = \"eval\">\nvar flags = 0x5;   // binary 0101\n</pre>\n<p>This value indicates:</p>\n<ul> <li>flag A is true (we have an ant problem);</li> <li>flag B is false (we don't own a bat);</li> <li>flag C is true (we own a cat);</li> <li>flag D is false (we don't own a duck);</li>\n</ul>\n<p>Since bitwise operators are 32-bit, 0101 is actually 00000000000000000000000000000101, but the preceding zeroes can be neglected since they contain no meaningful information.</p>\n<p>A <em>bitmask</em> is a sequence of bits that can manipulate and/or read flags. Typically, a &quot;primitive&quot; bitmask for each flag is defined:</p>\n<pre class = \"eval\">\nvar FLAG_A = 0x1; // 0001\nvar FLAG_B = 0x2; // 0010\nvar FLAG_C = 0x4; // 0100\nvar FLAG_D = 0x8; // 1000\n</pre>\n<p>New bitmasks can be created by using the bitwise logical operators on these primitive bitmasks. For example, the bitmask 1011 can be created by ORing FLAG_A, FLAG_B, and FLAG_D:</p>\n<pre class = \"eval\">\nvar mask = FLAG_A | FLAG_B | FLAG_D; // 0001 | 0010 | 1000 =&gt; 1011\n</pre>\n<p>Individual flag values can be extracted by ANDing them with a bitmask, where each bit with the value of one will &quot;extract&quot; the corresponding flag. The bitmask <em>masks</em> out the non-relevant flags by ANDing with zeros (hence the term &quot;bitmask&quot;). For example, the bitmask 0100 can be used to see if flag C is set:</p>\n<pre class = \"eval\">\n// if we own a cat\nif (flags &amp; FLAG_C) { // 0101 &amp; 0100 =&gt; 0100 =&gt; true\n   // do stuff\n}\n</pre>\n<p>A bitmask with multiple set flags acts like an &quot;either/or&quot;. For example, the following two are equivalent:</p>\n<pre class = \"eval\">\n// if we own a bat or we own a cat\nif ((flags &amp; FLAG_B) || (flags &amp; FLAG_C)) { // (0101 &amp; 0010) || (0101 &amp; 0100) =&gt; 0000 || 0100 =&gt; true\n   // do stuff\n}\n</pre>\n<pre class = \"eval\">\n// if we own a bat or cat\nvar mask = FLAG_B | FLAG_C; // 0010 | 0100 =&gt; 0110\nif (flags &amp; mask) { // 0101 &amp; 0110 =&gt; 0100 =&gt; true\n   // do stuff\n}\n</pre>\n<p>Flags can be set by ORing them with a bitmask, where each bit with the value one will set the corresponding flag, if that flag isn't already set. For example, the bitmask 1010 can be used to set flags C and D:</p>\n<pre class = \"eval\">\n// yes, we own a cat and a duck\nvar mask = FLAG_C | FLAG_D; // 0100 | 1000 =&gt; 1100\nflags |= mask;   // 0101 | 1100 =&gt; 1101\n</pre>\n<p>Flags can be cleared by ANDing them with a bitmask, where each bit with the value zero will clear the corresponding flag, if it isn't already cleared. This bitmask can be created by NOTing primitive bitmasks. For example, the bitmask 1010 can be used to clear flags A and C:</p>\n<pre class = \"eval\">\n// no, we don't neither have an ant problem nor own a cat\nvar mask = ~(FLAG_A | FLAG_C); // ~0101 =&gt; 1010\nflags &amp;= mask;   // 1101 &amp; 1010 =&gt; 1000\n</pre>\n<p>The mask could also have been created with <code>~FLAG_A &amp; ~FLAG_C</code> (De Morgan's law):</p>\n<pre class = \"eval\">\n// no, we don't have an ant problem, and we don't own a cat\nvar mask = ~FLAG_A &amp; ~FLAG_C;\nflags &amp;= mask;   // 1101 &amp; 1010 =&gt; 1000\n</pre>\n<p>Flags can be toggled by XORing them with a bitmask, where each bit with the value one will toggle the corresponding flag. For example, the bitmask 0110 can be used to toggle flags B and C:</p>\n<pre class = \"eval\">\n// if we didn't have a bat, we have one now, and if we did have one, bye-bye bat\n// same thing for cats\nvar mask = FLAG_B | FLAG_C;\nflags = flags ^ mask;   // 1100 ^ 0110 =&gt; 1010\n</pre>\n<p>Finally, the flags can all be flipped with the NOT operator:</p>\n<pre class = \"eval\">\n// entering parallel universe...\nflags = ~flags;    // ~1010 =&gt; 0101\n</pre>\n<p></p></div></div>",
			"<div id = \"section_13\"><span id = \"Example:_Flags_and_bitmasks\"></span><h4 class = \"editable\">Example: Flags and bitmasks</h4>\n<p>The bitwise logical operators are often used to create, manipulate, and read sequences of <em>flags</em>, which are like binary variables. Variables could be used instead of these sequences, but binary flags take much less memory (by a factor of 32).</p>\n<p>Suppose there are 4 flags:</p>\n<ul> <li>flag A: we have an ant problem</li> <li>flag B: we own a bat</li> <li>flag C: we own a cat</li> <li>flag D: we own a duck</li>\n</ul>\n<p>These flags are represented by a sequence of bits: DCBA. When a flag is <em>set</em>, it has a value of 1. When a flag is <em>cleared</em>, it has a value of 0. Suppose a variable <code>flags</code> has the binary value 0101:</p>\n<pre class = \"eval\">\nvar flags = 0x5;   // binary 0101\n</pre>\n<p>This value indicates:</p>\n<ul> <li>flag A is true (we have an ant problem);</li> <li>flag B is false (we don't own a bat);</li> <li>flag C is true (we own a cat);</li> <li>flag D is false (we don't own a duck);</li>\n</ul>\n<p>Since bitwise operators are 32-bit, 0101 is actually 00000000000000000000000000000101, but the preceding zeroes can be neglected since they contain no meaningful information.</p>\n<p>A <em>bitmask</em> is a sequence of bits that can manipulate and/or read flags. Typically, a &quot;primitive&quot; bitmask for each flag is defined:</p>\n<pre class = \"eval\">\nvar FLAG_A = 0x1; // 0001\nvar FLAG_B = 0x2; // 0010\nvar FLAG_C = 0x4; // 0100\nvar FLAG_D = 0x8; // 1000\n</pre>\n<p>New bitmasks can be created by using the bitwise logical operators on these primitive bitmasks. For example, the bitmask 1011 can be created by ORing FLAG_A, FLAG_B, and FLAG_D:</p>\n<pre class = \"eval\">\nvar mask = FLAG_A | FLAG_B | FLAG_D; // 0001 | 0010 | 1000 =&gt; 1011\n</pre>\n<p>Individual flag values can be extracted by ANDing them with a bitmask, where each bit with the value of one will &quot;extract&quot; the corresponding flag. The bitmask <em>masks</em> out the non-relevant flags by ANDing with zeros (hence the term &quot;bitmask&quot;). For example, the bitmask 0100 can be used to see if flag C is set:</p>\n<pre class = \"eval\">\n// if we own a cat\nif (flags &amp; FLAG_C) { // 0101 &amp; 0100 =&gt; 0100 =&gt; true\n   // do stuff\n}\n</pre>\n<p>A bitmask with multiple set flags acts like an &quot;either/or&quot;. For example, the following two are equivalent:</p>\n<pre class = \"eval\">\n// if we own a bat or we own a cat\nif ((flags &amp; FLAG_B) || (flags &amp; FLAG_C)) { // (0101 &amp; 0010) || (0101 &amp; 0100) =&gt; 0000 || 0100 =&gt; true\n   // do stuff\n}\n</pre>\n<pre class = \"eval\">\n// if we own a bat or cat\nvar mask = FLAG_B | FLAG_C; // 0010 | 0100 =&gt; 0110\nif (flags &amp; mask) { // 0101 &amp; 0110 =&gt; 0100 =&gt; true\n   // do stuff\n}\n</pre>\n<p>Flags can be set by ORing them with a bitmask, where each bit with the value one will set the corresponding flag, if that flag isn't already set. For example, the bitmask 1010 can be used to set flags C and D:</p>\n<pre class = \"eval\">\n// yes, we own a cat and a duck\nvar mask = FLAG_C | FLAG_D; // 0100 | 1000 =&gt; 1100\nflags |= mask;   // 0101 | 1100 =&gt; 1101\n</pre>\n<p>Flags can be cleared by ANDing them with a bitmask, where each bit with the value zero will clear the corresponding flag, if it isn't already cleared. This bitmask can be created by NOTing primitive bitmasks. For example, the bitmask 1010 can be used to clear flags A and C:</p>\n<pre class = \"eval\">\n// no, we don't neither have an ant problem nor own a cat\nvar mask = ~(FLAG_A | FLAG_C); // ~0101 =&gt; 1010\nflags &amp;= mask;   // 1101 &amp; 1010 =&gt; 1000\n</pre>\n<p>The mask could also have been created with <code>~FLAG_A &amp; ~FLAG_C</code> (De Morgan's law):</p>\n<pre class = \"eval\">\n// no, we don't have an ant problem, and we don't own a cat\nvar mask = ~FLAG_A &amp; ~FLAG_C;\nflags &amp;= mask;   // 1101 &amp; 1010 =&gt; 1000\n</pre>\n<p>Flags can be toggled by XORing them with a bitmask, where each bit with the value one will toggle the corresponding flag. For example, the bitmask 0110 can be used to toggle flags B and C:</p>\n<pre class = \"eval\">\n// if we didn't have a bat, we have one now, and if we did have one, bye-bye bat\n// same thing for cats\nvar mask = FLAG_B | FLAG_C;\nflags = flags ^ mask;   // 1100 ^ 0110 =&gt; 1010\n</pre>\n<p>Finally, the flags can all be flipped with the NOT operator:</p>\n<pre class = \"eval\">\n// entering parallel universe...\nflags = ~flags;    // ~1010 =&gt; 0101\n</pre>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Signed 32-bit integers",
			"Bitwise logical operators",
			"&amp; (Bitwise AND)",
			"| (Bitwise OR)",
			"^ (Bitwise XOR)",
			"~ (Bitwise NOT)",
			"Bitwise shift operators",
			"&lt;&lt; (Left shift)",
			"&gt;&gt; (Sign-propagating right shift)",
			"&gt;&gt;&gt; (Zero-fill right shift)",
			"Examples",
			"Example: Flags and bitmasks"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comparison_Operators",
		"title": "Comparison Operators",
		"_id": "4eea841da4c86c4dba00003d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The operands can be numerical or string values. Strings are compared based on standard lexicographical ordering, using Unicode values.</p>\n<p>JavaScript has both strict and type-converting equality comparison. For strict equality the objects being compared must have the same type and:</p>\n<ul> <li>Two strings are strictly equal when they have the same sequence of characters, same length, and same characters in corresponding positions.</li> <li>Two numbers are strictly equal when they are numerically equal (have the same number value). NaN is not equal to anything, including NaN. Positive and negative zeros are equal to one another.</li> <li>Two Boolean operands are strictly equal if both are <code>true</code> or both are <code>false</code>.</li> <li>Two objects are strictly equal if they refer to the same Object.</li> <li>Null and Undefined types are <code>==</code> (but not <code>===</code>).</li>\n</ul>\n<p>The following table describes the comparison operators:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <th>Operator</th> <th>Description</th> <th>Examples returning true<sup>1</sup></th> </tr> <tr> <td>Equal (<code>==</code>)</td> <td>If the two operands are <strong>not of the same type</strong>, JavaScript converts the operands then applies strict comparison. If either operand is <strong>a number or a boolean</strong>, the operands are converted to numbers if possible; else if either operand is<strong> a string</strong>, the other operand is converted to a string if possible. If <strong>both operands are objects</strong>, then JavaScript compares internal references which are equal when operands refer to the same object in memory.</td> <td> <p><code>3 == var1<br/> &quot;3&quot; == var1<br/> 3 == '3'<br/> </code></p> </td> </tr> <tr> <td>Not equal (<code>!=</code>)</td> <td>Returns true if the operands are not equal. If the two operands are <strong>not of the same type</strong>, JavaScript attempts to convert the operands to an appropriate type for the comparison.&nbsp;If <strong>both operands are&nbsp;objects</strong>, then JavaScript compares internal references which are not equal when operands refer to different objects in memory.</td> <td> <p><code>var1&nbsp;!= 4<br/> var1&nbsp;!= &quot;5&quot;</code></p> </td> </tr> <tr> <td>Strict equal (<code>===</code>)</td> <td>Returns true if the operands are strictly equal (see above) with no type conversion.</td> <td> <p><code>3 === var1</code></p> </td> </tr> <tr> <td>Strict not equal (<code>!==</code>)</td> <td>Returns true if the operands are not equal and/or not of the same type.</td> <td> <p><code>var2&nbsp;!== 3<br/> 3&nbsp;!== '3'</code></p> </td> </tr> <tr> <td>Greater than (<code>&gt;</code>)</td> <td>Returns true if the left operand is greater than the right operand.</td> <td> <p><code>var2 &gt; var1</code></p> </td> </tr> <tr> <td>Greater than or equal (<code>&gt;=</code>)</td> <td>Returns true if the left operand is greater than or equal to the right operand.</td> <td> <p><code>var2 &gt;= var1<br/> var1 &gt;= 3</code></p> </td> </tr> <tr> <td>Less than (<code>&lt;</code>)</td> <td>Returns true if the left operand is less than the right operand.</td> <td> <p><code>var1 &lt; var2</code></p> </td> </tr> <tr> <td>Less than or equal to (<code>&lt;=</code>)</td> <td>Returns true if the left operand is less than or equal to the right operand.</td> <td> <p><code>var1 &lt;= var2<br/> var2 &lt;= 5</code></p> </td> </tr> </tbody>\n</table>\n<p><small><sup>1</sup> These examples assume that <code>var1</code> has been assigned the value 3 and <code>var2</code> has been assigned the value 4.</small></p>\n</div>",
			"<div id = \"section_2\"><span id = \"Using_the_Equality_Operators\"></span><h2 class = \"editable\">Using the Equality Operators</h2>\n<p>The standard equality operators (<code>==</code> and <code>!=</code>) compare two operands without regard to their type. The strict equality operators (<code>===</code> and <code>!==</code>) perform equality comparisons on operands of the same type. Use strict equality operators if the operands must be of a specific type as well as value or if the exact type of the operands is important. Otherwise, use the standard equality operators, which allow you to compare the identity of two operands even if they are not of the same type.</p>\n<p>When type conversion is needed, JavaScript converts String, Number, Boolean, or Object operands as follows.</p>\n<ul> <li>When comparing a number and a string, the string is converted to a number value. JavaScript attempts to convert the string numeric literal to a <code>Number</code> type value. First, a mathematical value is derived from the string numeric literal. Next, this value is rounded to nearest <code>Number</code> type value.</li> <li>If one of the operands is <code>Boolean</code>, the Boolean operand is converted to 1 if it is <code>true</code> and +0 if it is <code>false</code>.</li> <li>If an object is compared with a number or string, JavaScript attempts to return the default value for the object. Operators attempt to convert the object to a primitive value, a <code>String</code> or <code>Number</code> value, using the <code>valueOf</code> and <code>toString</code> methods of the objects. If this attempt to convert the object fails, a runtime error is generated.</li> <li>Note that an object is converted into a primitive if, and only if, its comparand is a primitive. If both operands are objects, they're compared as objects, and the equality test is true only if both refer the same object.</li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Using the Equality Operators"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/Logical_Operators",
		"title": "Logical Operators",
		"_id": "4eea8422a4c86c4dba00003e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Logical operators are typically used with Boolean (logical) values; when they are, they return a Boolean value. However, the <code>&amp;&amp;</code> and <code>||</code> operators actually return the value of one of the specified operands, so if these operators are used with non-Boolean values, they may return a non-Boolean value.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Operators</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n<p>The logical operators are described in the following table:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <th>Operator</th> <th>Usage</th> <th>Description</th> </tr> <tr> <td>Logical AND (<code>&amp;&amp;</code>)</td> <td><code><em>expr1</em> &amp;&amp; <em>expr2</em></code></td> <td>Returns <code>expr1</code> if it can be converted to false; otherwise, returns <code>expr2</code>. Thus, when used with Boolean values, <code>&amp;&amp;</code> returns true if both operands are true; otherwise, returns false.</td> </tr> <tr> <td>Logical OR (<code>||</code>)</td> <td><code><em>expr1</em> || <em>expr2</em></code></td> <td>Returns <code>expr1</code> if it can be converted to true; otherwise, returns <code>expr2</code>. Thus, when used with Boolean values, <code>||</code> returns true if either operand is true; if both are false, returns false.</td> </tr> <tr> <td>Logical NOT (<code>!</code>)</td> <td><code>!<em>expr</em></code></td> <td>Returns false if its single operand can be converted to true; otherwise, returns true.</td> </tr> </tbody>\n</table>\n<p>Examples of expressions that can be converted to false are those that evaluate to null, 0, the empty string (&quot;&quot;), or undefined.</p>\n<p>Even though the <code>&amp;&amp;</code> and <code>||</code> operators can be used with operands that are not Boolean values, they can still be considered Boolean operators since their return values can always be converted to Boolean values.</p>\n<div id = \"section_2\"><span id = \"Short-Circuit_Evaluation\"></span><h4 class = \"editable\">Short-Circuit Evaluation</h4>\n<p>As logical expressions are evaluated left to right, they are tested for possible &quot;short-circuit&quot; evaluation using the following rules:</p>\n<ul> <li><code>false &amp;&amp; <em>anything</em></code> is short-circuit evaluated to false.</li> <li><code>true || <em>anything</em></code> is short-circuit evaluated to true.</li>\n</ul>\n<p>The rules of logic guarantee that these evaluations are always correct. Note that the anything part of the above expressions is not evaluated, so any side effects of doing so do not take effect.</p>\n<p>For example, the following two functions are equivalent.</p>\n<pre>function shortCircuitEvaluation() {\n&nbsp;&nbsp;doSomething() || doSomethingElse()\n}\n\nfunction equivalentEvaluation() {\n&nbsp; var flag = doSomething();\n&nbsp; if (!flag) {\n&nbsp; &nbsp; doSomethingElse();\n&nbsp; }\n}\n</pre>\n</div></div>",
			"<div id = \"section_2\"><span id = \"Short-Circuit_Evaluation\"></span><h4 class = \"editable\">Short-Circuit Evaluation</h4>\n<p>As logical expressions are evaluated left to right, they are tested for possible &quot;short-circuit&quot; evaluation using the following rules:</p>\n<ul> <li><code>false &amp;&amp; <em>anything</em></code> is short-circuit evaluated to false.</li> <li><code>true || <em>anything</em></code> is short-circuit evaluated to true.</li>\n</ul>\n<p>The rules of logic guarantee that these evaluations are always correct. Note that the anything part of the above expressions is not evaluated, so any side effects of doing so do not take effect.</p>\n<p>For example, the following two functions are equivalent.</p>\n<pre>function shortCircuitEvaluation() {\n&nbsp;&nbsp;doSomething() || doSomethingElse()\n}\n\nfunction equivalentEvaluation() {\n&nbsp; var flag = doSomething();\n&nbsp; if (!flag) {\n&nbsp; &nbsp; doSomethingElse();\n&nbsp; }\n}\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Backward_Compatibility\"></span><h3 class = \"editable\">Backward Compatibility</h3>\n<div id = \"section_4\"><span id = \"JavaScript_1.0_and_1.1\"></span><h4 class = \"editable\">JavaScript 1.0 and 1.1</h4>\n<p>The <code>&amp;&amp;</code> and <code>||</code> operators behave as follows:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <th>Operator</th> <th>Usage</th> <th>Behavior</th> </tr> <tr> <td><code>&amp;&amp;</code></td> <td><code><em>expr1</em> &amp;&amp; <em>expr2</em></code></td> <td>If the first operand (<code>expr1</code>) can be converted to false, the <code>&amp;&amp;</code> operator returns false rather than the value of <code>expr1</code>.</td> </tr> <tr> <td><code>||</code></td> <td><code><em>expr1</em> || <em>expr2</em></code></td> <td>If the first operand (<code>expr1</code>) can be converted to true, the <code>||</code> operator returns true rather than the value of <code>expr1</code>.</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_4\"><span id = \"JavaScript_1.0_and_1.1\"></span><h4 class = \"editable\">JavaScript 1.0 and 1.1</h4>\n<p>The <code>&amp;&amp;</code> and <code>||</code> operators behave as follows:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <th>Operator</th> <th>Usage</th> <th>Behavior</th> </tr> <tr> <td><code>&amp;&amp;</code></td> <td><code><em>expr1</em> &amp;&amp; <em>expr2</em></code></td> <td>If the first operand (<code>expr1</code>) can be converted to false, the <code>&amp;&amp;</code> operator returns false rather than the value of <code>expr1</code>.</td> </tr> <tr> <td><code>||</code></td> <td><code><em>expr1</em> || <em>expr2</em></code></td> <td>If the first operand (<code>expr1</code>) can be converted to true, the <code>||</code> operator returns true rather than the value of <code>expr1</code>.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Logical_AND_.28&amp;&amp;.29\"></span><span id = \"Logical_AND_(.26.26)\"></span><h4 class = \"editable\">Logical AND (<code>&amp;&amp;</code>)</h4>\n<p>The following code shows examples of the <code>&amp;&amp;</code> (logical AND) operator.</p>\n<pre>\na1=true &amp;&amp; true       // t &amp;&amp; t returns true\na2=true &amp;&amp; false      // t &amp;&amp; f returns false\na3=false &amp;&amp; true      // f &amp;&amp; t returns false\na4=false &amp;&amp; (3 == 4)  // f &amp;&amp; f returns false\na5=&quot;Cat&quot; &amp;&amp; &quot;Dog&quot;     // t &amp;&amp; t returns Dog\na6=false &amp;&amp; &quot;Cat&quot;     // f &amp;&amp; t returns false\na7=&quot;Cat&quot; &amp;&amp; false     // t &amp;&amp; f returns false\n</pre>\n</div><div id = \"section_7\"><span id = \"Logical_OR_.28||.29\"></span><span id = \"Logical_OR_(.7C.7C)\"></span><h4 class = \"editable\">Logical OR (<code>||</code>)</h4>\n<p>The following code shows examples of the <code>||</code> (logical OR) operator.</p>\n<pre>\no1=true || true       // t || t returns true\no2=false || true      // f || t returns true\no3=true || false      // t || f returns true\no4=false || (3 == 4)  // f || f returns false\no5=&quot;Cat&quot; || &quot;Dog&quot;     // t || t returns Cat\no6=false || &quot;Cat&quot;     // f || t returns Cat\no7=&quot;Cat&quot; || false     // t || f returns Cat\n</pre>\n</div><div id = \"section_8\"><span id = \"Logical_NOT_.28.21.29\"></span><span id = \"Logical_NOT_(!)\"></span><h4 class = \"editable\">Logical NOT (<code>!</code>)</h4>\n<p>The following code shows examples of the <code>!</code> (logical NOT) operator.</p>\n<pre>\nn1=!true              //&nbsp;!t returns false\nn2=!false             //&nbsp;!f returns true\nn3=!&quot;Cat&quot;             //&nbsp;!t returns false\n</pre>\n<p>&nbsp;</p>\n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Logical_AND_.28&amp;&amp;.29\"></span><span id = \"Logical_AND_(.26.26)\"></span><h4 class = \"editable\">Logical AND (<code>&amp;&amp;</code>)</h4>\n<p>The following code shows examples of the <code>&amp;&amp;</code> (logical AND) operator.</p>\n<pre>\na1=true &amp;&amp; true       // t &amp;&amp; t returns true\na2=true &amp;&amp; false      // t &amp;&amp; f returns false\na3=false &amp;&amp; true      // f &amp;&amp; t returns false\na4=false &amp;&amp; (3 == 4)  // f &amp;&amp; f returns false\na5=&quot;Cat&quot; &amp;&amp; &quot;Dog&quot;     // t &amp;&amp; t returns Dog\na6=false &amp;&amp; &quot;Cat&quot;     // f &amp;&amp; t returns false\na7=&quot;Cat&quot; &amp;&amp; false     // t &amp;&amp; f returns false\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Logical_OR_.28||.29\"></span><span id = \"Logical_OR_(.7C.7C)\"></span><h4 class = \"editable\">Logical OR (<code>||</code>)</h4>\n<p>The following code shows examples of the <code>||</code> (logical OR) operator.</p>\n<pre>\no1=true || true       // t || t returns true\no2=false || true      // f || t returns true\no3=true || false      // t || f returns true\no4=false || (3 == 4)  // f || f returns false\no5=&quot;Cat&quot; || &quot;Dog&quot;     // t || t returns Cat\no6=false || &quot;Cat&quot;     // f || t returns Cat\no7=&quot;Cat&quot; || false     // t || f returns Cat\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"Logical_NOT_.28.21.29\"></span><span id = \"Logical_NOT_(!)\"></span><h4 class = \"editable\">Logical NOT (<code>!</code>)</h4>\n<p>The following code shows examples of the <code>!</code> (logical NOT) operator.</p>\n<pre>\nn1=!true              //&nbsp;!t returns false\nn2=!false             //&nbsp;!f returns true\nn3=!&quot;Cat&quot;             //&nbsp;!t returns false\n</pre>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Short-Circuit Evaluation",
			"Backward Compatibility",
			"JavaScript 1.0 and 1.1",
			"Examples",
			"Logical AND (&amp;&amp;)",
			"Logical OR (||)",
			"Logical NOT (!)"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/String_Operators",
		"title": "String Operators",
		"_id": "4eea8422a4c86c4dba00003f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>In addition to the comparison operators, which can be used on string values, the concatenation operator (<code>+</code>) concatenates two string values together, returning another string that is the union of the two operand strings. For example, <code>&quot;my &quot; + &quot;string&quot;</code> returns the string <code>&quot;my string&quot;</code>.\n</p><p>The shorthand assignment operator <code>+=</code> can also be used to concatenate strings. For example, if the variable <code>mystring</code> has the value &quot;<code>alpha</code>&quot;, then the expression <code>mystring += &quot;bet&quot;</code> evaluates to &quot;<code>alphabet</code>&quot; and assigns this value to <code>mystring</code>.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Operator</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.0</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262</td>\n</tr>\n</table>\n<p><br/>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			" Summary "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/Member_Operators",
		"title": "Member Operators",
		"_id": "4eea8424a4c86c4dba000040",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Member operators provide access to an object's properties and methods.</p>\n<p>An object is actually an <em>associative array</em> (a.k.a. <em>map</em>, <em>dictionary</em>, <em>hash</em>, <em>lookup table</em>). The <em>keys</em> in this array are the names of object members. It's typical when speaking of an object's members to make a distinction between properties and methods. However, the property/method distinction is little more than a convention. A method is simply a property with a <a title = \"en/JavaScript/Reference/Functions_and_function_scope\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope\">function</a> as its value.</p>\n<p>There are two ways to access object members: dot notation and bracket notation (a.k.a. subscript operator).</p>\n<p><div class = \"note\"><strong>Note:</strong>&nbsp;The ECMAScript specification labels these operators as &quot;property accessors&quot; rather than &quot;member operators&quot;. Given the property/method distinction above, however, we will use &quot;member&quot; as an inclusive term for properties and methods, for the sake of clarity.</div>\n</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Dot_notation\"></span><h2 class = \"editable\">Dot notation</h2>\n<pre>\nget = object.property;\nobject.property = set;\n</pre>\n<p><code>property</code> must be a valid JavaScript identifier, i.e. a sequence of alphanumerical characters, also including the underscore (&quot;<code>_</code>&quot;) and dollar sign (&quot;<code>$</code>&quot;), that cannot start with a number. For example, <code>object.$1</code> is valid, while <code>object.1</code> is not.</p>\n<p>Example:</p>\n<pre>\ndocument.createElement('pre');\n</pre>\n<p>Here, the method named &quot;createElement&quot; is retrieved from <code>document</code> and is called.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Bracket_notation\"></span><h2 class = \"editable\">Bracket notation</h2>\n<pre>\nget = object[property_name];\nobject[property_name] = set;\n</pre>\n<p><code>property_name</code> is a string. The string does not have to be a valid identifier; it can have any value, e.g. &quot;1foo&quot;, &quot;!bar!&quot;, or even &quot; &quot; (a space).</p>\n<p>Example:</p>\n<pre>\ndocument['createElement']('pre');\n</pre>\n<p>This does the exact same thing as the previous example.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Property_names\"></span><h2 class = \"editable\">Property names</h2>\n<p>Property names must be strings. This means that non-string objects cannot be used as keys in the object. Any non-string object, including a number, is typecasted into a string via the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a> method.</p>\n<p>Examples:</p>\n<pre>\nvar object = {};\nobject['1'] = 'value';\nalert(object[1]);\n</pre>\n<p>This outputs &quot;value&quot;, since 1 is typecasted into '1'.</p>\n<pre>\nvar foo = {unique_prop: 1}, bar = {unique_prop: 2}, object = {};\nobject[foo] = 'value';\nalert(object[bar]);\n</pre>\n<p>This also outputs &quot;value&quot;, since both foo and bar are converted to the same string. In the <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a> JavaScript engine, this string would be &quot;[object Object]&quot;.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Method_binding\"></span><h2 class = \"editable\">Method binding</h2>\n<p>A method is not bound to the object that it is a method of. Specifically, <code>this</code> is not fixed in a method, i.e. <code>this</code> does not necessarily refer to an object containing the method. <code>this</code> is instead &quot;passed&quot; by the function call.</p>\n<p>See <a title = \"en/JavaScript/Reference/Operators/Special/this#Method_binding\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/this#Method_binding\">method binding</a>.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Note_on_eval\"></span><h2 class = \"editable\">Note on <code>eval</code></h2>\n<p>JavaScript novices often make the mistake of using <a title = \"en/Core_JavaScript_1.5_Reference/Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions/eval\" class = \"new \">eval</a> where the bracket notation can be used instead. For example, the following syntax is often seen in many scripts.</p>\n<pre>\nx = eval('document.form_name.' + strFormControl + '.value');\n</pre>\n<p><code>eval</code> is slow and should be avoided whenever possible. It is better to use the bracket notation instead:</p>\n<pre>\nx = document.form_name[strFormControl].value;\n</pre>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Dot notation",
			"Bracket notation",
			"Property names",
			"Method binding",
			"Note on eval"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/Conditional_Operator",
		"title": "Conditional Operator",
		"_id": "4eea8424a4c86c4dba000041",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>The conditional operator is the only JavaScript operator that takes three operands. This operator is frequently used as a shortcut for the <code>if</code> statement.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Operator</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.0</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\n<i>condition</i>&nbsp;? <i>expr1</i>&nbsp;: <i>expr2</i>\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>condition</code>&nbsp;</dt><dd> An expression that evaluates to <code>true</code> or <code>false</code>.\n</dd></dl>\n<dl><dt> <code>expr1</code>, <code>expr2</code>&nbsp;</dt><dd> Expressions with values of any type.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If <code>condition</code> is <code>true</code>, the operator returns the value of <code>expr1</code>; otherwise, it returns the value of <code>expr2</code>. For example, to display a different message based on the value of the <code>isMember</code> variable, you could use this statement:\n</p>\n<pre>\ndocument.write (&quot;The fee is &quot; + (isMember&nbsp;? &quot;$2.00&quot;&nbsp;: &quot;$10.00&quot;))\n</pre>\n\n\n</div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comma_Operator",
		"title": "Comma Operator",
		"_id": "4eea8426a4c86c4dba000042",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The comma operator evaluates both of its operands (from left to right)&nbsp;and returns the value of the second operand.</p>\n<table class = \"standard-table\"> <tbody> <tr> <td colspan = \"2\" class = \"header\">Operator</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code> <em>expr1</em>, <em>expr2</em> </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>expr1</code>, <code>expr2</code>&nbsp;</dt> <dd>Any expressions.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>You can use the comma operator when you want to include multiple expressions in a location that requires a single expression. The most common usage of this operator is to supply multiple parameters in a <code>for</code> loop.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n<p>If <code>a</code> is a 2-dimensional array with 10 elements on a side, the following code uses the comma operator to increment two variables at once. The code prints the values of the diagonal elements in the array:</p>\n\r\n          <pre name = \"code\" class = \"js\">for (var i = 0, j = 9; i &lt;= 9; i++, j--)\n  document.writeln(&quot;a[&quot; + i + &quot;][&quot; + j + &quot;] = &quot; + a[i][j]);</pre>\r\n        \n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Example"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/delete",
		"title": "delete",
		"_id": "4eea8436a4c86c4dba000043",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The <code>delete</code> operator deletes a property of an object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th scope = \"row\" colspan = \"2\" class = \"header\">Operator</th> </tr> </thead> <tbody> <tr> <td>Implemented in:</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition:</td> <td>ECMA-262 ? Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>delete <em>expression</em></code></p>\n<p>&nbsp;</p>\n<p>where <em>expression</em> should evaluate to a property reference, e.g.:</p>\n<pre class = \"eval\">\ndelete <em>variableName</em>\ndelete <em>objectExpression.property</em>\ndelete <em>objectExpression</em>[&quot;<em>property</em>&quot;]\ndelete <em>objectExpression</em>[<em>index</em>]\ndelete <em>property</em> // legal only within a with statement\n</pre>\n<p>If <em>expression</em> does not evaluate to a property, <code>delete</code> does nothing.</p></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>objectName</code></dt> <dd>The name of an object.</dd>\n</dl>\n<dl> <dt><code>property</code></dt> <dd>The property to delete.</dd>\n</dl>\n<dl> <dt><code>index</code></dt> <dd>An integer representing the array index to delete.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><span id = \"Returns\"></span><h2 class = \"editable\">Returns</h2>\n<p>Returns false only if the property exists and cannot be deleted. It returns true in all other cases.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The fifth form is legal only within a <code>with</code> statement, to delete a property from an object.</p>\n<p>You can use the <code>delete</code> operator to delete variables declared implicitly but not those declared with the <code>var</code> or the <code>function</code> statement.</p>\n<p>If the <code>delete</code> operator succeeds, it removes the property from the object entirely, although this might reveal a similarly named property on a prototype of the object.</p>\n<p>Some object properties cannot be deleted. In the ECMA 262 specification these are marked as <em>DontDelete</em>.</p>\n\r\n          <pre name = \"code\" class = \"js\">x = 42;        // assigns as property of global object\nvar y = 43;    // declares as variable\nmyobj = new Number();\nmyobj.h = 4;    // create property h\nmyobj.k = 5;    // create property k\n\ndelete x;       // returns true (can delete if declared implicitly)\ndelete y;       // returns false (cannot delete if declared with var, property is DontDelete)\ndelete Math.PI; // returns false (cannot delete most predefined properties, declared DontDelete)\ndelete myobj.h; // returns true (can delete user-defined properties)\nwith(myobj) { \n  delete k;    // returns true (equivalent to delete myobj.k)\n} \ndelete myobj;   // returns true (can delete if declared implicitly, equivalent to x)</pre>\r\n        \n<p>You cannot delete a property on an object that it inherits from a prototype (although you can delete it directly on the prototype).</p>\n\r\n          <pre name = \"code\" class = \"js\">function Foo(){}\n Foo.prototype.bar = 42;\n var foo = new Foo();\n delete foo.bar;           // but doesn't do anything\n alert(foo.bar);           // alerts 42, property inherited\n delete Foo.prototype.bar; // deletes property on prototype\n alert(foo.bar);           // alerts &quot;undefined&quot;, property no longer inherited</pre>\r\n        \n<div id = \"section_6\"><span id = \"Deleting_array_elements\"></span><h3 class = \"editable\">Deleting array elements</h3>\n<p>When you delete an array element, the array length is not affected. For example, if you delete a[3], a[4] is still a[4] and a[3] is undefined. This holds even if you delete the last element of the array (<code>delete a[a.length-1]</code>).</p>\n<p>When the <code>delete</code> operator removes an array element, that element is no longer in the array. In the following example, trees[3] is removed with <code>delete</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">var trees = [&quot;redwood&quot;,&quot;bay&quot;,&quot;cedar&quot;,&quot;oak&quot;,&quot;maple&quot;];\ndelete trees[3];\nif (3 in trees) {\n   // this does not get executed\n}</pre>\r\n        \n<p>If you want an array element to exist but have an undefined value, use the <code>undefined</code> value instead of the <code>delete</code> operator. In the following example, trees[3] is assigned the value undefined, but the array element still exists:</p>\n\r\n          <pre name = \"code\" class = \"js\">var trees = [&quot;redwood&quot;,&quot;bay&quot;,&quot;cedar&quot;,&quot;oak&quot;,&quot;maple&quot;];\ntrees[3]=undefined;\nif (3 in trees) {\n   // this gets executed\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Deleting_array_elements\"></span><h3 class = \"editable\">Deleting array elements</h3>\n<p>When you delete an array element, the array length is not affected. For example, if you delete a[3], a[4] is still a[4] and a[3] is undefined. This holds even if you delete the last element of the array (<code>delete a[a.length-1]</code>).</p>\n<p>When the <code>delete</code> operator removes an array element, that element is no longer in the array. In the following example, trees[3] is removed with <code>delete</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">var trees = [&quot;redwood&quot;,&quot;bay&quot;,&quot;cedar&quot;,&quot;oak&quot;,&quot;maple&quot;];\ndelete trees[3];\nif (3 in trees) {\n   // this does not get executed\n}</pre>\r\n        \n<p>If you want an array element to exist but have an undefined value, use the <code>undefined</code> value instead of the <code>delete</code> operator. In the following example, trees[3] is assigned the value undefined, but the array element still exists:</p>\n\r\n          <pre name = \"code\" class = \"js\">var trees = [&quot;redwood&quot;,&quot;bay&quot;,&quot;cedar&quot;,&quot;oak&quot;,&quot;maple&quot;];\ntrees[3]=undefined;\nif (3 in trees) {\n   // this gets executed\n}</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Cross-browser_issues\"></span><h2 class = \"editable\">Cross-browser issues</h2>\n<p>Although ECMAScript makes iteration order of objects implementation-dependent, it may appear that all major browsers support an iteration order based on the earliest added property coming first (at least for properties not on the prototype). However, in the case of Internet Explorer, when one uses <code>delete</code> on a property, some confusing behavior results, preventing other browsers from using simple objects like object literals as ordered associative arrays. In Explorer, while the property <em>value</em> is indeed set to undefined, if one later adds back a property with the same name, the property will be iterated in its <em>old</em> position--not at the end of the iteration sequence as one might expect after having deleted the property and then added it back.</p>\n<p>So if you want to simulate an ordered associative array in a cross-browser environment, you are forced to either use two separate arrays (one for the keys and the other for the values), or build an array of single-property objects, etc.</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Returns",
			"Description",
			"Deleting array elements",
			"Cross-browser issues"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/get",
		"title": "get",
		"_id": "4eea8438a4c86c4dba000044",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Binds an object property to a function that will be called when that property is looked up.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>{get <em>prop</em>() { .&nbsp;.&nbsp;. } }</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>prop</code></dt> <dd>the name of the property to bind to the given function</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>Sometimes it is desirable to allow access to a property that returns a dynamically computed value, or you may want reflect the status of an internal variable without requiring the use of explicit method calls. In JavaScript, this can be accomplished with the use of a getter. It is not possible to simultaneously have a getter bound to a property and have that property actually hold a value, although it is possible to use a getter and a setter in conjunction to create a type of pseudo-property.</p>\n\n<div style = \"border: 0px none ; margin: 10px 0px; padding: 0px 10px; background-color: rgb(254, 244, 156); text-align: center;\"><p style = \"margin: 4px 0px; font-weight: bold;\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a> note</p><p style = \"margin: 4px 0px;\"><p style = \"text-align: left;\">Starting in JavaScript 1.8.5, the <code>get</code> operator:</p>\n  <ul style = \"text-align: left;\">\n    <li>can have an identifier which is either a number or a string;</li>\n    <li>must have exactly zero parameters (see \n      <a href = \"http://whereswalden.com/2010/08/22/incompatible-es5-change-literal-getter-and-setter-functions-must-now-have-exactly-zero-or-one-arguments/\" class = \"external\" rel = \"external nofollow\" target = \"_blank\">Incompatible <abbr title = \"ECMAScript 5th edition\">ES5</abbr> change: literal getter and setter functions must now have exactly zero or one arguments</a>\n      for more information);</li>\n    <li>must not appear in an object literal with another <code>get</code>\n      or with a data entry for the same property (<code>{ get x() { }, get x() { } }</code>\n      and <code>{ x: ..., get x() { } }</code> are forbidden).</li>\n  </ul></p></div>\n<p>A getter can be removed using the <code><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/delete_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/delete\">delete</a></code> operator.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Example:_Defining_a_getter_with_the_get_operator\"></span><span id = \"Defining_a_getter_with_the_get_operator\"></span><h3 class = \"editable\">Defining a getter with the <code>get</code> operator</h3>\n<p>This will create a pseudo-property <code>latest</code> of object <code>o</code> that will return the most recent entry into <code>o.log</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {\n  get latest () {\n    if (this.log.length &gt; 0) {\n      return this.log[this.log.length - 1];\n    }\n    else {\n      return null;\n    }\n  },\n  log: []\n}</pre>\r\n        \n<p>Note that attempting to assign a value to <code>latest</code> will not change it.</p>\n</div><div id = \"section_7\"><span id = \"Example:_Deleting_a_getter_using_the_delete_operator\"></span><span id = \"Deleting_a_getter_using_the_delete_operator\"></span><h3 class = \"editable\">Deleting a getter using the <code>delete</code> operator</h3>\n\r\n          <pre name = \"code\" class = \"js\">delete o.latest;</pre>\r\n         </div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Defining_a_getter_with_the_get_operator\"></span><span id = \"Defining_a_getter_with_the_get_operator\"></span><h3 class = \"editable\">Defining a getter with the <code>get</code> operator</h3>\n<p>This will create a pseudo-property <code>latest</code> of object <code>o</code> that will return the most recent entry into <code>o.log</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {\n  get latest () {\n    if (this.log.length &gt; 0) {\n      return this.log[this.log.length - 1];\n    }\n    else {\n      return null;\n    }\n  },\n  log: []\n}</pre>\r\n        \n<p>Note that attempting to assign a value to <code>latest</code> will not change it.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Deleting_a_getter_using_the_delete_operator\"></span><span id = \"Deleting_a_getter_using_the_delete_operator\"></span><h3 class = \"editable\">Deleting a getter using the <code>delete</code> operator</h3>\n\r\n          <pre name = \"code\" class = \"js\">delete o.latest;</pre>\r\n         </div>",
			"<div id = \"section_8\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://robertnyman.com/javascript/javascript-getters-setters.html#regular-getters-and-setters\" title = \"http://robertnyman.com/javascript/javascript-getters-setters.html#regular-getters-and-setters\" target = \"_blank\">Robert Nyman's page</a></p>\n<p>No support (notably in IE6-8) means that the script will trigger a syntax error.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>2.0 (1.8.1)\n</td> <td>1</td> <td>9</td> <td>9.5</td> <td>3</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><code><a title = \"en/JavaScript/Reference/Operators/Special_Operators/delete_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/delete\">delete</a></code></li> <li><code><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/set_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/set\">set</a></code></li> <li><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></code></li> <li><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></code></li> <li><a title = \"en/JavaScript/Guide/Working with Objects#Defining Getters and Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Working_with_Objects#Defining_Getters_and_Setters\">Defining Getters and Setters</a> in JavaScript Guide</li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Defining a getter with the get operator",
			"Deleting a getter using the delete operator",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/in",
		"title": "in",
		"_id": "4eea8439a4c86c4dba000045",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>The <code>in</code> operator returns <code>true</code> if the specified property is in the specified object.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Operator</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.4</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> <em>prop</em> in <em>objectName</em> </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>prop</code></dt> <dd>A string or numeric expression representing a property name or array index.</dd>\n</dl>\n<dl> <dt><code>objectName</code></dt> <dd>Name of an object.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The following examples show some uses of the <code>in</code> operator.</p>\n<pre class = \"eval\">\n// Arrays\nvar trees = new Array(&quot;redwood&quot;, &quot;bay&quot;, &quot;cedar&quot;, &quot;oak&quot;, &quot;maple&quot;);\n0 in trees        // returns true\n3 in trees        // returns true\n6 in trees        // returns false\n&quot;bay&quot; in trees    // returns false (you must specify the index number,\n                  // not the value at that index)\n&quot;length&quot; in trees // returns true (length is an Array property)\n\n// Predefined objects\n&quot;PI&quot; in Math          // returns true\n\n// Custom objects\nvar mycar = {make: &quot;Honda&quot;, model: &quot;Accord&quot;, year: 1998};\n&quot;make&quot; in mycar  // returns true\n&quot;model&quot; in mycar // returns true\n</pre>\n<p>You must specify an object on the right side of the <code>in</code> operator. For example, you can specify a string created with the <code>String</code> constructor, but you cannot specify a string literal.</p>\n<pre class = \"eval\">\nvar color1 = new String(&quot;green&quot;);\n&quot;length&quot; in color1 // returns true\nvar color2 = &quot;coral&quot;;\n&quot;length&quot; in color2 // generates an error (color is not a String object)\n</pre>\n<div id = \"section_5\"><span id = \"Using_in_with_deleted_or_undefined_properties\"></span><h4 class = \"editable\">Using <code>in</code> with deleted or undefined properties</h4>\n<p>If you delete a property with the <code><a title = \"en/JavaScript/Reference/Operators/Special/delete\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/delete\">delete</a></code> operator, the <code>in</code> operator returns <code>false</code> for that property.</p>\n<pre class = \"eval\">\nvar mycar = {make: &quot;Honda&quot;, model: &quot;Accord&quot;, year: 1998};\ndelete mycar.make;\n&quot;make&quot; in mycar;  // returns false\n\nvar trees = new Array(&quot;redwood&quot;, &quot;bay&quot;, &quot;cedar&quot;, &quot;oak&quot;, &quot;maple&quot;);\ndelete trees[3];\n3 in trees; // returns false\n</pre>\n<p>If you set a property to undefined but do not delete it, the <code>in</code> operator returns true for that property.</p>\n<pre class = \"eval\">\nvar mycar = {make: &quot;Honda&quot;, model: &quot;Accord&quot;, year: 1998};\nmycar.make = undefined;\n&quot;make&quot; in mycar;  // returns true\n</pre>\n<pre class = \"eval\">\nvar trees = new Array(&quot;redwood&quot;, &quot;bay&quot;, &quot;cedar&quot;, &quot;oak&quot;, &quot;maple&quot;);\ntrees[3] = undefined;\n3 in trees; // returns true\n</pre>\n</div><div id = \"section_6\"><span id = \"Inherited_properties\"></span><h4 class = \"editable\">Inherited properties</h4>\n<p>The <code>in</code> operator returns <code>true</code> for properties in the prototype chain.</p>\n<pre class = \"eval\">\n&quot;toString&quot; in {}; // returns true\n</pre></div></div>",
			"<div id = \"section_5\"><span id = \"Using_in_with_deleted_or_undefined_properties\"></span><h4 class = \"editable\">Using <code>in</code> with deleted or undefined properties</h4>\n<p>If you delete a property with the <code><a title = \"en/JavaScript/Reference/Operators/Special/delete\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/delete\">delete</a></code> operator, the <code>in</code> operator returns <code>false</code> for that property.</p>\n<pre class = \"eval\">\nvar mycar = {make: &quot;Honda&quot;, model: &quot;Accord&quot;, year: 1998};\ndelete mycar.make;\n&quot;make&quot; in mycar;  // returns false\n\nvar trees = new Array(&quot;redwood&quot;, &quot;bay&quot;, &quot;cedar&quot;, &quot;oak&quot;, &quot;maple&quot;);\ndelete trees[3];\n3 in trees; // returns false\n</pre>\n<p>If you set a property to undefined but do not delete it, the <code>in</code> operator returns true for that property.</p>\n<pre class = \"eval\">\nvar mycar = {make: &quot;Honda&quot;, model: &quot;Accord&quot;, year: 1998};\nmycar.make = undefined;\n&quot;make&quot; in mycar;  // returns true\n</pre>\n<pre class = \"eval\">\nvar trees = new Array(&quot;redwood&quot;, &quot;bay&quot;, &quot;cedar&quot;, &quot;oak&quot;, &quot;maple&quot;);\ntrees[3] = undefined;\n3 in trees; // returns true\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"Inherited_properties\"></span><h4 class = \"editable\">Inherited properties</h4>\n<p>The <code>in</code> operator returns <code>true</code> for properties in the prototype chain.</p>\n<pre class = \"eval\">\n&quot;toString&quot; in {}; // returns true\n</pre></div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Operators/Special/delete\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/delete\">delete</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty\">Object.prototype.hasOwnProperty</a></li>\n</ul> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Using in with deleted or undefined properties",
			"Inherited properties",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/instanceof",
		"title": "instanceof",
		"_id": "4eea843aa4c86c4dba000046",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The <code>instanceof</code> operator tests whether an object has in its prototype chain the <code>prototype</code> property of a constructor.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\" scope = \"row\">Operator</th> </tr> </thead> <tbody> <tr> <td>Implemented in:</td> <td>JavaScript 1.4</td> </tr> <tr> <td>ECMAScript Edition:</td> <td>ECMA-262 ? Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<code><em>object</em> instanceof <em>constructor</em></code></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>object</code></dt> <dd>The object to test.</dd>\n</dl>\n<dl> <dt><code>constructor</code></dt> <dd>Function to test against</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The <code>instanceof</code> operator tests presence of <code>constructor.prototype</code> in <code>object</code> prototype chain.</p>\n\r\n          <pre name = \"code\" class = \"js\">function C(){} // defining a constructor\nfunction D(){} // defining another constructor\n\nvar o = new C();\no instanceof C; // true, because: Object.getPrototypeOf(o) === C.prototype\no instanceof D; // false, because D.prototype is nowhere in o's prototype chain\no instanceof Object; // true, because:\nC.prototype instanceof Object // true\n\nC.prototype = {};\nvar o2 = new C();\no2 instanceof C; // true\no instanceof C; // false, because C.prototype is nowhere in o's prototype chain anymore\n\nD.prototype = Object.getPrototypeOf(o);\no instanceof D; // true</pre>\r\n        \n<p>Note that if the value of an <code>instanceof</code> test can change based on changes to the <code>prototype</code> property of constructors, it cannot be changed by changing an object prototype, because changing an object prototype is not possible in standard ECMAScript. It is however possible using the non-standard <code>__proto__</code> pseudo-property.</p> <div id = \"section_5\"><span id = \"instanceof_and_multiple_context_(e.g._frames_or_windows)\"></span><h3 class = \"editable\"><code>instanceof</code> and multiple context (e.g. frames or windows)</h3>\n<p>Different scope have different execution environments. This means that they have different built-ins (different global object, different constructors, etc.). This may result in unexpected results. For instance, if <code>Array2</code> is the <code>Array</code> constructor of another context, <code>[] instanceof Array2</code> will return <code>false</code>, because <code>Array.prototype !== Array2.prototype</code> and arrays inherit from the former.</p></div><div id = \"section_6\"><span id = \"Mozilla_developers\"></span><h3 class = \"editable\">Mozilla developers</h3>\n<p>In code using XPCOM <code>instanceof</code> has special effect: <code>obj instanceof </code><em><code>xpcomInterface</code></em> (e.g. <code>Components.interfaces.nsIFile</code>) calls <code>obj.QueryInterface(<em>xpcomInterface</em>)</code> and returns <code>true</code> if QueryInterface succeeded. A side effect of such call is that you can use <em><code>xpcomInterface</code></em>'s properties on <code>obj</code> after a successful <code>instanceof</code> test.</p>\n<p>Unlike standard JavaScript globals, the test <code>obj instanceof xpcomInterface </code>works as expected even if <code>obj</code> is from a different scope.</p>\n</div></div>",
			"<div id = \"section_5\"><span id = \"instanceof_and_multiple_context_(e.g._frames_or_windows)\"></span><h3 class = \"editable\"><code>instanceof</code> and multiple context (e.g. frames or windows)</h3>\n<p>Different scope have different execution environments. This means that they have different built-ins (different global object, different constructors, etc.). This may result in unexpected results. For instance, if <code>Array2</code> is the <code>Array</code> constructor of another context, <code>[] instanceof Array2</code> will return <code>false</code>, because <code>Array.prototype !== Array2.prototype</code> and arrays inherit from the former.</p></div>",
			"<div id = \"section_6\"><span id = \"Mozilla_developers\"></span><h3 class = \"editable\">Mozilla developers</h3>\n<p>In code using XPCOM <code>instanceof</code> has special effect: <code>obj instanceof </code><em><code>xpcomInterface</code></em> (e.g. <code>Components.interfaces.nsIFile</code>) calls <code>obj.QueryInterface(<em>xpcomInterface</em>)</code> and returns <code>true</code> if QueryInterface succeeded. A side effect of such call is that you can use <em><code>xpcomInterface</code></em>'s properties on <code>obj</code> after a successful <code>instanceof</code> test.</p>\n<p>Unlike standard JavaScript globals, the test <code>obj instanceof xpcomInterface </code>works as expected even if <code>obj</code> is from a different scope.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<p>Also see the examples for <a title = \"en/Core_JavaScript_1.5_Reference/Statements/throw\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/throw\">throw</a>.</p>\n<div id = \"section_8\"><span id = \"Example:_Determining_whether_theDay_is_a_Date_object\"></span><h3 class = \"editable\">Example: Determining whether <code>theDay</code> is a <code>Date</code> object</h3>\n<p>The following code uses <code>instanceof</code> to determine whether <code>theDay</code> is a <code>Date</code> object. Because <code>theDay</code> is a <code>Date</code> object, the statements in the if statement execute.</p>\n<pre class = \"eval\">\nvar theDay = new Date(1995, 11, 17); // Dec. 17, 1995\nif (theDay instanceof Date)\n{\n  print(&quot;theDay is a Date object&quot;);\n  // whatever else...\n} \n</pre>\n</div><div id = \"section_9\"><span id = \"Example:_Demonstrating_that_String_and_Date_are_of_type_Object\"></span><h3 class = \"editable\">Example: Demonstrating that <code>String</code> and <code>Date</code> are of type <code>Object</code></h3>\n<p>The following code uses <code>instanceof</code> to demonstrate that <code>String</code> and <code>Date</code> objects are also of type <code>Object</code> (they are derived from <code>Object</code>).</p>\n\r\n          <pre name = \"code\" class = \"js\">var myString = new String();\nvar myDate = new Date();\n\nmyString instanceof String; // returns true\nmyString instanceof Object; // returns true\nmyString instanceof Date;   // returns false\n\nmyDate instanceof Date;     // returns true\nmyDate instanceof Object;   // returns true\nmyDate instanceof String;   // returns false</pre>\r\n        \n</div><div id = \"section_10\"><span id = \"Example:_Demonstrating_that_mycar_is_of_type_Car_and_type_Object\"></span><h3 class = \"editable\">Example: Demonstrating that <code>mycar</code> is of type <code>Car</code> and type <code>Object</code></h3>\n<p>The following code creates an object type <code>Car</code> and an instance of that object type, <code>mycar</code>. The <code>instanceof</code> operator demonstrates that the <code>mycar</code> object is of type <code>Car</code> and of type <code>Object</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Car(make, model, year)\n{\n  this.make = make;\n  this.model = model;\n  this.year = year;\n}\nvar mycar = new Car(&quot;Honda&quot;, &quot;Accord&quot;, 1998);\nvar a = mycar instanceof Car;    // returns true\nvar b = mycar instanceof Object; // returns true</pre>\r\n        \n<p></p></div></div>",
			"<div id = \"section_8\"><span id = \"Example:_Determining_whether_theDay_is_a_Date_object\"></span><h3 class = \"editable\">Example: Determining whether <code>theDay</code> is a <code>Date</code> object</h3>\n<p>The following code uses <code>instanceof</code> to determine whether <code>theDay</code> is a <code>Date</code> object. Because <code>theDay</code> is a <code>Date</code> object, the statements in the if statement execute.</p>\n<pre class = \"eval\">\nvar theDay = new Date(1995, 11, 17); // Dec. 17, 1995\nif (theDay instanceof Date)\n{\n  print(&quot;theDay is a Date object&quot;);\n  // whatever else...\n} \n</pre>\n</div>",
			"<div id = \"section_9\"><span id = \"Example:_Demonstrating_that_String_and_Date_are_of_type_Object\"></span><h3 class = \"editable\">Example: Demonstrating that <code>String</code> and <code>Date</code> are of type <code>Object</code></h3>\n<p>The following code uses <code>instanceof</code> to demonstrate that <code>String</code> and <code>Date</code> objects are also of type <code>Object</code> (they are derived from <code>Object</code>).</p>\n\r\n          <pre name = \"code\" class = \"js\">var myString = new String();\nvar myDate = new Date();\n\nmyString instanceof String; // returns true\nmyString instanceof Object; // returns true\nmyString instanceof Date;   // returns false\n\nmyDate instanceof Date;     // returns true\nmyDate instanceof Object;   // returns true\nmyDate instanceof String;   // returns false</pre>\r\n        \n</div>",
			"<div id = \"section_10\"><span id = \"Example:_Demonstrating_that_mycar_is_of_type_Car_and_type_Object\"></span><h3 class = \"editable\">Example: Demonstrating that <code>mycar</code> is of type <code>Car</code> and type <code>Object</code></h3>\n<p>The following code creates an object type <code>Car</code> and an instance of that object type, <code>mycar</code>. The <code>instanceof</code> operator demonstrates that the <code>mycar</code> object is of type <code>Car</code> and of type <code>Object</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Car(make, model, year)\n{\n  this.make = make;\n  this.model = model;\n  this.year = year;\n}\nvar mycar = new Car(&quot;Honda&quot;, &quot;Accord&quot;, 1998);\nvar a = mycar instanceof Car;    // returns true\nvar b = mycar instanceof Object; // returns true</pre>\r\n        \n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"instanceof and multiple context (e.g. frames or windows)",
			"Mozilla developers",
			"Examples",
			"Example: Determining whether theDay is a Date object",
			"Example: Demonstrating that String and Date are of type Object",
			"Example: Demonstrating that mycar is of type Car and type Object"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/set",
		"title": "set",
		"_id": "4eea8444a4c86c4dba000047",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Binds an object property to a function to be called when there is an attempt to set that property.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>{set <em>prop</em>(<em>val</em>) { .&nbsp;.&nbsp;. }}</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>prop</code></dt> <dd>the name of the property to bind to the given function</dd>\n</dl>\n<dl> <dt><code>val</code></dt> <dd>an alias for the variable that holds the value attempted to be assigned to <code>prop</code></dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>In JavaScript, a setter can be used to execute a function whenever a specified property is attempted to be changed. Setters are most often used in conjunction with getters to create a type of pseudo-property. It is not possible to simultaneously have a setter on a property that holds an actual value.</p>\n<p>\n<div style = \"border: 0px none ; margin: 10px 0px; padding: 0px 10px; background-color: rgb(254, 244, 156); text-align: center;\"><p style = \"margin: 4px 0px; font-weight: bold;\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a> note</p><p style = \"margin: 4px 0px;\">Starting in JavaScript 1.8.1, setters are no longer called when setting properties in object and array initializers.</p></div></p>\n\n<div style = \"border: 0px none ; margin: 10px 0px; padding: 0px 10px; background-color: rgb(254, 244, 156); text-align: center;\"><p style = \"margin: 4px 0px; font-weight: bold;\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a> note</p><p style = \"margin: 4px 0px;\"><p style = \"text-align: left;\">Starting in JavaScript 1.8.5, <code>set</code> operator:</p>\n  <ul style = \"text-align: left;\">\n    <li>can have an identifier which is either a number or a string;</li>\n    <li>must have exactly one parameter (see \n      <a href = \"http://whereswalden.com/2010/08/22/incompatible-es5-change-literal-getter-and-setter-functions-must-now-have-exactly-zero-or-one-arguments/\" class = \"external\" rel = \"external nofollow\" target = \"_blank\">Incompatible <abbr title = \"ECMAScript 5th edition\">ES5</abbr> change: literal getter and setter functions must now have exactly zero or one arguments</a>\n      for more information);</li>\n    <li>must not appear in an object literal with another <code>set</code>\n      or with a data entry for the same property (<code>{ set x(v) { }, set x(v) { } }</code>\n      and <code>{ x: ..., set x(v) { } }</code> are forbidden).</li>\n  </ul></p></div>\n<p>A setter can be removed using the <a title = \"en/JavaScript/Reference/Operators/Special/delete\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/delete\"><code>delete</code></a> operator.</p></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Example:_Defining_a_setter_with_the_set_operator\"></span><span id = \"Defining_a_setter_with_the_set_operator\"></span><h3 class = \"editable\">Defining a setter with the <code>set</code> operator</h3>\n<p>This will define a pseudo-property <code>current</code> of object <code>o</code> that, when assigned a value, will update <code>log</code> with that value:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {\n  set current (str) {\n    return this.log[this.log.length] = str;\n  },\n  log: []\n}</pre>\r\n        \n<p>Note that <code>current</code> is not defined and any attempts to access it will result in <code>undefined</code></p>\n</div><div id = \"section_7\"><span id = \"Example:_Removing_a_setter_with_the_delete_operator\"></span><span id = \"Removing_a_setter_with_the_delete_operator\"></span><h3 class = \"editable\">Removing a setter with the <code>delete</code> operator</h3>\n\r\n          <pre name = \"code\" class = \"js\">delete o.current;</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Defining_a_setter_with_the_set_operator\"></span><span id = \"Defining_a_setter_with_the_set_operator\"></span><h3 class = \"editable\">Defining a setter with the <code>set</code> operator</h3>\n<p>This will define a pseudo-property <code>current</code> of object <code>o</code> that, when assigned a value, will update <code>log</code> with that value:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {\n  set current (str) {\n    return this.log[this.log.length] = str;\n  },\n  log: []\n}</pre>\r\n        \n<p>Note that <code>current</code> is not defined and any attempts to access it will result in <code>undefined</code></p>\n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Removing_a_setter_with_the_delete_operator\"></span><span id = \"Removing_a_setter_with_the_delete_operator\"></span><h3 class = \"editable\">Removing a setter with the <code>delete</code> operator</h3>\n\r\n          <pre name = \"code\" class = \"js\">delete o.current;</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://robertnyman.com/javascript/javascript-getters-setters.html#regular-getters-and-setters\" title = \"http://robertnyman.com/javascript/javascript-getters-setters.html#regular-getters-and-setters\" target = \"_blank\">Robert Nyman's page</a></p>\n<p>No support (notably in IE6-8) means that the script will trigger a syntax error.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>2.0 (1.8.1)\n</td> <td>1</td> <td>9</td> <td>9.5</td> <td>3</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><code><a title = \"en/JavaScript/Reference/Operators/Special_Operators/delete_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/delete\">delete</a></code></li> <li><code><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/get_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/get\">get</a></code></li> <li><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></code></li> <li><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></code></li> <li><a title = \"en/JavaScript/Guide/Working with Objects#Defining Getters and Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Working_with_Objects#Defining_Getters_and_Setters\">Defining Getters and Setters</a> in JavaScript Guide</li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Defining a setter with the set operator",
			"Removing a setter with the delete operator",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/new",
		"title": "new",
		"_id": "4eea8445a4c86c4dba000048",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>The <code>new</code> operator creates an instance of a user-defined object type or of one of the built-in object types that has a constructor function.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Operator</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>new <em>constructor</em>[([<em>arguments</em>])]</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>constructor</code></dt> <dd>A function that specifies the type of the object instance.</dd>\n</dl>\n<dl> <dt><code>arguments</code></dt> <dd>A list of values that the <code>constructor</code> will be called with.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Creating a user-defined object requires two steps:</p>\n<ol> <li>Define the object type by writing a function.</li> <li>Create an instance of the object with <code>new</code>.</li>\n</ol>\n<p>To define an object type, create a function for the object type that specifies its name and properties. An object can have a property that is itself another object. See the examples below.</p>\n<p>When the code <code>new <em>foo</em>(...)</code> is executed, the following things happen:</p>\n<ol> <li>A new object is created, inheriting from <code><em>foo</em>.prototype</code>.</li> <li>The constructor function <code><em>foo</em></code> is called with the specified arguments and <code><a title = \"this\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/this\">this</a></code> bound to the newly created object. <code>new <em>foo</em></code> is equivalent to <code>new <em>foo</em>()</code>, i.e. if no argument list is specified, <code><em>foo</em></code> is called without arguments.</li> <li>The object returned by the constructor function becomes the result of the whole <code>new</code> expression. If the constructor function doesn't explicitly return an object, the object created in step 1 is used instead. (Normally constructors don't return a value, but they can choose to do so if they want to override the normal object creation process.)</li>\n</ol>\n<p>You can always add a property to a previously defined object. For example, the statement <code>car1.color = &quot;black&quot;</code> adds a property color to <code>car1</code>, and assigns it a value of &quot;<code>black</code>&quot;. However, this does not affect any other objects. To add the new property to all objects of the same type, you must add the property to the definition of the <code>car</code> object type.</p>\n<p>You can add a shared property to a previously defined object type by using the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">Function.prototype</a></code> property. This defines a property that is shared by all objects created with that function, rather than by just one instance of the object type. The following code adds a color property with value <code>null</code> to all objects of type <code>car</code>, and then overwrites that value with the string &quot;<code>black</code>&quot; only in the instance object <code>car1</code>. For more information, see <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">prototype</a>.</p>\n<pre class = \"eval\">\n function Car() {}\n car1 = new Car()\n \n alert(car1.color)           // undefined\n \n Car.prototype.color = null\n alert(car1.color)           // null\n \n car1.color = &quot;black&quot;\n alert(car1.color)           // black\n</pre>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Object_type_and_object_instance\"></span><h4 class = \"editable\">Example: Object type and object instance</h4>\n<p>Suppose you want to create an object type for cars. You want this type of object to be called <code>car</code>, and you want it to have properties for make, model, and year. To do this, you would write the following function:</p>\n<pre class = \"eval\">\nfunction car(make, model, year) {\n   this.make = make;\n   this.model = model;\n   this.year = year;\n}\n</pre>\n<p>Now you can create an object called <code>mycar</code> as follows:</p>\n<pre class = \"eval\">\nvar mycar = new car(&quot;Eagle&quot;, &quot;Talon TSi&quot;, 1993);\n</pre>\n<p>This statement creates <code>mycar</code> and assigns it the specified values for its properties. Then the value of <code>mycar.make</code> is the string &quot;Eagle&quot;, <code>mycar.year</code> is the integer 1993, and so on.</p>\n<p>You can create any number of <code>car</code> objects by calls to <code>new</code>. For example:</p>\n<pre class = \"eval\">\nvar kenscar = new car(&quot;Nissan&quot;, &quot;300ZX&quot;, 1992);\n</pre>\n</div><div id = \"section_7\"><span id = \"Example:_Object_property_that_is_itself_another_object\"></span><h4 class = \"editable\">Example: Object property that is itself another object</h4>\n<p>Suppose you define an object called <code>person</code> as follows:</p>\n<pre class = \"eval\">\nfunction person(name, age, sex) {\n   this.name = name;\n   this.age = age;\n   this.sex = sex;\n}\n</pre>\n<p>And then instantiate two new <code>person</code> objects as follows:</p>\n<pre class = \"eval\">\nvar rand = new person(&quot;Rand McNally&quot;, 33, &quot;M&quot;);\nvar ken = new person(&quot;Ken Jones&quot;, 39, &quot;M&quot;);\n</pre>\n<p>Then you can rewrite the definition of <code>car</code> to include an <code>owner</code> property that takes a person object, as follows:</p>\n<pre class = \"eval\">\nfunction car(make, model, year, owner) {\n   this.make = make;\n   this.model = model;\n   this.year = year;\n   this.owner = owner;\n}\n</pre>\n<p>To instantiate the new objects, you then use the following:</p>\n<pre class = \"eval\">\nvar car1 = new car(&quot;Eagle&quot;, &quot;Talon TSi&quot;, 1993, rand);\nvar car2 = new car(&quot;Nissan&quot;, &quot;300ZX&quot;, 1992, ken);\n</pre>\n<p>Instead of passing a literal string or integer value when creating the new objects, the above statements pass the objects <code>rand</code> and <code>ken</code> as the parameters for the owners. To find out the name of the owner of <code>car2</code>, you can access the following property:</p>\n<pre class = \"eval\">\ncar2.owner\n</pre>\n<p>&nbsp;</p>\n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Object_type_and_object_instance\"></span><h4 class = \"editable\">Example: Object type and object instance</h4>\n<p>Suppose you want to create an object type for cars. You want this type of object to be called <code>car</code>, and you want it to have properties for make, model, and year. To do this, you would write the following function:</p>\n<pre class = \"eval\">\nfunction car(make, model, year) {\n   this.make = make;\n   this.model = model;\n   this.year = year;\n}\n</pre>\n<p>Now you can create an object called <code>mycar</code> as follows:</p>\n<pre class = \"eval\">\nvar mycar = new car(&quot;Eagle&quot;, &quot;Talon TSi&quot;, 1993);\n</pre>\n<p>This statement creates <code>mycar</code> and assigns it the specified values for its properties. Then the value of <code>mycar.make</code> is the string &quot;Eagle&quot;, <code>mycar.year</code> is the integer 1993, and so on.</p>\n<p>You can create any number of <code>car</code> objects by calls to <code>new</code>. For example:</p>\n<pre class = \"eval\">\nvar kenscar = new car(&quot;Nissan&quot;, &quot;300ZX&quot;, 1992);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Object_property_that_is_itself_another_object\"></span><h4 class = \"editable\">Example: Object property that is itself another object</h4>\n<p>Suppose you define an object called <code>person</code> as follows:</p>\n<pre class = \"eval\">\nfunction person(name, age, sex) {\n   this.name = name;\n   this.age = age;\n   this.sex = sex;\n}\n</pre>\n<p>And then instantiate two new <code>person</code> objects as follows:</p>\n<pre class = \"eval\">\nvar rand = new person(&quot;Rand McNally&quot;, 33, &quot;M&quot;);\nvar ken = new person(&quot;Ken Jones&quot;, 39, &quot;M&quot;);\n</pre>\n<p>Then you can rewrite the definition of <code>car</code> to include an <code>owner</code> property that takes a person object, as follows:</p>\n<pre class = \"eval\">\nfunction car(make, model, year, owner) {\n   this.make = make;\n   this.model = model;\n   this.year = year;\n   this.owner = owner;\n}\n</pre>\n<p>To instantiate the new objects, you then use the following:</p>\n<pre class = \"eval\">\nvar car1 = new car(&quot;Eagle&quot;, &quot;Talon TSi&quot;, 1993, rand);\nvar car2 = new car(&quot;Nissan&quot;, &quot;300ZX&quot;, 1992, ken);\n</pre>\n<p>Instead of passing a literal string or integer value when creating the new objects, the above statements pass the objects <code>rand</code> and <code>ken</code> as the parameters for the owners. To find out the name of the owner of <code>car2</code>, you can access the following property:</p>\n<pre class = \"eval\">\ncar2.owner\n</pre>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Object type and object instance",
			"Example: Object property that is itself another object"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/this",
		"title": "this",
		"_id": "4eea8446a4c86c4dba000049",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Introduction\"></span><h2 class = \"editable\">Introduction</h2>\n<p>A function's <code>this</code> keyword behaves a little differently in JavaScript compared to other languages. It also has some differences between <a title = \"en/JavaScript/Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Strict_mode\">strict mode</a> and non-strict mode.</p>\n<p>In general, the object bound to <code>this</code> in the current scope is determined by how the current function was called, it can't be set by assignment during execution, and it can be different each time the function is called. ES5 introduced the <code><a title = \"en/JavaScript/Reference/Global_Objects/Function/bind\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind\">bind</a></code> method to <a title = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/this#Bound_functions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/this#Bound_functions\">fix a function's <code>this</code> regardless of how it's called</a>.</p></div>",
			"<div id = \"section_2\"><span id = \"Global_context\"></span><h2 class = \"editable\">Global context</h2>\n<p>In the global context (outside of any function), <code>this</code> refers to the global object, whether in strict mode or not.</p>\n<pre class = \"eval\">console.log(this.document === document); // true\n\n// In web browsers, the window object is also the global object:\nconsole.log(this === window); // true\n\nthis.a = 37;\nconsole.log(window.a); // 37\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Function_context\"></span><h2 class = \"editable\">Function context</h2>\n<p>When the <code>this</code> keyword occurs inside a function, its value depends on how the function is called.</p>\n<div id = \"section_4\"><span id = \"Simple_call\"></span><h3 class = \"editable\">Simple call</h3>\n\r\n          <pre name = \"code\" class = \"js\">function f1(){\n  return this;\n}\n\nf1() === window; // global object\n\n\nfunction f2(){\n  &quot;use strict&quot;; // see strict mode\n  return this;\n}\n\nf2() === undefined;</pre>\r\n        \n<div class = \"note\"><strong>Note:</strong> In the second example, <code>this</code> should be <a title = \"undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\"><code>undefined</code></a>, because <code>f2</code> was called without providing any base (e.g. <code>window.f2()</code>). This feature wasn't implemented in some browsers when they first started to support <a title = \"Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Strict_mode\">strict mode</a>; because of this, they incorrectly returned the <code>window</code> object.</div>\n</div><div id = \"section_5\"><span id = \"As_an_object_method\"></span><h3 class = \"editable\">As an object method</h3>\n<p>When a function is called as a method of an object, its <code>this</code> is set to the object the method is called on.</p>\n<p>In the following example, when <code>o.f()</code> is invoked, inside the function <code>this</code> is bound to the <code>o</code> object.</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {\n  prop: 37,\n  f: function() {\n    return this.prop;\n  }\n};\n\nconsole.log(o.f()); // logs 37</pre>\r\n        \n<p>Note that this behavior is not at all affected by how or where the function was defined. In the previous example, we defined the function inline as the <code>f</code> member during the definition of <code>o</code>.&nbsp; However, we could have just as easily defined the function first and later attached it to <code>o.f</code>. Doing so results in the same behavior:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {prop: 37};\n\nfunction independent() {\n  return this.prop;\n}\n\no.f = independent;\n\nconsole.log(o.f()); // logs 37</pre>\r\n        \n<p>This demonstrates that it matters only that the function was invoked from the <code>f</code> member of <code>o</code>.</p>\n<p>Similarly, the <code>this</code> binding is only affected by the most immediate member reference. In the following example, when we invoke the function, we call it as a method <code>g</code> of the object <code>o.b</code>. This time during execution, <code>this</code> inside the function will refer to <code>o.b</code>. The fact that the object is itself a member of <code>o</code> has no consequence; the most immediate reference is all that matters.</p>\n\r\n          <pre name = \"code\" class = \"js\">o.b = {g: independent, prop: 42};\nconsole.log(o.b.g()); // logs 42</pre>\r\n        \n<div id = \"section_6\"><span id = \"..._on_the_prototype_chain\"></span><h4 class = \"editable\">... on the prototype chain</h4>\n<p>The same notion holds true for methods defined somewhere on the object's prototype chain. If the method is on an object's prototype chain, <code>this</code> refers to the object the method was called on, as if the method was on the object.</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {f:function(){ return this.a + this.b; }};\nvar p = Object.create(o);\np.a = 1;\np.b = 4;\n\nconsole.log(p.f()); // 5</pre>\r\n        \n<p>In this example, the object assigned to the variable <code>p</code> doesn't have its own <code>f</code> property, it inherits it from its <a title = \"Prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/Prototype\" class = \"new \">prototype</a>. But it doesn't matter that the lookup for <code>f</code> eventually finds a member with that name on <code>o</code>; the lookup began as a reference to <code>p.f</code>, so <code>this</code> inside the function takes the value of the object referred to as <code>p</code>. That is, since <code>f</code> is called as a method of <code>p</code>, its <code>this</code> refers to <code>p</code>. This is an interesting feature of JavaScript's prototype inheritance.</p>\n</div><div id = \"section_7\"><span id = \"..._or_as_a_getter_or_setter\"></span><h4 class = \"editable\">... or as a getter or setter</h4>\n<p>Again, the same notion holds true when a function is invoked from a getter or a setter. A function used as getter or setter has its <code>this</code> bound to the object from which the property is being set or gotten.</p>\n\r\n          <pre name = \"code\" class = \"js\">function modulus(){\n  return Math.sqrt(this.re * this.re + this.im * this.im);\n}\n\nvar o = {\n  re: 1,\n  im: -1,\n  get phase(){\n    return Math.atan2(this.im, this.re);\n  }\n};\n\nObject.defineProperty(o, 'modulus', {get: modulus, enumerable:true, configurable:true});\n\nconsole.log(o.phase, o.modulus); // logs -0.78 1.4142</pre>\r\n        \n</div></div><div id = \"section_8\"><span id = \"As_a_constructor\"></span><h3 class = \"editable\">As a constructor</h3>\n<p>When a function is used as a constructor (with the <code><a title = \"new\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/new\">new</a></code> keyword), its <code>this</code> is bound to new object being constructed, unless execution of the constructor results in the JavaScript engine encountering a return statement where the value to be returned is an object.</p>\n\r\n          <pre name = \"code\" class = \"js\">/*\n * Constructors work like this:\n *\n * function MyConstructor(){\n *   // Actual function body code goes here.  Create properties on |this| as\n *   // desired by assigning to them.  E.g.,\n *   this.fum = &quot;nom&quot;;\n *   // et cetera...\n *\n *   // If the function has a return statement that returns an object, that\n *   // object will be the result of the |new| expression.  Otherwise, the\n *   // result of the expression is the object currently bound to |this|\n *   // (i.e., the common case most usually seen).\n * }\n */\n\nfunction C(){\n  this.a = 37;\n}\n\nvar o = new C();\nconsole.log(o.a); // logs 37\n\n\nfunction C2(){\n  this.a = 37;\n  return {a:38};\n}\n\no = new C2();\nconsole.log(o.a); // logs 38</pre>\r\n        \n<p>In the last example (<code>C2</code>), because an object was returned during construction, the new object that <code>this</code> was bound to simply gets discarded. (This essentially makes the statement &quot;<code>this.a = 37;</code>&quot; dead code. It's not exactly dead, because it gets executed, but it can be eliminated with no outside effects.)</p>\n</div><div id = \"section_9\"><span id = \"call_and_apply\"></span><h3 class = \"editable\"><code>call</code> and <code>apply</code></h3>\n<p>Where a function uses the <code>this</code> keyword in its body, its value can be bound to a particular object during execution using the <code><a title = \"en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a></code> or <code><a title = \"en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply</a></code> methods that all functions inherit from <code>Function.prototype</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">function add(c, d){\n  return this.a + this.b + c + d;\n}\n\nvar o = {a:1, b:3};\n\n// The first parameter is the object to use as 'this', subsequent parameters are passed as \n// arguments in the function call\nadd.call(o, 5, 7); // 1 + 3 + 5 + 7 = 16\n\n// The first parameter is the object to use as 'this', the second is an array whose\n// members are used as the arguments in the function call\nadd.apply(o, [10, 20]); // 1 + 3 + 10 + 20 = 34</pre>\r\n        \n</div><div id = \"section_10\"><span id = \"Bound_functions\"></span><h3 class = \"editable\">Bound functions</h3>\n<p>ECMAScript 5 introduced <code><a title = \"en/JavaScript/Reference/Global Objects/Function/bind\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind\">Function.prototype.bind</a></code>. Calling <code>f.bind(someObject)</code> creates a new function with the same body and scope as <code>f</code>, but where <code>this</code> occurs in the original function, in the new function it is permanently bound to the first argument of <code>bind</code>, regardless of how the function is being used.</p>\n\r\n          <pre name = \"code\" class = \"js\">function f(){\n  return this.a;\n}\n\nvar g = f.bind({a:&quot;azerty&quot;});\nconsole.log(g()); // azerty\n\nvar o = {a:37, f:f, g:g};\nconsole.log(o.f(), o.g()); // 37, azerty</pre>\r\n        \n</div><div id = \"section_11\"><span id = \"As_a_DOM_event_handler\"></span><h3 class = \"editable\">As a DOM event handler</h3>\n<p>When a function is used as an event handler, its <code>this</code> is set to the element the event fired from (some browsers do not follow this convention for listeners added dynamically with methods other than <code>addEventListener</code>).</p>\n\r\n          <pre name = \"code\" class = \"js\">// When called as a listener, turns the related element blue\nfunction bluify(e){\n  console.log(this === e.currentTarget); // Always true\n  console.log(this === e.target);        // true when currentTarget and target are the same object\n  this.style.backgroundColor = '#A5D9F3';\n}\n\n// Get a list of every element in the document\nvar elements = document.getElementsByTagName('*');\n\n// Add bluify as a click listener so when the element is clicked on,\n// it turns blue\nfor(var i=0 ; i&lt;elements.length ; i++){\n  elements[i].addEventListener('click', bluify, false);\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_4\"><span id = \"Simple_call\"></span><h3 class = \"editable\">Simple call</h3>\n\r\n          <pre name = \"code\" class = \"js\">function f1(){\n  return this;\n}\n\nf1() === window; // global object\n\n\nfunction f2(){\n  &quot;use strict&quot;; // see strict mode\n  return this;\n}\n\nf2() === undefined;</pre>\r\n        \n<div class = \"note\"><strong>Note:</strong> In the second example, <code>this</code> should be <a title = \"undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\"><code>undefined</code></a>, because <code>f2</code> was called without providing any base (e.g. <code>window.f2()</code>). This feature wasn't implemented in some browsers when they first started to support <a title = \"Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Strict_mode\">strict mode</a>; because of this, they incorrectly returned the <code>window</code> object.</div>\n</div>",
			"<div id = \"section_5\"><span id = \"As_an_object_method\"></span><h3 class = \"editable\">As an object method</h3>\n<p>When a function is called as a method of an object, its <code>this</code> is set to the object the method is called on.</p>\n<p>In the following example, when <code>o.f()</code> is invoked, inside the function <code>this</code> is bound to the <code>o</code> object.</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {\n  prop: 37,\n  f: function() {\n    return this.prop;\n  }\n};\n\nconsole.log(o.f()); // logs 37</pre>\r\n        \n<p>Note that this behavior is not at all affected by how or where the function was defined. In the previous example, we defined the function inline as the <code>f</code> member during the definition of <code>o</code>.&nbsp; However, we could have just as easily defined the function first and later attached it to <code>o.f</code>. Doing so results in the same behavior:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {prop: 37};\n\nfunction independent() {\n  return this.prop;\n}\n\no.f = independent;\n\nconsole.log(o.f()); // logs 37</pre>\r\n        \n<p>This demonstrates that it matters only that the function was invoked from the <code>f</code> member of <code>o</code>.</p>\n<p>Similarly, the <code>this</code> binding is only affected by the most immediate member reference. In the following example, when we invoke the function, we call it as a method <code>g</code> of the object <code>o.b</code>. This time during execution, <code>this</code> inside the function will refer to <code>o.b</code>. The fact that the object is itself a member of <code>o</code> has no consequence; the most immediate reference is all that matters.</p>\n\r\n          <pre name = \"code\" class = \"js\">o.b = {g: independent, prop: 42};\nconsole.log(o.b.g()); // logs 42</pre>\r\n        \n<div id = \"section_6\"><span id = \"..._on_the_prototype_chain\"></span><h4 class = \"editable\">... on the prototype chain</h4>\n<p>The same notion holds true for methods defined somewhere on the object's prototype chain. If the method is on an object's prototype chain, <code>this</code> refers to the object the method was called on, as if the method was on the object.</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {f:function(){ return this.a + this.b; }};\nvar p = Object.create(o);\np.a = 1;\np.b = 4;\n\nconsole.log(p.f()); // 5</pre>\r\n        \n<p>In this example, the object assigned to the variable <code>p</code> doesn't have its own <code>f</code> property, it inherits it from its <a title = \"Prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/Prototype\" class = \"new \">prototype</a>. But it doesn't matter that the lookup for <code>f</code> eventually finds a member with that name on <code>o</code>; the lookup began as a reference to <code>p.f</code>, so <code>this</code> inside the function takes the value of the object referred to as <code>p</code>. That is, since <code>f</code> is called as a method of <code>p</code>, its <code>this</code> refers to <code>p</code>. This is an interesting feature of JavaScript's prototype inheritance.</p>\n</div><div id = \"section_7\"><span id = \"..._or_as_a_getter_or_setter\"></span><h4 class = \"editable\">... or as a getter or setter</h4>\n<p>Again, the same notion holds true when a function is invoked from a getter or a setter. A function used as getter or setter has its <code>this</code> bound to the object from which the property is being set or gotten.</p>\n\r\n          <pre name = \"code\" class = \"js\">function modulus(){\n  return Math.sqrt(this.re * this.re + this.im * this.im);\n}\n\nvar o = {\n  re: 1,\n  im: -1,\n  get phase(){\n    return Math.atan2(this.im, this.re);\n  }\n};\n\nObject.defineProperty(o, 'modulus', {get: modulus, enumerable:true, configurable:true});\n\nconsole.log(o.phase, o.modulus); // logs -0.78 1.4142</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"..._on_the_prototype_chain\"></span><h4 class = \"editable\">... on the prototype chain</h4>\n<p>The same notion holds true for methods defined somewhere on the object's prototype chain. If the method is on an object's prototype chain, <code>this</code> refers to the object the method was called on, as if the method was on the object.</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {f:function(){ return this.a + this.b; }};\nvar p = Object.create(o);\np.a = 1;\np.b = 4;\n\nconsole.log(p.f()); // 5</pre>\r\n        \n<p>In this example, the object assigned to the variable <code>p</code> doesn't have its own <code>f</code> property, it inherits it from its <a title = \"Prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/Prototype\" class = \"new \">prototype</a>. But it doesn't matter that the lookup for <code>f</code> eventually finds a member with that name on <code>o</code>; the lookup began as a reference to <code>p.f</code>, so <code>this</code> inside the function takes the value of the object referred to as <code>p</code>. That is, since <code>f</code> is called as a method of <code>p</code>, its <code>this</code> refers to <code>p</code>. This is an interesting feature of JavaScript's prototype inheritance.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"..._or_as_a_getter_or_setter\"></span><h4 class = \"editable\">... or as a getter or setter</h4>\n<p>Again, the same notion holds true when a function is invoked from a getter or a setter. A function used as getter or setter has its <code>this</code> bound to the object from which the property is being set or gotten.</p>\n\r\n          <pre name = \"code\" class = \"js\">function modulus(){\n  return Math.sqrt(this.re * this.re + this.im * this.im);\n}\n\nvar o = {\n  re: 1,\n  im: -1,\n  get phase(){\n    return Math.atan2(this.im, this.re);\n  }\n};\n\nObject.defineProperty(o, 'modulus', {get: modulus, enumerable:true, configurable:true});\n\nconsole.log(o.phase, o.modulus); // logs -0.78 1.4142</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"As_a_constructor\"></span><h3 class = \"editable\">As a constructor</h3>\n<p>When a function is used as a constructor (with the <code><a title = \"new\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/new\">new</a></code> keyword), its <code>this</code> is bound to new object being constructed, unless execution of the constructor results in the JavaScript engine encountering a return statement where the value to be returned is an object.</p>\n\r\n          <pre name = \"code\" class = \"js\">/*\n * Constructors work like this:\n *\n * function MyConstructor(){\n *   // Actual function body code goes here.  Create properties on |this| as\n *   // desired by assigning to them.  E.g.,\n *   this.fum = &quot;nom&quot;;\n *   // et cetera...\n *\n *   // If the function has a return statement that returns an object, that\n *   // object will be the result of the |new| expression.  Otherwise, the\n *   // result of the expression is the object currently bound to |this|\n *   // (i.e., the common case most usually seen).\n * }\n */\n\nfunction C(){\n  this.a = 37;\n}\n\nvar o = new C();\nconsole.log(o.a); // logs 37\n\n\nfunction C2(){\n  this.a = 37;\n  return {a:38};\n}\n\no = new C2();\nconsole.log(o.a); // logs 38</pre>\r\n        \n<p>In the last example (<code>C2</code>), because an object was returned during construction, the new object that <code>this</code> was bound to simply gets discarded. (This essentially makes the statement &quot;<code>this.a = 37;</code>&quot; dead code. It's not exactly dead, because it gets executed, but it can be eliminated with no outside effects.)</p>\n</div>",
			"<div id = \"section_9\"><span id = \"call_and_apply\"></span><h3 class = \"editable\"><code>call</code> and <code>apply</code></h3>\n<p>Where a function uses the <code>this</code> keyword in its body, its value can be bound to a particular object during execution using the <code><a title = \"en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a></code> or <code><a title = \"en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply</a></code> methods that all functions inherit from <code>Function.prototype</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">function add(c, d){\n  return this.a + this.b + c + d;\n}\n\nvar o = {a:1, b:3};\n\n// The first parameter is the object to use as 'this', subsequent parameters are passed as \n// arguments in the function call\nadd.call(o, 5, 7); // 1 + 3 + 5 + 7 = 16\n\n// The first parameter is the object to use as 'this', the second is an array whose\n// members are used as the arguments in the function call\nadd.apply(o, [10, 20]); // 1 + 3 + 10 + 20 = 34</pre>\r\n        \n</div>",
			"<div id = \"section_10\"><span id = \"Bound_functions\"></span><h3 class = \"editable\">Bound functions</h3>\n<p>ECMAScript 5 introduced <code><a title = \"en/JavaScript/Reference/Global Objects/Function/bind\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind\">Function.prototype.bind</a></code>. Calling <code>f.bind(someObject)</code> creates a new function with the same body and scope as <code>f</code>, but where <code>this</code> occurs in the original function, in the new function it is permanently bound to the first argument of <code>bind</code>, regardless of how the function is being used.</p>\n\r\n          <pre name = \"code\" class = \"js\">function f(){\n  return this.a;\n}\n\nvar g = f.bind({a:&quot;azerty&quot;});\nconsole.log(g()); // azerty\n\nvar o = {a:37, f:f, g:g};\nconsole.log(o.f(), o.g()); // 37, azerty</pre>\r\n        \n</div>",
			"<div id = \"section_11\"><span id = \"As_a_DOM_event_handler\"></span><h3 class = \"editable\">As a DOM event handler</h3>\n<p>When a function is used as an event handler, its <code>this</code> is set to the element the event fired from (some browsers do not follow this convention for listeners added dynamically with methods other than <code>addEventListener</code>).</p>\n\r\n          <pre name = \"code\" class = \"js\">// When called as a listener, turns the related element blue\nfunction bluify(e){\n  console.log(this === e.currentTarget); // Always true\n  console.log(this === e.target);        // true when currentTarget and target are the same object\n  this.style.backgroundColor = '#A5D9F3';\n}\n\n// Get a list of every element in the document\nvar elements = document.getElementsByTagName('*');\n\n// Add bluify as a click listener so when the element is clicked on,\n// it turns blue\nfor(var i=0 ; i&lt;elements.length ; i++){\n  elements[i].addEventListener('click', bluify, false);\n}</pre>\r\n        \n</div>"
		],
		"sectionNames": [
			"Introduction",
			"Global context",
			"Function context",
			"Simple call",
			"As an object method",
			"... on the prototype chain",
			"... or as a getter or setter",
			"As a constructor",
			"call and apply",
			"Bound functions",
			"As a DOM event handler"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/typeof",
		"title": "typeof",
		"_id": "4eea8446a4c86c4dba00004a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The <code>typeof</code> operator returns a string indicating the type of the unevaluated operand.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" scope = \"col\">Operator</th> </tr> </thead> <tbody> <tr> <td>Implemented in:</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262 (and ECMA-357 for E4X objects)</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p>The <code>typeof</code> operator is used in either of the following ways:</p>\n<ol> <li><code>typeof <em>operand</em></code></li> <li><code>typeof (<em>operand</em>)</code></li>\n</ol>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<p><code><em>operand</em></code> is the string, variable, keyword, or object for which the type is to be returned. The parentheses are optional.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>This table summarizes the possible return values of <code>typeof</code>:</p>\n<table class = \"standard-table\"> <thead> <tr> <th scope = \"col\">Type</th> <th scope = \"col\">Result</th> </tr> </thead> <tbody> <tr> <td>Undefined</td> <td><code>&quot;undefined&quot;</code></td> </tr> <tr> <td>Null</td> <td><code>&quot;object&quot;</code></td> </tr> <tr> <td>Boolean</td> <td><code>&quot;boolean&quot;</code></td> </tr> <tr> <td>Number</td> <td><code>&quot;number&quot;</code></td> </tr> <tr> <td>String</td> <td><code>&quot;string&quot;</code></td> </tr> <tr> <td>Host object (provided by the JS environment)</td> <td><em>Implementation-dependent</em></td> </tr> <tr> <td>Function object (implements [[Call]] in ECMA-262 terms)</td> <td><code>&quot;function&quot;</code></td> </tr> <tr> <td>E4X&nbsp;XML&nbsp;object</td> <td>&quot;xml&quot;</td> </tr> <tr> <td>E4X&nbsp;XMLList object</td> <td>&quot;xml&quot;</td> </tr> <tr> <td>Any other object</td> <td><code>&quot;object&quot;</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Normal_cases\"></span><h3 class = \"editable\">Normal cases</h3>\n\r\n          <pre name = \"code\" class = \"js\">// Numbers\ntypeof 37 === 'number';\ntypeof 3.14 === 'number';\ntypeof Math.LN2 === 'number';\ntypeof Infinity === 'number';\ntypeof NaN === 'number'; // Despite being &quot;Not-A-Number&quot;\ntypeof Number(1) === 'number'; // but never use this form!\n\n// Strings\ntypeof &quot;&quot; === 'string';\ntypeof &quot;bla&quot; === 'string';\ntypeof (typeof 1) === 'string'; // typeof always return a string\ntypeof String(&quot;abc&quot;) === 'string'; // but never use this form!\n\n// Booleans\ntypeof true === 'boolean';\ntypeof false === 'boolean';\ntypeof Boolean(true) === 'boolean'; // but never use this form!\n\n// Undefined\ntypeof undefined === 'undefined';\ntypeof blabla === 'undefined'; // an undefined variable\n\n// Objects\ntypeof {a:1} === 'object';\ntypeof [1, 2, 4] === 'object'; // use Array.isArray or Object.prototype.toString.call to differentiate regular objects from arrays\ntypeof new Date() === 'object';\n\ntypeof new Boolean(true) === 'object' // this is confusing. Don't use!\ntypeof new Number(1) === 'object' // this is confusing. Don't use!\ntypeof new String(&quot;abc&quot;) === 'object';  // this is confusing. Don't use!\n\n// Functions\ntypeof function(){} === 'function';\ntypeof Math.sin === 'function';</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"null\"></span><h3 class = \"editable\"><code>null</code></h3>\n\r\n          <pre name = \"code\" class = \"js\">typeof null === 'object'; // This stands since the beginning of JavaScript</pre>\r\n        \n<p>In the first implementation of JavaScript, JavaScript values were represented as a type tag and a value. The type tag for objects was 0. <code>null</code> was represented as the NULL pointer (0x00 is most platforms). Consequently, null had 0 as type tag, hence the bogus <code>typeof</code> return value. (reference needed)</p>\n<p>This is planned on <a class = \" external\" rel = \"external\" href = \"http://wiki.ecmascript.org/doku.php?id=harmony:typeof_null\" title = \"http://wiki.ecmascript.org/doku.php?id=harmony:typeof_null\" target = \"_blank\">being fixed in the next version of ECMAScript</a> (which will be available via an opt-in). It will result in <code>typeof null === 'null'</code>.</p></div><div id = \"section_8\"><span id = \"Regular_expressions\"></span><h3 class = \"editable\">Regular expressions</h3>\n<p>Callable regular expressions were a non-standard addition in some browsers (need reference to say which).</p>\n\r\n          <pre name = \"code\" class = \"js\">typeof /s/ === 'function'; // Chrome 1-12 ... // Non-conform to ECMAScript 5.1\ntypeof /s/ === 'object'; // Firefox 5+ ...    // Conform to ECMAScript 5.1</pre>\r\n         </div><div id = \"section_9\"><span id = \"Other_quirks\"></span><h3 class = \"editable\">Other quirks</h3>\n<div id = \"section_10\"><span id = \"alert_in_old_Internet_Explorer_versions\"></span><h4 class = \"editable\"><code>alert</code> in old Internet Explorer versions</h4>\n<p>On IE 6, 7 and 8, <code>typeof alert === 'object'</code></p></div></div></div>",
			"<div id = \"section_6\"><span id = \"Normal_cases\"></span><h3 class = \"editable\">Normal cases</h3>\n\r\n          <pre name = \"code\" class = \"js\">// Numbers\ntypeof 37 === 'number';\ntypeof 3.14 === 'number';\ntypeof Math.LN2 === 'number';\ntypeof Infinity === 'number';\ntypeof NaN === 'number'; // Despite being &quot;Not-A-Number&quot;\ntypeof Number(1) === 'number'; // but never use this form!\n\n// Strings\ntypeof &quot;&quot; === 'string';\ntypeof &quot;bla&quot; === 'string';\ntypeof (typeof 1) === 'string'; // typeof always return a string\ntypeof String(&quot;abc&quot;) === 'string'; // but never use this form!\n\n// Booleans\ntypeof true === 'boolean';\ntypeof false === 'boolean';\ntypeof Boolean(true) === 'boolean'; // but never use this form!\n\n// Undefined\ntypeof undefined === 'undefined';\ntypeof blabla === 'undefined'; // an undefined variable\n\n// Objects\ntypeof {a:1} === 'object';\ntypeof [1, 2, 4] === 'object'; // use Array.isArray or Object.prototype.toString.call to differentiate regular objects from arrays\ntypeof new Date() === 'object';\n\ntypeof new Boolean(true) === 'object' // this is confusing. Don't use!\ntypeof new Number(1) === 'object' // this is confusing. Don't use!\ntypeof new String(&quot;abc&quot;) === 'object';  // this is confusing. Don't use!\n\n// Functions\ntypeof function(){} === 'function';\ntypeof Math.sin === 'function';</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"null\"></span><h3 class = \"editable\"><code>null</code></h3>\n\r\n          <pre name = \"code\" class = \"js\">typeof null === 'object'; // This stands since the beginning of JavaScript</pre>\r\n        \n<p>In the first implementation of JavaScript, JavaScript values were represented as a type tag and a value. The type tag for objects was 0. <code>null</code> was represented as the NULL pointer (0x00 is most platforms). Consequently, null had 0 as type tag, hence the bogus <code>typeof</code> return value. (reference needed)</p>\n<p>This is planned on <a class = \" external\" rel = \"external\" href = \"http://wiki.ecmascript.org/doku.php?id=harmony:typeof_null\" title = \"http://wiki.ecmascript.org/doku.php?id=harmony:typeof_null\" target = \"_blank\">being fixed in the next version of ECMAScript</a> (which will be available via an opt-in). It will result in <code>typeof null === 'null'</code>.</p></div>",
			"<div id = \"section_8\"><span id = \"Regular_expressions\"></span><h3 class = \"editable\">Regular expressions</h3>\n<p>Callable regular expressions were a non-standard addition in some browsers (need reference to say which).</p>\n\r\n          <pre name = \"code\" class = \"js\">typeof /s/ === 'function'; // Chrome 1-12 ... // Non-conform to ECMAScript 5.1\ntypeof /s/ === 'object'; // Firefox 5+ ...    // Conform to ECMAScript 5.1</pre>\r\n         </div>",
			"<div id = \"section_9\"><span id = \"Other_quirks\"></span><h3 class = \"editable\">Other quirks</h3>\n<div id = \"section_10\"><span id = \"alert_in_old_Internet_Explorer_versions\"></span><h4 class = \"editable\"><code>alert</code> in old Internet Explorer versions</h4>\n<p>On IE 6, 7 and 8, <code>typeof alert === 'object'</code></p></div></div>",
			"<div id = \"section_10\"><span id = \"alert_in_old_Internet_Explorer_versions\"></span><h4 class = \"editable\"><code>alert</code> in old Internet Explorer versions</h4>\n<p>On IE 6, 7 and 8, <code>typeof alert === 'object'</code></p></div>",
			"<div id = \"section_11\"><span id = \"Specification\"></span><h2 class = \"editable\">Specification</h2>\n<p><a class = \"external\" rel = \"external\" href = \"http://bclary.com/2004/11/07/#a-11.4.3\" title = \"http://bclary.com/2004/11/07/#a-11.4.3\" target = \"_blank\">ECMA-262 section 11.4.3</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Normal cases",
			"null",
			"Regular expressions",
			"Other quirks",
			"alert in old Internet Explorer versions",
			"Specification"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/void",
		"title": "void",
		"_id": "4eea844da4c86c4dba00004b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>void <em>expression</em></code></p>\n</div>",
			"<div id = \"section_2\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The <code>void</code> operator evaluates the given <code><em>expression</em></code> and then returns <code>undefined</code>.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\" colspan = \"2\">Operator</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMA Version:</td> <td>ECMA-262</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_3\"><span id = \"Uses\"></span><h2 class = \"editable\">Uses</h2>\n<p>This operator allows inserting expressions that produce side effects into places where an expression that evaluates to <code>undefined</code> is desired.</p>\n<p>The <code>void</code> operator is often used merely to obtain the <code>undefined</code> primitive value, usually using &quot;<code>void(0)</code>&quot; (which is equivalent to &quot;<code>void 0</code>&quot;). In these cases, the global variable <a title = \"en/JavaScript/Reference/Global_Objects/undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\">undefined</a> can be used instead (assuming it has not been assigned to a non-default value).</p>\n</div>",
			"<div id = \"section_4\"><span id = \"JavaScript_URIs\"></span><h2 class = \"editable\">JavaScript URIs</h2>\n<p>When a browser follows a <code>javascript:</code> URI, it evaluates the code in the URI and then replaces the contents of the page with the returned value, unless the returned value is <code>undefined</code>. The <code>void</code> operator can be used to return <code>undefined</code>. For example:</p>\n<pre>\n&lt;a href=&quot;javascript:void(0);&quot;&gt;Click here to do nothing&lt;/a&gt;\n&lt;a href=&quot;javascript:void(document.body.style.backgroundColor='green');&quot;&gt;Click here for green background&lt;/a&gt;\n</pre>\n<p>Note, however, that the <code>javascript:</code> pseudo protocol is discouraged over other alternatives, such as unobtrusive event handlers.</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Syntax",
			"Summary",
			"Uses",
			"JavaScript URIs"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Operators/Operator_Precedence",
		"title": "Operator Precedence",
		"_id": "4eea8451a4c86c4dba00004c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Operator precedence determines the order in which operators are evaluated. Operators with higher precedence are evaluated first.</p>\n<p>A common example:</p>\n<pre class = \"eval\">\n3 + 4 * 5 // returns 23\t \n</pre>\n<p>The multiplication operator (&quot;<code>*</code>&quot;) has higher precedence than the addition operator (&quot;<code>+</code>&quot;) and thus will be evaluated first.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Associativity\"></span><h3 class = \"editable\">Associativity</h3>\n<p>Associativity determines the order in which operators of the same precedence are processed. For example, consider an expression:</p>\n<pre class = \"eval\">\na OP b OP c\n</pre>\n<p>Left-associativity (left-to-right) means that it is processed as <code>(a OP b) OP c</code>, while right-associativity (right-to-left) means it is interpreted as <code>a OP (b OP c)</code>. Assignment operators are right-associative, so you can write:</p>\n<pre class = \"eval\">\na = b = 5;\n</pre>\n<p>with the expected result that <code>a</code> and <code>b</code> get the value 5. This is because the assignment operator returns the value that it assigned. First, <code>b</code> is set to 5. Then the <code>a</code> is set to the value of <code>b</code>.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Table\"></span><h3 class = \"editable\">Table</h3>\n<p>The following table is ordered from highest (1) to lowest (17) precedence.</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <th>Precedence</th> <th>Operator type</th> <th>Associativity</th> <th>Individual operators</th> </tr> <tr> <td rowspan = \"3\">1</td> <td rowspan = \"2\"><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Member_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Member_Operators\">member</a></td> <td rowspan = \"2\">left-to-right</td> <td>.</td> </tr> <tr> <td>[]</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/new_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/new\">new</a></td> <td>right-to-left</td> <td>new</td> </tr> <tr> <td>2</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/function_call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/function_call\" class = \"new \">function call</a></td> <td>left-to-right</td> <td>()</td> </tr> <tr> <td rowspan = \"2\">3</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Arithmetic_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators\">increment</a></td> <td>n/a</td> <td>++</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Arithmetic_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators\">decrement</a></td> <td>n/a</td> <td>--</td> </tr> <tr> <td rowspan = \"7\">4</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Logical_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Logical_Operators\">logical-not</a></td> <td>right-to-left</td> <td>!</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Bitwise_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators\">bitwise not</a></td> <td>right-to-left</td> <td>~</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Arithmetic_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators\">unary +</a></td> <td>right-to-left</td> <td>+</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Arithmetic_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators\">unary negation</a></td> <td>right-to-left</td> <td>-</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/typeof_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/typeof\">typeof</a></td> <td>right-to-left</td> <td>typeof</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/void_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/void\">void</a></td> <td>right-to-left</td> <td>void</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/delete_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/delete\">delete</a></td> <td>right-to-left</td> <td>delete</td> </tr> <tr> <td rowspan = \"3\">5</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Arithmetic_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators\">multiplication</a></td> <td>left-to-right</td> <td>*</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Arithmetic_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators\">division</a></td> <td>left-to-right</td> <td>/</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Arithmetic_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators\">modulus</a></td> <td>left-to-right</td> <td><undefined></undefined></td> </tr> <tr> <td rowspan = \"2\">6</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Arithmetic_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators\">addition</a></td> <td>left-to-right</td> <td>+</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Arithmetic_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Arithmetic_Operators\">subtraction</a></td> <td>left-to-right</td> <td>-</td> </tr> <tr> <td rowspan = \"3\">7</td> <td rowspan = \"3\"><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Bitwise_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators\">bitwise shift</a></td> <td rowspan = \"3\">left-to-right</td> <td>&lt;&lt;</td> </tr> <tr> <td>&gt;&gt;</td> </tr> <tr> <td>&gt;&gt;&gt;</td> </tr> <tr> <td rowspan = \"6\">8</td> <td rowspan = \"4\"><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Comparison_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comparison_Operators\">relational</a></td> <td rowspan = \"4\">left-to-right</td> <td>&lt;</td> </tr> <tr> <td>&lt;=</td> </tr> <tr> <td>&gt;</td> </tr> <tr> <td>&gt;=</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/in_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/in\">in</a></td> <td>left-to-right</td> <td>in</td> </tr> <tr> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/instanceof_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/instanceof\">instanceof</a></td> <td>left-to-right</td> <td>instanceof</td> </tr> <tr> <td rowspan = \"4\">9</td> <td rowspan = \"4\"><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Comparison_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comparison_Operators\">equality</a></td> <td rowspan = \"4\">left-to-right</td> <td>==</td> </tr> <tr> <td>!=</td> </tr> <tr> <td>===</td> </tr> <tr> <td>!==</td> </tr> <tr> <td>10</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Bitwise_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators\">bitwise-and</a></td> <td>left-to-right</td> <td>&amp;</td> </tr> <tr> <td>11</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Bitwise_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators\">bitwise-xor</a></td> <td>left-to-right</td> <td>^</td> </tr> <tr> <td>12</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Bitwise_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators\">bitwise-or</a></td> <td>left-to-right</td> <td>|</td> </tr> <tr> <td>13</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Logical_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Logical_Operators\">logical-and</a></td> <td>left-to-right</td> <td>&amp;&amp;</td> </tr> <tr> <td>14</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Logical_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Logical_Operators\">logical-or</a></td> <td>left-to-right</td> <td>||</td> </tr> <tr> <td>15</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/Conditional_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/Conditional_Operator\">conditional</a></td> <td>right-to-left</td> <td>?:</td> </tr> <tr> <td rowspan = \"12\">16</td> <td rowspan = \"12\"><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Assignment_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Assignment_Operators\">assignment</a></td> <td rowspan = \"12\">right-to-left</td> <td>=</td> </tr> <tr> <td>+=</td> </tr> <tr> <td>-=</td> </tr> <tr> <td>*=</td> </tr> <tr> <td>/=</td> </tr> <tr> <td>%=</td> </tr> <tr> <td>&lt;&lt;=</td> </tr> <tr> <td>&gt;&gt;=</td> </tr> <tr> <td>&gt;&gt;&gt;=</td> </tr> <tr> <td>&amp;=</td> </tr> <tr> <td>^=</td> </tr> <tr> <td>|=</td> </tr> <tr> <td>17</td> <td><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/Comma_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/Comma_Operator\">comma</a></td> <td>left-to-right</td> <td>,</td> </tr> </tbody>\n</table>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Associativity",
			"Table"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse",
		"title": "Date.parse",
		"_id": "4eea8451a4c86c4dba00004d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Parses a string representation of a date, and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> Date.parse(dateString) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>dateString</code></dt> <dd>A string representing an RFC822 or ISO 8601 date.</dd>\n</dl></div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>parse</code> method takes a date string (such as &quot;<code>Dec 25, 1995</code>&quot;) and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC. The local time zone is used to interpret arguments that do not contain time zone information. This function is useful for setting date values based on string values, for example in conjunction with the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setTime\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setTime\">setTime</a></code> method and the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a></code> object.</p>\n<p>Given a string representing a time, <code>parse</code> returns the time value. It accepts the RFC822 / IETF date syntax (<a class = \"external\" title = \"http://tools.ietf.org/html/rfc1123\" rel = \"external\" href = \"http://tools.ietf.org/html/rfc1123\" target = \"_blank\">RFC 1123</a> Section 5.2.14 and elsewhere), e.g. &quot;<code>Mon, 25 Dec 1995 13:30:00 GMT</code>&quot;. It understands the continental US time-zone abbreviations, but for general use, use a time-zone offset, for example, &quot;<code>Mon, 25 Dec 1995 13:30:00 GMT+0430</code>&quot; (4 hours, 30 minutes east of the Greenwich meridian). If you do not specify a time zone, the local time zone is assumed. GMT and UTC are considered equivalent.</p>\n<p>\n<div style = \"border: 0px none ; margin: 10px 0px; padding: 0px 10px; background-color: rgb(254, 244, 156); text-align: center;\"><p style = \"margin: 4px 0px; font-weight: bold;\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a> note</p><p style = \"margin: 4px 0px;\">A <a rel = \"external\" href = \"http://www.w3.org/TR/NOTE-datetime\" title = \"http://www.w3.org/TR/NOTE-datetime\" target = \"_blank\" class = \" external\">subset of ISO 8601</a> formatted date strings can now also be parsed.</p></div></p>\n<p>Alternatively, the date/time string may be in ISO 8601 format. Starting with JavaScript 1.8.5 / Firefox 4, a <a class = \"external\" title = \"http://www.w3.org/TR/NOTE-datetime\" rel = \"external\" href = \"http://www.w3.org/TR/NOTE-datetime\" target = \"_blank\">subset of ISO 8601</a> is supported. For example, &quot;<code>2011-10-10</code>&quot; (just date) or &quot;<code>2011-10-10T14:48:00</code> (date and time) can be passed and parsed. <a class = \"link-https\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=693077\" rel = \"external\" target = \"_blank\" title = \"https://bugzilla.mozilla.org/show_bug.cgi?id=693077\">Timezones in ISO dates are not yet supported</a>, so e.g. &quot;<code>2011-10-10T14:48:00+0200</code>&quot; (with timezone) does not give the intended result yet.</p>\n<p>Note that while time zone specifiers are used during date string parsing to properly interpret the argument, they do not affect the value returned, which is always the number of milliseconds between January 1, 1970 00:00:00 UTC and the point in time represented by the argument.</p>\n<p>Because <code>parse</code> is a static method of <code>Date</code>, you always use it as <code>Date.parse()</code>, rather than as a method of a <code>Date</code> object you created.</p></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_parse\"></span><h4 class = \"editable\">Example: Using <code>parse</code></h4>\n<p>If <code>IPOdate</code> is an existing <code>Date</code> object, then you can set it to August 9, 1995 (local time) as follows:</p>\n\r\n          <pre name = \"code\" class = \"js\">IPOdate.setTime(Date.parse(&quot;Aug 9, 1995&quot;));</pre>\r\n        \n<p>Some other examples:</p>\n\r\n          <pre name = \"code\" class = \"js\">// Returns 807937200000 in time zone GMT-0300, and other values in other\n// timezones, since the argument does not specify a time zone.\nDate.parse(&quot;Aug 9, 1995&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 807926400000 no matter the local time zone.\nDate.parse(&quot;Wed, 09 Aug 1995 00:00:00 GMT&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 807937200000 in timezone GMT-0300, and other values in other\n// timezones, since there is no time zone specifier in the argument.\nDate.parse(&quot;Wed, 09 Aug 1995 00:00:00&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 0 no matter the local time zone.\nDate.parse(&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 14400000 in timezone GMT-0400, and other values in other \n// timezones, since there is no time zone specifier in the argument.\nDate.parse(&quot;Thu, 01 Jan 1970 00:00:00&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 14400000 no matter the local time zone.\nDate.parse(&quot;Thu, 01 Jan 1970 00:00:00 GMT-0400&quot;);</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_parse\"></span><h4 class = \"editable\">Example: Using <code>parse</code></h4>\n<p>If <code>IPOdate</code> is an existing <code>Date</code> object, then you can set it to August 9, 1995 (local time) as follows:</p>\n\r\n          <pre name = \"code\" class = \"js\">IPOdate.setTime(Date.parse(&quot;Aug 9, 1995&quot;));</pre>\r\n        \n<p>Some other examples:</p>\n\r\n          <pre name = \"code\" class = \"js\">// Returns 807937200000 in time zone GMT-0300, and other values in other\n// timezones, since the argument does not specify a time zone.\nDate.parse(&quot;Aug 9, 1995&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 807926400000 no matter the local time zone.\nDate.parse(&quot;Wed, 09 Aug 1995 00:00:00 GMT&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 807937200000 in timezone GMT-0300, and other values in other\n// timezones, since there is no time zone specifier in the argument.\nDate.parse(&quot;Wed, 09 Aug 1995 00:00:00&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 0 no matter the local time zone.\nDate.parse(&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 14400000 in timezone GMT-0400, and other values in other \n// timezones, since there is no time zone specifier in the argument.\nDate.parse(&quot;Thu, 01 Jan 1970 00:00:00&quot;);</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns 14400000 no matter the local time zone.\nDate.parse(&quot;Thu, 01 Jan 1970 00:00:00 GMT-0400&quot;);</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/UTC\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/UTC\">Date.UTC</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using parse",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/prototype",
		"title": "Date.prototype",
		"_id": "4eea8453a4c86c4dba00004e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the prototype for the <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n JavaScript<a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code> Date</code></a>  instances inherit from  <code>Date.prototype</code> . You can modify the constructor's prototype object to affect properties and methods inherited by JavaScript&nbsp;<code>Date</code> instances. <p>For compatibility with millennium calculations (in other words, to take into account the year 2000), you should always specify the year in full; for example, use 1998, not 98. To assist you in specifying the complete year, JavaScript includes the methods <code><a title = \"en/JavaScript/Reference/Global_Objects/Date/getFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear\">getFullYear</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Date/setFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear\">setFullYear</a></code>, <code><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\">getUTCFullYear</a></code>, and <code><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\">setUTCFullYear</a></code>.</p>\n\t </div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>   <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/constructor\">constructor</a></dt> <dd>Returns the function that created an instance. This is the <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a>  </dd> </dl> <div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>  </div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>   <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDate\">getDate</a></dt> <dd>Returns the day of the month (1-31) for the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getDay\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDay\">getDay</a></dt> <dd>Returns the day of the week (0-6) for the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear\">getFullYear</a></dt> <dd>Returns the year (4 digits for 4-digit years) of the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getHours\">getHours</a></dt> <dd>Returns the hour (0-23) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMilliseconds\">getMilliseconds</a></dt> <dd>Returns the milliseconds (0-999) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMinutes\">getMinutes</a></dt> <dd>Returns the minutes (0-59) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMonth\">getMonth</a></dt> <dd>Returns the month (0-11) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getSeconds\">getSeconds</a></dt> <dd>Returns the seconds (0-59) in the specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getTime\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime\">getTime</a></dt> <dd>Returns the numeric value of the specified date as the number of milliseconds since January 1, 1970, 00:00:00 UTC (negative for prior times).</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset\">getTimezoneOffset</a></dt> <dd>Returns the time-zone offset in minutes for the current locale.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDate\">getUTCDate</a></dt> <dd>Returns the day (date) of the month (1-31) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDay\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDay\">getUTCDay</a></dt> <dd>Returns the day of the week (0-6) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\">getUTCFullYear</a></dt> <dd>Returns the year (4 digits for 4-digit years) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCHours\">getUTCHours</a></dt> <dd>Returns the hours (0-23) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds\">getUTCMilliseconds</a></dt> <dd>Returns the milliseconds (0-999) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMinutes\">getUTCMinutes</a></dt> <dd>Returns the minutes (0-59) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMonth\">getUTCMonth</a></dt> <dd>Returns the month (0-11) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCSeconds\">getUTCSeconds</a></dt> <dd>Returns the seconds (0-59) in the specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/getYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getYear\">getYear</a></dt> <dd>\n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n</dd> <dd>Returns the year (usually 2-3 digits) in the specified date according to local time. Use <a title = \"en/JavaScript/Reference/Global_Objects/Date/getFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear\">getFullYear</a> instead.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setDate\">setDate</a></dt> <dd>Sets the day of the month (1-31) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear\">setFullYear</a></dt> <dd>Sets the full year (4 digits for 4-digit years) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setHours\">setHours</a></dt> <dd>Sets the hours (0-23) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMilliseconds\">setMilliseconds</a></dt> <dd>Sets the milliseconds (0-999) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMinutes\">setMinutes</a></dt> <dd>Sets the minutes (0-59) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMonth\">setMonth</a></dt> <dd>Sets the month (0-11) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setSeconds\">setSeconds</a></dt> <dd>Sets the seconds (0-59) for a specified date according to local time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setTime\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setTime\">setTime</a></dt> <dd>Sets the <code>Date</code> object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC, allowing for negative numbers for times prior.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCDate\">setUTCDate</a></dt> <dd>Sets the day of the month (1-31) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\">setUTCFullYear</a></dt> <dd>Sets the full year (4 digits for 4-digit years) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCHours\">setUTCHours</a></dt> <dd>Sets the hour (0-23) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds\">setUTCMilliseconds</a></dt> <dd>Sets the milliseconds (0-999) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMinutes\">setUTCMinutes</a></dt> <dd>Sets the minutes (0-59) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMonth\">setUTCMonth</a></dt> <dd>Sets the month (0-11) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCSeconds\">setUTCSeconds</a></dt> <dd>Sets the seconds (0-59) for a specified date according to universal time.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/setYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setYear\">setYear</a></dt> <dd>\n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n</dd> <dd>Sets the year (usually 2-3 digits) for a specified date according to local time. Use <a title = \"en/JavaScript/Reference/Global_Objects/Date/setFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear\">setFullYear</a> instead.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toDateString\">toDateString</a></dt> <dd>Returns the &quot;date&quot; portion of the Date as a human-readable string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toISOString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toISOString\">toISOString</a></dt> <dd>Converts a date to a string following the ISO 8601 Extended Format.</dd> <dt><a title = \"en/JavaScript/Reference/Global Objects/Date/toJSON\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toJSON\">toJSON</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n</dt> <dd>Returns a string encapsulating the Date object in JSON&nbsp;format.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toGMTString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toGMTString\">toGMTString</a></dt> <dd>\n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n</dd> <dd>Converts a date to a string, using the Internet GMT conventions. Use <a title = \"en/JavaScript/Reference/Global_Objects/Date/toUTCString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toUTCString\">toUTCString</a> instead.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toLocaleDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleDateString\">toLocaleDateString</a></dt> <dd>Returns the &quot;date&quot; portion of the Date as a string, using the current locale's conventions.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toLocaleFormat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleFormat\">toLocaleFormat</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Converts a date to a string, using a format string.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleString\">toLocaleString</a></dt> <dd>Converts a date to a string, using the current locale's conventions. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toLocaleString\">Object.toLocaleString</a> method.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString\">toLocaleTimeString</a></dt> <dd>Returns the &quot;time&quot; portion of the Date as a string, using the current locale's conventions.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toSource\">toSource</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Returns a string representing the source for an equivalent <code>Date</code> object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toString\">toString</a></dt> <dd>Returns a string representing the specified <code>Date</code> object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toTimeString\">toTimeString</a></dt> <dd>Returns the &quot;time&quot; portion of the Date as a human-readable string.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/toUTCString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toUTCString\">toUTCString</a></dt> <dd>Converts a date to a string, using the universal time convention.</dd> </dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Date/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/valueOf\">valueOf</a></dt> <dd>Returns the primitive value of a <code>Date</code> object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.prototype.valueOf</a> method.</dd> </dl> \n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n\n<div class = \"noinclue\"> <div id = \"section_5\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n</div></div>\n\n <ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a></li> </ul>\n\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">Function.prototype</a></li>\n</ul>\n <p></p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"MethodsSee also",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Arity",
		"title": "Function.Arity",
		"_id": "4eea8455a4c86c4dba00004f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Specifies the number of arguments expected by the function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p class = \"note\">The <code>arity</code> property no longer exists and has been replaced by the <code><a title = \"en/JavaScript/Reference/Global_Objects/Function/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length\">Function.prototype.length</a></code> property.</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Caller",
		"title": "Function.Caller",
		"_id": "4eea845aa4c86c4dba000050",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the function that invoked the specified function.</p>\n<p>This property is not part of ECMA-262 Edition 3 standard. It is implemented at least in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a> (the JavaScript engine used in Mozilla) (see \n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=65683\" class = \"external\" title = \"RESOLVED FIXED - Function objects should have a caller property\">\nbug 65683</a>\n), V8 (the JavaScript engine used in Chrome) and JScript.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If the function <code>f</code> was invoked by the top level code, the value of <code>f.caller</code> is <code>null</code>, otherwise it's the function that called <code>f</code></p>\n<p>This property replaces deprecated <a title = \"En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments/caller\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments/caller\">arguments.caller</a>.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Notes\"></span><h3 class = \"editable\">Notes</h3>\n<p>Note that in case of recursion, you can't reconstruct the call stack using this property. Consider:</p>\n<pre class = \"eval\">\nfunction f(n) { g(n-1) }\nfunction g(n) { if(n&gt;0) f(n); else stop() }\nf(2)\n</pre>\n<p>At the moment <code>stop()</code> is called the call stack will be:</p>\n<pre class = \"eval\">\nf(2) -&gt; g(1) -&gt; f(1) -&gt; g(0) -&gt; stop()\n</pre>\n<p>The following is true:</p>\n<pre class = \"eval\">\nstop.caller === g &amp;&amp; f.caller === g &amp;&amp; g.caller === f\n</pre>\n<p>so if you tried to get the stack trace in the <code>stop()</code> function like this:</p>\n<pre class = \"eval\">\nvar f = stop;\nvar stack = &quot;Stack trace:&quot;;\nwhile (f) {\n  stack += &quot;\\n&quot; + f.name;\n  f = f.caller;\n}\n</pre>\n<p>the loop would never stop.</p>\n<p>The special property <code>__caller__</code>, which returned the activation object of the caller thus allowing to reconstruct the stack, was removed for security reasons.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_5\"><span id = \"Example:_Checking_the_value_of_a_function.27s_caller_property\"></span><span id = \"Example:_Checking_the_value_of_a_function's_caller_property\"></span><h4 class = \"editable\">Example: Checking the value of a function's <code>caller</code> property</h4>\n<p>The following code checks the value a function's <code>caller</code> property.</p>\n<pre class = \"eval\">\nfunction myFunc() {\n   if (myFunc.caller == null) {\n      return (&quot;The function was called from the top!&quot;);\n   } else\n      return (&quot;This function's caller was &quot; + myFunc.caller);\n}\n</pre>\n<p>&nbsp;</p>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Example:_Checking_the_value_of_a_function.27s_caller_property\"></span><span id = \"Example:_Checking_the_value_of_a_function's_caller_property\"></span><h4 class = \"editable\">Example: Checking the value of a function's <code>caller</code> property</h4>\n<p>The following code checks the value a function's <code>caller</code> property.</p>\n<pre class = \"eval\">\nfunction myFunc() {\n   if (myFunc.caller == null) {\n      return (&quot;The function was called from the top!&quot;);\n   } else\n      return (&quot;This function's caller was &quot; + myFunc.caller);\n}\n</pre>\n<p>&nbsp;</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Browser_Support\"></span><h3 class = \"editable\">Browser Support</h3>\n<p>Function.caller is currently supported by all major browsers:&nbsp;Firefox, Safari, Chrome, Opera and IE. &nbsp;<a title = \"http://dl.dropbox.com/u/534786/callertest.html\" class = \" external\" rel = \"external\" href = \"http://dl.dropbox.com/u/534786/callertest.html\" target = \"_blank\">Test page with results</a>.</p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Notes",
			"Examples",
			"Example: Checking the value of a function's caller property",
			"Browser Support"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Constructor",
		"title": "Function.Constructor",
		"_id": "4eea845ba4c86c4dba000051",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a reference to the <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>See <a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\">Object.constructor</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Length",
		"title": "Function.Length",
		"_id": "4eea845ca4c86c4dba000052",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Specifies the number of arguments expected by the function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>length</code> is a property of a function object, and indicates how many arguments the function expects, i.e. the number of formal parameters. By contrast, <code><a title = \"en/JavaScript/Reference/Functions_and_function_scope/arguments/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments/length\">arguments.length</a></code> is local to a function and provides the number of arguments actually passed to the function.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n\r\n          <pre name = \"code\" class = \"js\">console.log((function () {}).length);  /* 0 */\nconsole.log((function (a) {}).length); /* 1 */\nconsole.log((function (a, b) {}).length); /* 2 etc. */</pre>\r\n        \n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Example"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name",
		"title": "Function.Name",
		"_id": "4eea845ea4c86c4dba000053",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The name of the function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The name property returns the name of a function, or an empty string for anonymous functions:</p>\n<pre class = \"eval\">function doSomething() {}\nalert(doSomething.name); // alerts &quot;doSomething&quot;\n</pre>\n<p>Functions created with the syntax <code>new <a title = \"Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a>(...)</code> or just <code><a title = \"Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></code><code>(...)</code> have their name property set to &quot;anonymous&quot; on Firefox and Safari, or to an empty string on Chrome and Opera. This property is not supported on Internet Explorer.</p>\n<p>Note that in these examples anonymous functions are created, so <code>name</code> returns an empty string:</p>\n<pre class = \"eval\">var f = function() { };\nvar object = {\n  someMethod: function() {}\n};\n\nalert(f.name == &quot;&quot;); // true\nalert(object.someMethod.name == &quot;&quot;); // also true\n</pre>\n<p>You can define a function with a name in a <a title = \"En/Core_JavaScript_1.5_Reference/Functions#Function_constructor_vs._function_declaration_vs._function_expression\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Functions#Function_constructor_vs._function_declaration_vs._function_expression\">function expression</a>:</p>\n<pre class = \"eval\">var object = {\n  someMethod: function object_someMethod() {}\n};\nalert(object.someMethod.name); // alerts &quot;object_someMethod&quot;\n\ntry { object_someMethod } catch(e) { alert(e); }\n// ReferenceError: object_someMethod is not defined\n</pre>\n<p>You cannot change the <code>name</code> of a function, this property is read-only:</p>\n<pre class = \"eval\">var object = {\n  // anonymous\n  someMethod: function(){}\n};\nobject.someMethod.name = &quot;someMethod&quot;;\nalert(object.someMethod.name); // empty string, someMethod is anonymous\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<p>You can use <code>obj.constructor.name</code> to check the &quot;class&quot; of an object:</p>\n<pre class = \"eval\">function a()\n{\n}\n\nvar b = new a();\nalert(b.constructor.name); //Alerts &quot;a&quot;\n</pre>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Examples"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/now",
		"title": "Date.now",
		"_id": "4eea8462a4c86c4dba000054",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Introduction\"></span><h2 class = \"editable\">Introduction</h2>\n<p>Returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n\r\n          <pre name = \"code\" class = \"js\">var timeInMs = Date.now();</pre>\r\n        \n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The <code>now</code> method returns the milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now as a <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Number\">number</a>.</p>\n<p>When using <code>now</code> to create timestamps or unique IDs, keep in mind that the resolution may be 15 milliseconds on Windows (see \n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=363258\" class = \"external\" title = \"VERIFIED FIXED - bad millisecond resolution for (new Date).getTime() / Date.now() on Windows\">\nbug 363258</a>\n), so you could end up with several equal values if <code>now</code> is called multiple times within a short time span.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<p>This method was standardized in ECMA-262 5th edition.&nbsp; Engines which have not been updated to support this method can work around the absence of this method using the following shim:</p>\n\r\n          <pre name = \"code\" class = \"js\">if (!Date.now) {\n  Date.now = function now() {\n    return +(new Date);\n  };\n}</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>3</td> <td>5</td> <td>9</td> <td>10.50</td> <td>4</td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div>"
		],
		"sectionNames": [
			"Introduction",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Cross-browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/UTC",
		"title": "Date.UTC",
		"_id": "4eea8465a4c86c4dba000055",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a <code>Date</code> object since January 1, 1970, 00:00:00, universal time.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nDate.UTC(<i>year</i>, <i>month</i>[, <i>date</i>[, <i>hrs</i>[, <i>min</i>[, <i>sec</i>[, <em>ms</em>]]]]])\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>year</code>&nbsp;</dt><dd> A year after 1900. </dd></dl>\n<dl><dt> <code>month</code>&nbsp;</dt><dd> An integer between 0 and 11 representing the month. </dd></dl>\n<dl><dt> <code>date</code>&nbsp;</dt><dd> An integer between 1 and 31 representing the day of the month. </dd></dl>\n<dl><dt> <code>hrs</code>&nbsp;</dt><dd> An integer between 0 and 23 representing the hours. </dd></dl>\n<dl><dt> <code>min</code>&nbsp;</dt><dd> An integer between 0 and 59 representing the minutes. </dd></dl>\n<dl><dt> <code>sec</code>&nbsp;</dt><dd> An integer between 0 and 59 representing the seconds. </dd></dl>\n<dl><dt> <code>ms</code>&nbsp;</dt><dd> An integer between 0 and 999 representing the milliseconds.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>UTC</code> takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the time you specified.\n</p><p>You should specify a full year for the year; for example, 1998. If a year between 0 and 99 is specified, the method converts the year to a year in the 20th century (1900 + year); for example, if you specify 95, the year 1995 is used.\n</p><p>The <code>UTC</code> method differs from the <code>Date</code> constructor in two ways.\n</p>\n<ul><li> <code>Date.UTC</code> uses universal time instead of the local time.\n</li><li> <code>Date.UTC</code> returns a time value as a number instead of creating a <code>Date</code> object.\n</li></ul>\n<p>If a parameter you specify is outside of the expected range, the <code>UTC</code> method updates the other parameters to allow for your number. For example, if you use 15 for month, the year will be incremented by 1 (year + 1), and 3 will be used for the month.\n</p><p>Because <code>UTC</code> is a static method of <code>Date</code>, you always use it as <code>Date.UTC()</code>, rather than as a method of a <code>Date</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Date.UTC\"></span><h4 class = \"editable\"> Example: Using <code>Date.UTC</code> </h4>\n<p>The following statement creates a <code>Date</code> object using GMT instead of local time:\n</p>\n<pre class = \"eval\">gmtDate = new Date(Date.UTC(96, 11, 1, 0, 0, 0));\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Date.UTC\"></span><h4 class = \"editable\"> Example: Using <code>Date.UTC</code> </h4>\n<p>The following statement creates a <code>Date</code> object using GMT instead of local time:\n</p>\n<pre class = \"eval\">gmtDate = new Date(Date.UTC(96, 11, 1, 0, 0, 0));\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/parse\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/parse\">parse</a>\n</p><p><br/>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Date.UTC ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Apply",
		"title": "Function.Apply",
		"_id": "4eea8469a4c86c4dba000056",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Calls a function with a given <code>this</code> value and <code>arguments</code> provided as an array.</p>\n<div class = \"note\"><strong>NOTE:</strong>&nbsp;While the syntax of this function is almost identical to that of&nbsp;<code style = \"font-style: inherit; \"><a href = \"/en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" title = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call()</a></code>, the fundamental difference is that&nbsp;<code style = \"font-style: inherit; \">call()</code>&nbsp;accepts an argument list, while&nbsp;<code style = \"font-style: inherit; \">apply()</code>&nbsp;accepts a single array of arguments.</div>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\" scope = \"row\">Method of <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMA-262 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>fun</em>.apply(<em>thisArg</em>[, <em>argsArray</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 style = \"position: static; z-index: auto; \" class = \"editable\">Parameters</h2>\n<dl> <dt><code>thisArg</code></dt> <dd style = \"position: static; z-index: auto; \"></dd>\n</dl>\n<dl> <dd style = \"position: relative; z-index: 0; \">The value of&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">this</code>&nbsp;provided for the call to&nbsp;<em><code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">fun</code></em>. &nbsp;Note that this may not be the actual value seen by the method: if the method is a function in non-strict mode code,&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">null</code>&nbsp;and&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">undefined</code>&nbsp;will be replaced with the global object, and primitive values will be boxed. <div id = \"WebKit-Editing-Delete-Container\" style = \"-webkit-user-drag: none; -webkit-user-select: none; -webkit-user-modify: none; visibility: hidden; position: absolute; cursor: default; top: 0px; right: 0px; bottom: 0px; left: 0px; \"><img alt = \"\" id = \"WebKit-Editing-Delete-Button\" style = \"position: absolute; z-index: 1000000; top: -15px; left: -17px; width: 30px; height: 30px; visibility: visible;\"/></div> </dd>\n</dl>\n<dl> <dt><code>argsArray</code></dt> <dd>An array like object, specifying the arguments with which <em><code>fun</code></em> should be called, or <code>null</code> or <a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\">undefined</a> if no arguments should be provided to the function.</dd>\n</dl>\n<p>\n<div style = \"border: 0px none ; margin: 10px 0px; padding: 0px 10px; background-color: rgb(254, 244, 156); text-align: center;\"><p style = \"margin: 4px 0px; font-weight: bold;\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a> note</p><p style = \"margin: 4px 0px;\">Starting in JavaScript 1.8.5 (Firefox 4), this method works according to the ECMAScript 5 specification. That is, the arguments can be a generic array-like object instead of an array. See \n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=562448\" class = \"external\" title = \"RESOLVED FIXED - ES5 Function.prototype.apply does not require argArray be either Array or arguments\">\nbug 562448</a>\n for details on this change.</p></div></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>You can assign a different <code>this</code> object when calling an existing function. <code>this</code> refers to the current object, the calling object. With <code>apply</code>, you can write a method once and then inherit it in another object, without having to rewrite the method for the new object.</p>\n<p><code>apply</code> is very similar to <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a></code>, except for the type of arguments it supports. You can use an arguments array instead of a named set of parameters. With <code>apply</code>, you can use an array literal, for example, <code><em>fun</em>.apply(this, ['eat', 'bananas'])</code>, or an <code>Array</code> object, for example, <code><em>fun</em>.apply(this, new Array('eat', 'bananas'))</code>.</p>\n<p>You can also use <code><a title = \"En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a></code> for the <code>argsArray</code> parameter. <code>arguments</code> is a local variable of a function. It can be used for all unspecified arguments of the called object. Thus, you do not have to know the arguments of the called object when you use the <code>apply</code> method. You can use <code>arguments</code> to pass all the arguments to the called object. The called object is then responsible for handling the arguments.</p>\n<p>Since ECMAScript 5th Edition you can also use any kind of object which is array like, so in practice this means it's going to have a property <code>length</code> and integer properties in the range <code>[0...length)</code>. As an example you can now use a <a title = \"en/DOM/NodeList\" rel = \"internal\" href = \"https://developer.mozilla.org/En/DOM/NodeList\">NodeList</a> or a own custom object like <code>{'length': 2, '0': 'eat', '1':&nbsp;'bananas'}</code>.</p>\n<p><div class = \"note\"><strong>Note:</strong>&nbsp;Most browsers, including Chrome 14 and Internet Explorer 9, still do not accept array like objects and will throw an exception.</div>\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Using_apply_to_chain_constructors\"></span><h3 class = \"editable\">Using <code>apply</code> to chain constructors</h3>\n<p>You can use <code>apply</code> to chain constructors for an object, similar to Java. In the following example, the constructor for the <code>Product</code> object is defined with two parameters, <code>name</code> and <code>value</code>. Two other functions <code>Food</code> and <code>Toy</code> invoke <code>Product</code> passing <code>this</code> and <code>arguments</code>. Product initializes the properties name and price, both specialized functions define the category. In this example, the <code>arguments</code> object is fully passed to the product constructor and corresponds to the two defined parameters.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Product(name, price) {\n  this.name = name;\n  this.price = price;\n\n  if (price &lt; 0)\n    throw RangeError('Cannot create product &quot;' + name + '&quot; with a negative price');\n  return this;\n}\n\nfunction Food(name, price) {\n  Product.apply(this, arguments);\n  this.category = 'food';\n}\nFood.prototype = new Product();\n\nfunction Toy(name, price) {\n  Product.apply(this, arguments);\n  this.category = 'toy';\n}\nToy.prototype = new Product();\n\nvar cheese = new Food('feta', 5);\nvar fun = new Toy('robot', 40);</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"apply_and_built-in_functions\"></span><h3 class = \"editable\">apply and built-in functions</h3>\n<p>Clever usage of <code>apply</code> allows you to use built-ins functions for some tasks that otherwise probably would have been written by looping over the array values. As an example here we are going to use Math.max/Math.min to find out the maximum/minimum value in an array.</p>\n\r\n          <pre name = \"code\" class = \"js\">/* min/max number in an array */\nvar numbers = [5, 6, 2, 3, 7];\n\n/* using Math.min/Math.max apply */\nvar max = Math.max.apply(null, numbers); /* This about equal to Math.max(numbers[0], ...) or Math.max(5, 6, ..) */\nvar min = Math.min.apply(null, numbers);\n\n/* vs. simple loop based algorithm */\nmax = -Infinity, min = +Infinity;\n\nfor (var i = 0; i &lt; numbers.length; i++) {\n  if (numbers[i] &gt; max)\n    max = numbers[i];\n  if (numbers[i] &lt; min) \n    min = numbers[i];\n}</pre>\r\n        \n<p>But beware: in using <code>apply</code> this way, you run the risk of exceeding the JavaScript engine's argument length limit. The consequences of applying a function with too many arguments (think more than tens of thousands of arguments) vary across engines, because the limit (indeed even the nature of any excessively-large-stack behavior) is unspecified. Some engines will throw an exception. More perniciously, others will arbitrarily limit the number of arguments actually passed to the applied function. (To illustrate this latter case: if such an engine had a limit of four arguments [actual limits are of course significantly higher], it would be as if the arguments <code>5, 6, 2, 3</code> had been passed to <code>apply</code> in the examples above, rather than the full array.)&nbsp; If your value array might grow into the tens of thousands, use a hybrid strategy: apply your function to chunks of the array at a time:</p>\n\r\n          <pre name = \"code\" class = \"js\">function minOfArray(arr)\n{\n  var min = Infinity;\n  var QUANTUM = 32768;\n  for (var i = 0, len = arr.length; i &lt; len; i += QUANTUM)\n  {\n    var submin = Math.min.apply(null, numbers.slice(i, Math.min(i + QUANTUM, len)));\n    min = Math.min(submin, min);\n  }\n  return min;\n}\n\nvar min = minOfArray([5, 6, 2, 3, 7]);</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Using_apply_to_chain_constructors\"></span><h3 class = \"editable\">Using <code>apply</code> to chain constructors</h3>\n<p>You can use <code>apply</code> to chain constructors for an object, similar to Java. In the following example, the constructor for the <code>Product</code> object is defined with two parameters, <code>name</code> and <code>value</code>. Two other functions <code>Food</code> and <code>Toy</code> invoke <code>Product</code> passing <code>this</code> and <code>arguments</code>. Product initializes the properties name and price, both specialized functions define the category. In this example, the <code>arguments</code> object is fully passed to the product constructor and corresponds to the two defined parameters.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Product(name, price) {\n  this.name = name;\n  this.price = price;\n\n  if (price &lt; 0)\n    throw RangeError('Cannot create product &quot;' + name + '&quot; with a negative price');\n  return this;\n}\n\nfunction Food(name, price) {\n  Product.apply(this, arguments);\n  this.category = 'food';\n}\nFood.prototype = new Product();\n\nfunction Toy(name, price) {\n  Product.apply(this, arguments);\n  this.category = 'toy';\n}\nToy.prototype = new Product();\n\nvar cheese = new Food('feta', 5);\nvar fun = new Toy('robot', 40);</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"apply_and_built-in_functions\"></span><h3 class = \"editable\">apply and built-in functions</h3>\n<p>Clever usage of <code>apply</code> allows you to use built-ins functions for some tasks that otherwise probably would have been written by looping over the array values. As an example here we are going to use Math.max/Math.min to find out the maximum/minimum value in an array.</p>\n\r\n          <pre name = \"code\" class = \"js\">/* min/max number in an array */\nvar numbers = [5, 6, 2, 3, 7];\n\n/* using Math.min/Math.max apply */\nvar max = Math.max.apply(null, numbers); /* This about equal to Math.max(numbers[0], ...) or Math.max(5, 6, ..) */\nvar min = Math.min.apply(null, numbers);\n\n/* vs. simple loop based algorithm */\nmax = -Infinity, min = +Infinity;\n\nfor (var i = 0; i &lt; numbers.length; i++) {\n  if (numbers[i] &gt; max)\n    max = numbers[i];\n  if (numbers[i] &lt; min) \n    min = numbers[i];\n}</pre>\r\n        \n<p>But beware: in using <code>apply</code> this way, you run the risk of exceeding the JavaScript engine's argument length limit. The consequences of applying a function with too many arguments (think more than tens of thousands of arguments) vary across engines, because the limit (indeed even the nature of any excessively-large-stack behavior) is unspecified. Some engines will throw an exception. More perniciously, others will arbitrarily limit the number of arguments actually passed to the applied function. (To illustrate this latter case: if such an engine had a limit of four arguments [actual limits are of course significantly higher], it would be as if the arguments <code>5, 6, 2, 3</code> had been passed to <code>apply</code> in the examples above, rather than the full array.)&nbsp; If your value array might grow into the tens of thousands, use a hybrid strategy: apply your function to chunks of the array at a time:</p>\n\r\n          <pre name = \"code\" class = \"js\">function minOfArray(arr)\n{\n  var min = Infinity;\n  var QUANTUM = 32768;\n  for (var i = 0, len = arr.length; i &lt; len; i += QUANTUM)\n  {\n    var submin = Math.min.apply(null, numbers.slice(i, Math.min(i + QUANTUM, len)));\n    min = Math.min(submin, min);\n  }\n  return min;\n}\n\nvar min = minOfArray([5, 6, 2, 3, 7]);</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h2 class = \"editable\">See Also</h2>\n<p><a title = \"/en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a>, <a title = \"/en/JavaScript/Reference/Global_Objects/Function/bind\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind\">bind</a>, <a title = \"en/JavaScript/Reference/Functions_and_function_scope/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Using apply to chain constructors",
			"apply and built-in functions",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Call",
		"title": "Function.Call",
		"_id": "4eea846aa4c86c4dba000057",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Calls a function with a given <code>this</code> value and arguments provided individually.</p>\n<div class = \"note\"><strong>NOTE:</strong> While the syntax of this function is almost identical to that of&nbsp;<code><a title = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply()</a></code>, the fundamental difference is that <code>call()</code> accepts an argument list, while <code>apply()</code> accepts a single array of arguments.</div>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>fun</em>.call(<em>thisArg</em>[, <em>arg1</em>[, <em>arg2</em>[, ...]]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 style = \"position: static; z-index: auto; \" class = \"editable\">Parameters</h2>\n<dl> <dt><code>thisArg</code></dt> <dd>The value of <code>this</code> provided for the call to&nbsp;<em><code>fun</code></em>. &nbsp;Note that this may not be the actual value seen by the method: if the method is a function in <a title = \"en/JavaScript/Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/Strict_mode\">non-strict mode</a> code, <code>null</code> and <code>undefined</code> will be replaced with the global object, and primitive values will be boxed.</dd>\n</dl>\n<dl> <dt><code>arg1, arg2, ...</code></dt> <dd>Arguments for the object.</dd>\n</dl></div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>You can assign a different <code>this</code> object when calling an existing function. <code>this</code> refers to the current object, the calling object.</p>\n<p>With <code>call</code>, you can write a method once and then inherit it in another object, without having to rewrite the method for the new object.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Using_call_to_chain_constructors_for_an_object\"></span><h3 class = \"editable\">Using <code>call</code> to chain constructors for an object</h3>\n<p>You can use <code>call</code> to chain constructors for an object, similar to Java.&nbsp;In the following example, the constructor for the&nbsp;<code>Product</code>&nbsp;object is defined with two parameters, <code>name</code>&nbsp;and&nbsp;<code>value</code>. Two other functions&nbsp;<code>Food</code>&nbsp;and&nbsp;<code>Toy</code>&nbsp;invoke&nbsp;<code>Product</code>&nbsp;passing&nbsp;<code>this</code>&nbsp;and&nbsp;<code>name</code>&nbsp;and&nbsp;<code>value</code>. Product initializes the properties name and price, both specialized functions define the category.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Product(name, price) {\n  this.name = name;\n  this.price = price;\n\n  if (price &lt; 0)\n    throw RangeError('Cannot create product &quot;' + name + '&quot; with a negative price');\n  return this;\n}\n\nfunction Food(name, price) {\n  Product.call(this, name, price);\n  this.category = 'food';\n}\nFood.prototype = new Product();\n\nfunction Toy(name, price) {\n  Product.call(this, name, price);\n  this.category = 'toy';\n}\nToy.prototype = new Product();\n\nvar cheese = new Food('feta', 5);\nvar fun = new Toy('robot', 40);</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Using_call_to_invoke_an_anonymous_function\"></span><h3 class = \"editable\">Using <code>call</code> to invoke an anonymous function</h3>\n<p>In this purely constructed example, we create anonymous function and use <code>call</code> to invoke it on every object in an array. The main purpose of the anonymous function here is to add a print function to every object, which is able to print the right index of the object in the array. Passing the object as <code>this</code> value was not strictly necessary, but is done for explanatory purpose.</p>\n\r\n          <pre name = \"code\" class = \"js\">var animals = [\n  {species: 'Lion', name: 'King'},\n  {species: 'Whale', name: 'Fail'}\n];\n\nfor (var i = 0; i &lt; animals.length; i++) {\n  (function (i) { \n    this.print = function () { \n      console.log('#' + i  + ' ' + this.species + ': ' + this.name); \n    } \n  }).call(animals[i], i);\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Using_call_to_chain_constructors_for_an_object\"></span><h3 class = \"editable\">Using <code>call</code> to chain constructors for an object</h3>\n<p>You can use <code>call</code> to chain constructors for an object, similar to Java.&nbsp;In the following example, the constructor for the&nbsp;<code>Product</code>&nbsp;object is defined with two parameters, <code>name</code>&nbsp;and&nbsp;<code>value</code>. Two other functions&nbsp;<code>Food</code>&nbsp;and&nbsp;<code>Toy</code>&nbsp;invoke&nbsp;<code>Product</code>&nbsp;passing&nbsp;<code>this</code>&nbsp;and&nbsp;<code>name</code>&nbsp;and&nbsp;<code>value</code>. Product initializes the properties name and price, both specialized functions define the category.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Product(name, price) {\n  this.name = name;\n  this.price = price;\n\n  if (price &lt; 0)\n    throw RangeError('Cannot create product &quot;' + name + '&quot; with a negative price');\n  return this;\n}\n\nfunction Food(name, price) {\n  Product.call(this, name, price);\n  this.category = 'food';\n}\nFood.prototype = new Product();\n\nfunction Toy(name, price) {\n  Product.call(this, name, price);\n  this.category = 'toy';\n}\nToy.prototype = new Product();\n\nvar cheese = new Food('feta', 5);\nvar fun = new Toy('robot', 40);</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Using_call_to_invoke_an_anonymous_function\"></span><h3 class = \"editable\">Using <code>call</code> to invoke an anonymous function</h3>\n<p>In this purely constructed example, we create anonymous function and use <code>call</code> to invoke it on every object in an array. The main purpose of the anonymous function here is to add a print function to every object, which is able to print the right index of the object in the array. Passing the object as <code>this</code> value was not strictly necessary, but is done for explanatory purpose.</p>\n\r\n          <pre name = \"code\" class = \"js\">var animals = [\n  {species: 'Lion', name: 'King'},\n  {species: 'Whale', name: 'Fail'}\n];\n\nfor (var i = 0; i &lt; animals.length; i++) {\n  (function (i) { \n    this.print = function () { \n      console.log('#' + i  + ' ' + this.species + ': ' + this.name); \n    } \n  }).call(animals[i], i);\n}</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h2 class = \"editable\">See Also</h2>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Using call to chain constructors for an object",
			"Using call to invoke an anonymous function",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToSource",
		"title": "Function.ToSource",
		"_id": "4eea846ca4c86c4dba000058",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the source code for the function.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<pre class = \"eval\">var sourceString = <em>function</em>.toSource();\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>toSource</code> method returns the following values:\n</p><p>\n</p>\n<ul><li> For the built-in <code>Function</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:\n</li></ul>\n<pre class = \"eval\">function Function() {\n   [native code]\n}\n</pre>\n<ul><li> For custom functions, <code>toSource</code> returns the JavaScript source that defines the object as a string.\n</li></ul>\n<p>This method is usually called internally by JavaScript and not explicitly in code. You can call <code>toSource</code> while debugging to examine the contents of an object.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<ul><li><a title = \"en/JavaScript/Reference/Global_Objects/Function/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toString\">toString</a>\n</li><li><a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.prototype.valueOf</a>\n</li></ul> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/ToString",
		"title": "Function.ToString",
		"_id": "4eea846da4c86c4dba000059",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Returns a string representing the source code of the function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><var>function</var>.toString(<var>indentation</var>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>indentation</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> The amount of spaces to indent the string representation of the source code. If <code>indentation</code> is less than or equal to <code>-1</code>, most unnecessary spaces are removed.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></code> object overrides the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code> method inherited from <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></code>; it does not inherit <code>Object.prototype.toString</code>. For <code>Function</code> objects, the <code>toString</code> method returns a string representation of the object in the form of a function declaration.&nbsp; That is, toString decompiles the function, and the string returned includes the <code>function</code> keyword, the argument list, curly braces, and the source of the function body.</p>\n<p>JavaScript calls the <code>toString</code> method automatically when a <code>Function</code> is to be represented as a text value, e.g. when a function is concatenated with a string.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<p><code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a></code></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear",
		"title": "Date.getFullYear",
		"_id": "4eea8475a4c86c4dba00005a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the year of the specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetFullYear()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getFullYear</code> is an absolute number. For dates between the years 1000 and 9999, <code>getFullYear</code> returns a four-digit number, for example, 1995. Use this function to make sure a year is compliant with years after 2000.\n</p><p>Use this method instead of the <code>getYear</code> method.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getFullYear\"></span><h4 class = \"editable\"> Example: Using <code>getFullYear</code> </h4>\n<p>The following example assigns the four-digit value of the current year to the variable <code>yr</code>.\n</p>\n<pre>\nvar today = new Date();\nvar yr = today.getFullYear(); \n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getFullYear\"></span><h4 class = \"editable\"> Example: Using <code>getFullYear</code> </h4>\n<p>The following example assigns the four-digit value of the current year to the variable <code>yr</code>.\n</p>\n<pre>\nvar today = new Date();\nvar yr = today.getFullYear(); \n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getYear\">getYear</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\">getUTCFullYear</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear\">setFullYear</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getFullYear ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear",
		"title": "Date.setFullYear",
		"_id": "4eea8476a4c86c4dba00005b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the full year for a specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetFullYear(<em>yearValue</em>[, <em>monthValue</em>[, <em>dayValue</em>]])\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>yearValue</code>&nbsp;</dt><dd> An integer specifying the numeric value of the year, for example, 1995.\n</dd></dl>\n<dl><dt> <code>monthValue</code>&nbsp;</dt><dd> An integer between 0 and 11 representing the months January through December.\n</dd></dl>\n<dl><dt> <code>dayValue</code>&nbsp;</dt><dd> An integer between 1 and 31 representing the day of the month. If you specify the dayValue parameter, you must also specify the monthValue. </dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>monthValue</code> and <code>dayValue</code> parameters, the values returned from the <code>getMonth</code> and <code>getDate</code> methods are used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setFullYear</code> attempts to update the other parameters and the date information in the <code>Date</code> object accordingly. For example, if you specify 15 for <code>monthValue</code>, the year is incremented by 1 (year + 1), and 3 is used for the month.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setFullYear\"></span><h4 class = \"editable\"> Example: Using <code>setFullYear</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setFullYear(1997);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setFullYear\"></span><h4 class = \"editable\"> Example: Using <code>setFullYear</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setFullYear(1997);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\">getUTCFullYear</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear\">setUTCFullYear</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setYear\">setYear</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setFullYear ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear",
		"title": "Date.getUTCFullYear",
		"_id": "4eea8477a4c86c4dba00005c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the year in the specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetUTCFullYear()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getUTCFullYear</code> is an absolute number that is compliant with year-2000, for example, 1995.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getUTCFullYear\"></span><h4 class = \"editable\"> Example: Using <code>getUTCFullYear</code> </h4>\n<p>The following example assigns the four-digit value of the current year to the variable <code>yr</code>.\n</p>\n<pre>\nvar yr;\nToday = new Date();\nyr = Today.getUTCFullYear(); \n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getUTCFullYear\"></span><h4 class = \"editable\"> Example: Using <code>getUTCFullYear</code> </h4>\n<p>The following example assigns the four-digit value of the current year to the variable <code>yr</code>.\n</p>\n<pre>\nvar yr;\nToday = new Date();\nyr = Today.getUTCFullYear(); \n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear\">getFullYear</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear\">setFullYear</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getUTCFullYear ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCFullYear",
		"title": "Date.setUTCFullYear",
		"_id": "4eea847aa4c86c4dba00005d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the full year for a specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetUTCFullYear(<em>yearValue</em>[, <em>monthValue</em>[, <em>dayValue</em>]])\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>yearValue</code>&nbsp;</dt><dd> An integer specifying the numeric value of the year, for example, 1995. </dd></dl>\n<dl><dt> <code>monthValue</code>&nbsp;</dt><dd> An integer between 0 and 11 representing the months January through December. </dd></dl>\n<dl><dt> <code>dayValue</code>&nbsp;</dt><dd> An integer between 1 and 31 representing the day of the month. If you specify the <code>dayValue</code> parameter, you must also specify the <code>monthValue</code>.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>monthValue</code> and <code>dayValue</code> parameters, the values returned from the <code>getMonth</code> and <code>getDate</code> methods are used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setUTCFullYear</code> attempts to update the other parameters and the date information in the <code>Date</code> object accordingly. For example, if you specify 15 for <code>monthValue</code>, the year is incremented by 1 (year + 1), and 3 is used for the month.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setUTCFullYear\"></span><h4 class = \"editable\"> Example: Using <code>setUTCFullYear</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCFullYear(1997);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setUTCFullYear\"></span><h4 class = \"editable\"> Example: Using <code>setUTCFullYear</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCFullYear(1997);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCFullYear\">getUTCFullYear</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setFullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setFullYear\">setFullYear</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setUTCFullYear ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/constructor",
		"title": "Date.constructor",
		"_id": "4eea847ba4c86c4dba00005e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a reference to the <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>See <a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\">Object.constructor</a>.\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent",
		"title": "Object.Parent",
		"_id": "4eea847da4c86c4dba00005f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Points to an object's context.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.__parent__</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>For top-level objects, this is the e.g. window.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a class = \" external\" title = \"http://whereswalden.com/2010/05/07/spidermonkey-change-du-jour-the-special-__parent__-property-has-been-removed/\" rel = \"external\" href = \"http://whereswalden.com/2010/05/07/spidermonkey-change-du-jour-the-special-__parent__-property-has-been-removed/\" target = \"_blank\">SpiderMonkey change du jour: the special __parent__ property has been removed</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto",
		"title": "Object.Proto",
		"_id": "4eea847fa4c86c4dba000060",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Refers to the prototype of the object, which may be an object or <code>null</code>&nbsp;(which usually means the object is <code>Object.prototype</code>, which has no prototype). &nbsp;It is sometimes used to implement prototype-inheritance based property lookup.</p>\n<p>This property is deprecated and should not be used in new code: use <code><a title = \"en/JavaScript/Reference/Global Objects/Object/GetPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf\">Object.getPrototypeOf</a></code>&nbsp;instead.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>var proto = <em>obj</em>.__proto__;</code></p>\n<p>Note: this is two underscores, followed by the five characters &quot;proto&quot;, followed by two more underscores.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>When an object is created, its <code>__proto__</code> property is set to constructing function's <code>prototype</code> property. For example <code>var fred = new Employee();</code> will cause <code>fred.__proto__ = Employee.prototype;</code>.</p>\n<p>This is used at runtime to look up properties which are not declared in the object directly. E.g. when <code>fred.doSomething()</code> is executed and <code>fred</code> does not contain a <code>doSomething</code>, <code>fred.__proto__</code> is checked, which points to <code>Employee.prototype</code>, which contains a <code>doSomething</code>, i.e. <code>fred.__proto__.doSomething()</code> is invoked.</p>\n<p>Note that <code><em>__proto__</em></code> is a property of the instances, whereas <code>prototype</code> is a property of their constructor functions.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n<p>This example demonstrates that the <code>__proto__</code> property can be changed to point to a different object after initial construction. This change will alter the lookup results for object properties. This example also illustrates that all objects have <code>__proto__</code>, including the objects bound to the <code>prototype</code> property of functions. The object <code> anOnion</code> will have a <code>__proto__</code> property equal to <code>Plant.prototype</code>; if we write <code>anOnion.foo</code>, then we will lookup <code>foo</code> in the <code>anOnion</code> object first, then in <code>Plant.prototype</code> (the value of <code>anOnion.__proto__</code>), then in <code>Lifeform.prototype</code> (the value of <code>Plant.prototype</code> set by the call to <code>extend</code><code>()</code>), and finally in <code>Lifeform.__proto__</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">function extend(child, supertype) {\n   child.prototype.__proto__ = supertype.prototype;\n}\n\nextend(Animal, Lifeform);\nextend(Plant, Lifeform);\n\nvar anOnion = new Plant();</pre>\r\n        \n<p>However, this only applies to <a title = \"en/JavaScript/Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\">extensible</a> objects:&nbsp;a non-extensible object's&nbsp;<code style = \"color: inherit; font-weight: inherit; \">__proto__</code>&nbsp;property (more generally, the object's prototype) cannot be changed:</p>\n\r\n          <pre name = \"code\" class = \"js\">var obj = {};\nObject.preventExtensions(obj);\n\nobj.__proto__ = {}; // throws a TypeError</pre>\r\n        \n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Example"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDate",
		"title": "Date.getDate",
		"_id": "4eea847fa4c86c4dba000061",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the day of the month for the specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetDate()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getDate</code> is an integer between 1 and 31.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getDate\"></span><h4 class = \"editable\"> Example: Using <code>getDate</code> </h4>\n<p>The second statement below assigns the value 25 to the variable <code>day</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)\nday = Xmas95.getDate() \n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getDate\"></span><h4 class = \"editable\"> Example: Using <code>getDate</code> </h4>\n<p>The second statement below assigns the value 25 to the variable <code>day</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)\nday = Xmas95.getDate() \n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDate\">getUTCDate</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDay\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDay\">getUTCDay</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setDate\">setDate</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getDate ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDay",
		"title": "Date.getDay",
		"_id": "4eea8482a4c86c4dba000062",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the day of the week for the specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetDay()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getDay</code> is an integer corresponding to the day of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getDay\"></span><h4 class = \"editable\"> Example: Using <code>getDay</code> </h4>\n<p>The second statement below assigns the value 1 to <code>weekday</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>. December 25, 1995, is a Monday.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;);\nweekday = Xmas95.getDay();\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getDay\"></span><h4 class = \"editable\"> Example: Using <code>getDay</code> </h4>\n<p>The second statement below assigns the value 1 to <code>weekday</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>. December 25, 1995, is a Monday.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;);\nweekday = Xmas95.getDay();\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDay\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDay\">getUTCDay</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setDate\">setDate</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getDay ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getHours",
		"title": "Date.getHours",
		"_id": "4eea8485a4c86c4dba000063",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the hour for the specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetHours()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getHours</code> is an integer between 0 and 23.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getHours\"></span><h4 class = \"editable\"> Example: Using <code>getHours</code> </h4>\n<p>The second statement below assigns the value 23 to the variable <code>hours</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)\nhours = Xmas95.getHours() \n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getHours\"></span><h4 class = \"editable\"> Example: Using <code>getHours</code> </h4>\n<p>The second statement below assigns the value 23 to the variable <code>hours</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)\nhours = Xmas95.getHours() \n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCHours\">getUTCHours</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setHours\">setHours</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getHours ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMilliseconds",
		"title": "Date.getMilliseconds",
		"_id": "4eea848fa4c86c4dba000064",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the milliseconds in the specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetMilliseconds()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getMilliseconds</code> is a number between 0 and 999.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getMilliseconds\"></span><h4 class = \"editable\"> Example: Using <code>getMilliseconds</code> </h4>\n<p>The following example assigns the milliseconds portion of the current time to the variable <code>ms</code>.\n</p>\n<pre>\nvar ms;\nToday = new Date();\nms = Today.getMilliseconds(); \n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getMilliseconds\"></span><h4 class = \"editable\"> Example: Using <code>getMilliseconds</code> </h4>\n<p>The following example assigns the milliseconds portion of the current time to the variable <code>ms</code>.\n</p>\n<pre>\nvar ms;\nToday = new Date();\nms = Today.getMilliseconds(); \n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds\">getUTCMilliseconds</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMilliseconds\">setMilliseconds</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getMilliseconds ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMinutes",
		"title": "Date.getMinutes",
		"_id": "4eea848fa4c86c4dba000065",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the minutes in the specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetMinutes()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getMinutes</code> is an integer between 0 and 59.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getMinutes\"></span><h4 class = \"editable\"> Example: Using <code>getMinutes</code> </h4>\n<p>The second statement below assigns the value 15 to the variable <code>minutes</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)\nminutes = Xmas95.getMinutes()\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getMinutes\"></span><h4 class = \"editable\"> Example: Using <code>getMinutes</code> </h4>\n<p>The second statement below assigns the value 15 to the variable <code>minutes</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)\nminutes = Xmas95.getMinutes()\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMinutes\">getUTCMinutes</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMinutes\">setMinutes</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getMinutes ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMonth",
		"title": "Date.getMonth",
		"_id": "4eea8493a4c86c4dba000066",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the month in the specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetMonth()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getMonth</code> is an integer between 0 and 11. 0 corresponds to January, 1 to February, and so on.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getMonth\"></span><h4 class = \"editable\"> Example: Using <code>getMonth</code> </h4>\n<p>The second statement below assigns the value 11 to the variable <code>month</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)\nmonth = Xmas95.getMonth() \n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getMonth\"></span><h4 class = \"editable\"> Example: Using <code>getMonth</code> </h4>\n<p>The second statement below assigns the value 11 to the variable <code>month</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)\nmonth = Xmas95.getMonth() \n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMonth\">getUTCMonth</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMonth\">setMonth</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getMonth ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getSeconds",
		"title": "Date.getSeconds",
		"_id": "4eea8497a4c86c4dba000067",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the seconds in the specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetSeconds()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getSeconds</code> is an integer between 0 and 59.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getSeconds\"></span><h4 class = \"editable\"> Example: Using <code>getSeconds</code> </h4>\n<p>The second statement below assigns the value 30 to the variable <code>secs</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:30&quot;)\nsecs = Xmas95.getSeconds()\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getSeconds\"></span><h4 class = \"editable\"> Example: Using <code>getSeconds</code> </h4>\n<p>The second statement below assigns the value 30 to the variable <code>secs</code>, based on the value of the <code>Date</code> object <code>Xmas95</code>.\n</p>\n<pre>\nXmas95 = new Date(&quot;December 25, 1995 23:15:30&quot;)\nsecs = Xmas95.getSeconds()\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCSeconds\">getUTCSeconds</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setSeconds\">setSeconds</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getSeconds ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime",
		"title": "Date.getTime",
		"_id": "4eea849aa4c86c4dba000068",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the numeric value corresponding to the time for the specified date according to universal time.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> getTime() </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The value returned by the <code>getTime</code> method is the number of milliseconds since 1 January 1970 00:00:00 UTC. You can use this method to help assign a date and time to another <code>Date</code> object.</p>\n<p>This method is functionally equivalent to the <a title = \"en/JavaScript/Reference/Global_Objects/Date/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/valueOf\">valueOf</a> method.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Examples\"></span><span id = \"Using_getTime_for_copying_dates\"></span><h4 class = \"editable\">Using getTime for copying dates</h4>\n<p>Constructing a date object with the identical time value.</p>\n\r\n          <pre name = \"code\" class = \"js\">var birthday = new Date(1994, 12, 10);\nvar copy = new Date();\ncopy.setTime(birthday.getTime());</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Examples\"></span><span id = \"Measuring_execution_time\"></span><h4 class = \"editable\">Measuring execution time</h4>\n<p>Subtracting two subsequent getTime calls on newly generated Date objects, give the time span between these two calls. This can be used to calculate the executing time of some operations.</p>\n\r\n          <pre name = \"code\" class = \"js\">var end, start;\n\nstart = new Date();\nfor (var i = 0; i &lt; 1000; i++)\n  Math.sqrt(i);\nend = new Date();\n\nconsole.log(&quot;Operation took &quot; + (end.getTime() - start.getTime()) + &quot; msec&quot;);</pre>\r\n        </div></div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><span id = \"Using_getTime_for_copying_dates\"></span><h4 class = \"editable\">Using getTime for copying dates</h4>\n<p>Constructing a date object with the identical time value.</p>\n\r\n          <pre name = \"code\" class = \"js\">var birthday = new Date(1994, 12, 10);\nvar copy = new Date();\ncopy.setTime(birthday.getTime());</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Examples\"></span><span id = \"Measuring_execution_time\"></span><h4 class = \"editable\">Measuring execution time</h4>\n<p>Subtracting two subsequent getTime calls on newly generated Date objects, give the time span between these two calls. This can be used to calculate the executing time of some operations.</p>\n\r\n          <pre name = \"code\" class = \"js\">var end, start;\n\nstart = new Date();\nfor (var i = 0; i &lt; 1000; i++)\n  Math.sqrt(i);\nend = new Date();\n\nconsole.log(&quot;Operation took &quot; + (end.getTime() - start.getTime()) + &quot; msec&quot;);</pre>\r\n        </div>",
			"<div id = \"section_8\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCHours\">getUTCHours</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Date/setTime\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setTime\">setTime</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Date/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/valueOf\">valueOf</a></p> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Using getTime for copying dates",
			"Measuring execution time",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset",
		"title": "Date.getTimezoneOffset",
		"_id": "4eea849fa4c86c4dba000069",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the time-zone offset from UTC, in minutes, for the current locale.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> getTimezoneOffset() </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The time-zone offset is the difference, in minutes, between UTC&nbsp;and local time. Note that this means that the offset is positive if the local timezone is behind UTC&nbsp;and negative if it is ahead.&nbsp; For example, if your time zone is UTC+10 (Australian Eastern Standard Time), -600 will be returned. Daylight savings time prevents this value from being a constant even for a given locale</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getTimezoneOffset\"></span><h4 class = \"editable\">Example: Using <code>getTimezoneOffset</code></h4>\n<pre>x = new Date()\ncurrentTimeZoneOffsetInHours = x.getTimezoneOffset()/60\n</pre>\n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getTimezoneOffset\"></span><h4 class = \"editable\">Example: Using <code>getTimezoneOffset</code></h4>\n<pre>x = new Date()\ncurrentTimeZoneOffsetInHours = x.getTimezoneOffset()/60\n</pre>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using getTimezoneOffset"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDate",
		"title": "Date.getUTCDate",
		"_id": "4eea849fa4c86c4dba00006a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the day (date) of the month in the specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetUTCDate()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getUTCDate</code> is an integer between 1 and 31.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getUTCDate\"></span><h4 class = \"editable\"> Example: Using <code>getUTCDate</code> </h4>\n<p>The following example assigns the day portion of the current date to the variable <code>d</code>.\n</p>\n<pre>\nvar d;\nToday = new Date();\nd = Today.getUTCDate(); \n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getUTCDate\"></span><h4 class = \"editable\"> Example: Using <code>getUTCDate</code> </h4>\n<p>The following example assigns the day portion of the current date to the variable <code>d</code>.\n</p>\n<pre>\nvar d;\nToday = new Date();\nd = Today.getUTCDate(); \n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDate\">getDate</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDay\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDay\">getUTCDay</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCDate\">setUTCDate</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getUTCDate ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDay",
		"title": "Date.getUTCDay",
		"_id": "4eea84a3a4c86c4dba00006b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the day of the week in the specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetUTCDay()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getUTCDay</code> is an integer corresponding to the day of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getUTCDay\"></span><h4 class = \"editable\"> Example: Using <code>getUTCDay</code> </h4>\n<p>The following example assigns the weekday portion of the current date to the variable <code>weekday</code>.\n</p>\n<pre>\nvar weekday;\nToday = new Date()\nweekday = Today.getUTCDay()\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getUTCDay\"></span><h4 class = \"editable\"> Example: Using <code>getUTCDay</code> </h4>\n<p>The following example assigns the weekday portion of the current date to the variable <code>weekday</code>.\n</p>\n<pre>\nvar weekday;\nToday = new Date()\nweekday = Today.getUTCDay()\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getDay\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDay\">getDay</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDate\">getUTCDate</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCDate\">setUTCDate</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getUTCDay ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCHours",
		"title": "Date.getUTCHours",
		"_id": "4eea84a6a4c86c4dba00006c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the hours in the specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetUTCHours\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getUTCHours</code> is an integer between 0 and 23.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getUTCHours\"></span><h4 class = \"editable\"> Example: Using <code>getUTCHours</code> </h4>\n<p>The following example assigns the hours portion of the current time to the variable <code>hrs</code>.\n</p>\n<pre>\nvar hrs;\nToday = new Date();\nhrs = Today.getUTCHours();\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getUTCHours\"></span><h4 class = \"editable\"> Example: Using <code>getUTCHours</code> </h4>\n<p>The following example assigns the hours portion of the current time to the variable <code>hrs</code>.\n</p>\n<pre>\nvar hrs;\nToday = new Date();\nhrs = Today.getUTCHours();\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getHours\">getHours</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCHours\">setUTCHours</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getUTCHours ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds",
		"title": "Date.getUTCMilliseconds",
		"_id": "4eea84a7a4c86c4dba00006d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the milliseconds in the specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetUTCMilliseconds()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getUTCMilliseconds</code> is an integer between 0 and 999.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n</div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getUTCMilliseconds_.3D\"></span><h3 class = \"editable\"> Example: Using <code>getUTCMilliseconds</code> =</h3>\n<p>The following example assigns the milliseconds portion of the current time to the variable <code>ms</code>.\n</p>\n<pre>\nvar ms;\nToday = new Date();\nms = Today.getUTCMilliseconds();\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMilliseconds\">getMilliseconds</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds\">setUTCmilliseconds</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getUTCMilliseconds =",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMinutes",
		"title": "Date.getUTCMinutes",
		"_id": "4eea84aaa4c86c4dba00006e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the minutes in the specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetUTCMinutes()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getUTCMinutes</code> is an integer between 0 and 59.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getUTCMinutes\"></span><h4 class = \"editable\"> Example: Using <code>getUTCMinutes</code> </h4>\n<p>The following example assigns the minutes portion of the current time to the variable <code>min</code>.\n</p>\n<pre>\nvar min;\nToday = new Date();\nmin = Today.getUTCMinutes();\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getUTCMinutes\"></span><h4 class = \"editable\"> Example: Using <code>getUTCMinutes</code> </h4>\n<p>The following example assigns the minutes portion of the current time to the variable <code>min</code>.\n</p>\n<pre>\nvar min;\nToday = new Date();\nmin = Today.getUTCMinutes();\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMinutes\">getMinutes</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMinutes\">setUTCMinutes</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getUTCMinutes ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMonth",
		"title": "Date.getUTCMonth",
		"_id": "4eea84aca4c86c4dba00006f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the month of the specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetUTCMonth()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getUTCMonth</code> is an integer between 0 and 11 corresponding to the month. 0 for January, 1 for February, 2 for March, and so on.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getUTCMonth\"></span><h4 class = \"editable\"> Example: Using <code>getUTCMonth</code> </h4>\n<p>The following example assigns the month portion of the current date to the variable <code>mon</code>.\n</p>\n<pre>\nvar mon;\nToday = new Date();\nmon = Today.getUTCMonth();\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getUTCMonth\"></span><h4 class = \"editable\"> Example: Using <code>getUTCMonth</code> </h4>\n<p>The following example assigns the month portion of the current date to the variable <code>mon</code>.\n</p>\n<pre>\nvar mon;\nToday = new Date();\nmon = Today.getUTCMonth();\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMonth\">getMonth</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMonth\">setUTCMonth</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getUTCMonth ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCSeconds",
		"title": "Date.getUTCSeconds",
		"_id": "4eea84ada4c86c4dba000070",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the seconds in the specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetUTCSeconds()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value returned by <code>getUTCSeconds</code> is an integer between 0 and 59.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_getUTCSeconds\"></span><h4 class = \"editable\"> Example: Using <code>getUTCSeconds</code> </h4>\n<p>The following example assigns the seconds portion of the current time to the variable <code>sec</code>.\n</p>\n<pre>\nvar sec;\nToday = new Date();\nsec = Today.getUTCSeconds();\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_getUTCSeconds\"></span><h4 class = \"editable\"> Example: Using <code>getUTCSeconds</code> </h4>\n<p>The following example assigns the seconds portion of the current time to the variable <code>sec</code>.\n</p>\n<pre>\nvar sec;\nToday = new Date();\nsec = Today.getUTCSeconds();\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getSeconds\">getSeconds</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCSeconds\">setUTCSeconds</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using getUTCSeconds ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getYear",
		"title": "Date.getYear",
		"_id": "4eea84b1a4c86c4dba000071",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the year in the specified date according to local time.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ngetYear()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>getYear</code> is no longer used and has been replaced by the <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/getFullYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/getFullYear\">getFullYear</a> method.\n</p><p>The <code>getYear</code> method returns the year minus 1900; thus:\n</p>\n<ul><li> For years greater than or equal to 2000, the value returned by <code>getYear</code> is 100 or greater. For example, if the year is 2026, <code>getYear</code> returns 126.\n</li></ul>\n<ul><li> For years between and including 1900 and 1999, the value returned by <code>getYear</code> is between 0 and 99. For example, if the year is 1976, <code>getYear</code> returns 76.\n</li></ul>\n<ul><li> For years less than 1900, the value returned by <code>getYear</code> is less than 0. For example, if the year is 1800, <code>getYear</code> returns -100.\n</li></ul>\n<p>To take into account years before and after 2000, you should use <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/getFullYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/getFullYear\">getFullYear</a></code> instead of <code>getYear</code> so that the year is specified in full.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Backward_Compatibility\"></span><h3 class = \"editable\"> Backward Compatibility </h3>\n<div id = \"section_6\"><span id = \"JavaScript_1.2_and_earlier\"></span><h4 class = \"editable\"> JavaScript 1.2 and earlier </h4>\n<p>The <code>getYear</code> method returns either a 2-digit or 4-digit year:\n</p>\n<ul><li> For years between and including 1900 and 1999, the value returned by <code>getYear</code> is the year minus 1900. For example, if the year is 1976, the value returned is 76.\n</li></ul>\n<ul><li> For years less than 1900 or greater than 1999, the value returned by <code>getYear</code> is the four-digit year. For example, if the year is 1856, the value returned is 1856. If the year is 2026, the value returned is 2026.\n</li></ul>\n</div></div>",
			"<div id = \"section_6\"><span id = \"JavaScript_1.2_and_earlier\"></span><h4 class = \"editable\"> JavaScript 1.2 and earlier </h4>\n<p>The <code>getYear</code> method returns either a 2-digit or 4-digit year:\n</p>\n<ul><li> For years between and including 1900 and 1999, the value returned by <code>getYear</code> is the year minus 1900. For example, if the year is 1976, the value returned is 76.\n</li></ul>\n<ul><li> For years less than 1900 or greater than 1999, the value returned by <code>getYear</code> is the four-digit year. For example, if the year is 1856, the value returned is 1856. If the year is 2026, the value returned is 2026.\n</li></ul>\n</div>",
			"<div id = \"section_7\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_8\"><span id = \"Example:_Years_between_1900_and_1999\"></span><h4 class = \"editable\"> Example: Years between 1900 and 1999 </h4>\n<p>The second statement assigns the value 95 to the variable <code>year</code>.\n</p>\n<pre>\nXmas = new Date(&quot;December 25, 1995 23:15:00&quot;)\nyear = Xmas.getYear() // returns 95\n</pre>\n</div><div id = \"section_9\"><span id = \"Example:_Years_above_1999\"></span><h4 class = \"editable\"> Example: Years above 1999 </h4>\n<p>The second statement assigns the value 100 to the variable <code>year</code>.\n</p>\n<pre>\nXmas = new Date(&quot;December 25, 2000 23:15:00&quot;)\nyear = Xmas.getYear() // returns 100\n</pre>\n</div><div id = \"section_10\"><span id = \"Example:_Years_below_1900\"></span><h4 class = \"editable\"> Example: Years below 1900 </h4>\n<p>The second statement assigns the value -100 to the variable <code>year</code>.\n</p>\n<pre>\nXmas = new Date(&quot;December 25, 1800 23:15:00&quot;)\nyear = Xmas.getYear() // returns -100\n</pre>\n</div><div id = \"section_11\"><span id = \"Example:_Setting_and_getting_a_year_between_1900_and_1999\"></span><h4 class = \"editable\"> Example: Setting and getting a year between 1900 and 1999 </h4>\n<p>The second statement assigns the value 95 to the variable <code>year</code>, representing the year 1995.\n</p>\n<pre>\nXmas.setYear(95)\nyear = Xmas.getYear() // returns 95 \n</pre>\n</div></div>",
			"<div id = \"section_8\"><span id = \"Example:_Years_between_1900_and_1999\"></span><h4 class = \"editable\"> Example: Years between 1900 and 1999 </h4>\n<p>The second statement assigns the value 95 to the variable <code>year</code>.\n</p>\n<pre>\nXmas = new Date(&quot;December 25, 1995 23:15:00&quot;)\nyear = Xmas.getYear() // returns 95\n</pre>\n</div>",
			"<div id = \"section_9\"><span id = \"Example:_Years_above_1999\"></span><h4 class = \"editable\"> Example: Years above 1999 </h4>\n<p>The second statement assigns the value 100 to the variable <code>year</code>.\n</p>\n<pre>\nXmas = new Date(&quot;December 25, 2000 23:15:00&quot;)\nyear = Xmas.getYear() // returns 100\n</pre>\n</div>",
			"<div id = \"section_10\"><span id = \"Example:_Years_below_1900\"></span><h4 class = \"editable\"> Example: Years below 1900 </h4>\n<p>The second statement assigns the value -100 to the variable <code>year</code>.\n</p>\n<pre>\nXmas = new Date(&quot;December 25, 1800 23:15:00&quot;)\nyear = Xmas.getYear() // returns -100\n</pre>\n</div>",
			"<div id = \"section_11\"><span id = \"Example:_Setting_and_getting_a_year_between_1900_and_1999\"></span><h4 class = \"editable\"> Example: Setting and getting a year between 1900 and 1999 </h4>\n<p>The second statement assigns the value 95 to the variable <code>year</code>, representing the year 1995.\n</p>\n<pre>\nXmas.setYear(95)\nyear = Xmas.getYear() // returns 95 \n</pre>\n</div>",
			"<div id = \"section_12\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/getFullYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/getFullYear\">getFullYear</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/getUTCFullYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/getUTCFullYear\">getUTCFullYear</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/setYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/setYear\">setYear</a>\n</p>\n\n\n</div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Backward Compatibility ",
			" JavaScript 1.2 and earlier ",
			" Examples ",
			" Example: Years between 1900 and 1999 ",
			" Example: Years above 1999 ",
			" Example: Years below 1900 ",
			" Example: Setting and getting a year between 1900 and 1999 ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setDate",
		"title": "Date.setDate",
		"_id": "4eea84b2a4c86c4dba000072",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Sets the day of the month for a specified date according to local time.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> setDate(<em>dayValue</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>dayValue</code>&nbsp;</dt> <dd>An integer from 1 to 31, representing the day of the month.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If the parameter you specify is outside of the expected range, <code>setDate</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 0 for <code>dayValue</code>, the date will be set to the last day of the previous month.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setDate\"></span><h4 class = \"editable\">Example: Using <code>setDate</code></h4>\n<p>The second statement below changes the day for <code>theBigDay</code> to July 24 from its original value.</p>\n<pre>\ntheBigDay = new Date(&quot;July 27, 1962 23:30:00&quot;)\ntheBigDay.setDate(24) \n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setDate\"></span><h4 class = \"editable\">Example: Using <code>setDate</code></h4>\n<p>The second statement below changes the day for <code>theBigDay</code> to July 24 from its original value.</p>\n<pre>\ntheBigDay = new Date(&quot;July 27, 1962 23:30:00&quot;)\ntheBigDay.setDate(24) \n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDate\">getDate</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCDate\">setUTCDate</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using setDate",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setHours",
		"title": "Date.setHours",
		"_id": "4eea84c4a4c86c4dba000073",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Sets the hours for a specified date according to local time.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetHours(<i>hoursValue</i>[, <i>minutesValue</i>[, <i>secondsValue</i>[, <em>msValue</em>]]])\n</code>\n</p>\n<div id = \"section_3\"><span id = \"Versions_prior_to_JavaScript_1.3\"></span><h4 class = \"editable\"> Versions prior to JavaScript 1.3 </h4>\n<p><code>\nsetHours(<i>hoursValue</i>)\n</code>\n</p>\n</div></div>",
			"<div id = \"section_3\"><span id = \"Versions_prior_to_JavaScript_1.3\"></span><h4 class = \"editable\"> Versions prior to JavaScript 1.3 </h4>\n<p><code>\nsetHours(<i>hoursValue</i>)\n</code>\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>hoursValue</code>&nbsp;</dt><dd> An integer between 0 and 23, representing the hour. </dd></dl>\n<dl><dt> <code>minutesValue</code>&nbsp;</dt><dd> An integer between 0 and 59, representing the minutes. </dd></dl>\n<dl><dt> <code>secondsValue</code>&nbsp;</dt><dd> An integer between 0 and 59, representing the seconds. If you specify the <code>secondsValue</code> parameter, you must also specify the <code>minutesValue</code>. </dd></dl>\n<dl><dt> <code>msValue</code>&nbsp;</dt><dd> A number between 0 and 999, representing the milliseconds. If you specify the <code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>. </dd></dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>minutesValue</code>, <code>secondsValue</code>, and <code>msValue</code> parameters, the values returned from the <code>getUTCMinutes</code>, <code>getUTCSeconds</code>, and <code>getMilliseconds</code> methods are used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setHours</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 100 for <code>secondsValue</code>, the minutes will be incremented by 1 (min + 1), and 40 will be used for seconds.\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_7\"><span id = \"Example:_Using_setHours\"></span><h4 class = \"editable\"> Example: Using <code>setHours</code> </h4>\n<pre>\ntheBigDay.setHours(7)\n</pre>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_setHours\"></span><h4 class = \"editable\"> Example: Using <code>setHours</code> </h4>\n<pre>\ntheBigDay.setHours(7)\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/getHours\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/getHours\">getHours</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCHours\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCHours\">setUTCHours</a>\n</p></div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Versions prior to JavaScript 1.3 ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setHours ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMilliseconds",
		"title": "Date.setMilliseconds",
		"_id": "4eea84c6a4c86c4dba000074",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the milliseconds for a specified date according to local time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetMilliseconds(<em>millisecondsValue</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>millisecondsValue</code>&nbsp;</dt><dd> A number between 0 and 999, representing the milliseconds.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you specify a number outside the expected range, the date information in the <code>Date</code> object is updated accordingly. For example, if you specify 1005, the number of seconds is incremented by 1, and 5 is used for the milliseconds.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setMilliseconds\"></span><h4 class = \"editable\"> Example: Using <code>setMilliseconds</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setMilliseconds(100);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setMilliseconds\"></span><h4 class = \"editable\"> Example: Using <code>setMilliseconds</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setMilliseconds(100);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMilliseconds\">getMilliseconds</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds\">setUTCMilliseconds</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setMilliseconds ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMinutes",
		"title": "Date.setMinutes",
		"_id": "4eea84c6a4c86c4dba000075",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Sets the minutes for a specified date according to local time.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetMinutes(<i>minutesValue</i>[, <i>secondsValue</i>[, <em>msValue</em>]])\n</code>\n</p>\n<div id = \"section_3\"><span id = \"Versions_prior_to_JavaScript_1.3\"></span><h4 class = \"editable\"> Versions prior to JavaScript 1.3 </h4>\n<p><code>\nsetMinutes(<i>minutesValue</i>)\n</code>\n</p>\n</div></div>",
			"<div id = \"section_3\"><span id = \"Versions_prior_to_JavaScript_1.3\"></span><h4 class = \"editable\"> Versions prior to JavaScript 1.3 </h4>\n<p><code>\nsetMinutes(<i>minutesValue</i>)\n</code>\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>minutesValue</code>&nbsp;</dt><dd> An integer between 0 and 59, representing the minutes. </dd></dl>\n<dl><dt> <code>secondsValue</code>&nbsp;</dt><dd> An integer between 0 and 59, representing the seconds. If you specify the <code>secondsValue</code> parameter, you must also specify the <code>minutesValue</code>.\n</dd></dl>\n<dl><dt> <code>msValue</code>&nbsp;</dt><dd> A number between 0 and 999, representing the milliseconds. If you specify the <code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.\n</dd></dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>secondsValue</code> and <code>msValue</code> parameters, the values returned from <code>getSeconds</code> and <code>getMilliseconds</code> methods are used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setMinutes</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 100 for <code>secondsValue</code>, the minutes (<code>minutesValue</code>) will be incremented by 1 (<code>minutesValue</code> + 1), and 40 will be used for seconds.\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_7\"><span id = \"Example:_Using_setMinutes\"></span><h4 class = \"editable\"> Example: Using <code>setMinutes</code> </h4>\n<pre>\ntheBigDay.setMinutes(45)\n</pre>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_setMinutes\"></span><h4 class = \"editable\"> Example: Using <code>setMinutes</code> </h4>\n<pre>\ntheBigDay.setMinutes(45)\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/getMinutes\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/getMinutes\">getMinutes</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCMinutes\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCMinutes\">setUTCMinutes</a>\n</p></div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Versions prior to JavaScript 1.3 ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setMinutes ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setSeconds",
		"title": "Date.setSeconds",
		"_id": "4eea84c7a4c86c4dba000076",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Sets the seconds for a specified date according to local time.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetSeconds(<i>secondsValue</i>[, <em>msValue</em>])\n</code>\n</p>\n<div id = \"section_3\"><span id = \"Versions_prior_to_JavaScript_1.3\"></span><h4 class = \"editable\"> Versions prior to JavaScript 1.3 </h4>\n<p><code>\nsetSeconds(<i>secondsValue</i>)\n</code>\n</p>\n</div></div>",
			"<div id = \"section_3\"><span id = \"Versions_prior_to_JavaScript_1.3\"></span><h4 class = \"editable\"> Versions prior to JavaScript 1.3 </h4>\n<p><code>\nsetSeconds(<i>secondsValue</i>)\n</code>\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>secondsValue</code>&nbsp;</dt><dd> An integer between 0 and 59. </dd></dl>\n<dl><dt> <code>msValue</code>&nbsp;</dt><dd> A number between 0 and 999, representing the milliseconds.\n</dd></dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>msValue</code> parameter, the value returned from the <code>getMilliseconds</code> method is used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setSeconds</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 100 for <code>secondsValue</code>, the minutes stored in the <code>Date</code> object will be incremented by 1, and 40 will be used for seconds.\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_7\"><span id = \"Example:_Using_setSeconds\"></span><h4 class = \"editable\"> Example: Using <code>setSeconds</code> </h4>\n<pre>\ntheBigDay.setSeconds(30)\n</pre>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_setSeconds\"></span><h4 class = \"editable\"> Example: Using <code>setSeconds</code> </h4>\n<pre>\ntheBigDay.setSeconds(30)\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/getSeconds\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/getSeconds\">getSeconds</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCSeconds\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCSeconds\">setUTCSeconds</a>\n</p></div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Versions prior to JavaScript 1.3 ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setSeconds ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMonth",
		"title": "Date.setMonth",
		"_id": "4eea84caa4c86c4dba000077",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Set the month for a specified date according to local time.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetMonth(<i>monthValue</i>[, <em>dayValue</em>])\n</code>\n</p>\n<div id = \"section_3\"><span id = \"Versions_prior_to_JavaScript_1.3\"></span><h4 class = \"editable\"> Versions prior to JavaScript 1.3 </h4>\n<p><code>\nsetMonth(<i>monthValue</i>) </code>\n</p>\n</div></div>",
			"<div id = \"section_3\"><span id = \"Versions_prior_to_JavaScript_1.3\"></span><h4 class = \"editable\"> Versions prior to JavaScript 1.3 </h4>\n<p><code>\nsetMonth(<i>monthValue</i>) </code>\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Parameter\"></span><h3 class = \"editable\"> Parameter </h3>\n<dl><dt> <code>monthValue</code>&nbsp;</dt><dd> An integer between 0 and 11 (representing the months January through December). </dd></dl>\n<dl><dt> <code>dayValue</code>&nbsp;</dt><dd> An integer from 1 to 31, representing the day of the month.\n</dd></dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>dayValue</code> parameter, the value returned from the <code>getDate</code> method is used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setMonth</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 15 for <code>monthValue</code>, the year will be incremented by 1 (year + 1), and 3 will be used for month.\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_7\"><span id = \"Example:_Using_setMonth\"></span><h4 class = \"editable\"> Example: Using <code>setMonth</code> </h4>\n<pre>\ntheBigDay.setMonth(6)\n</pre>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_setMonth\"></span><h4 class = \"editable\"> Example: Using <code>setMonth</code> </h4>\n<pre>\ntheBigDay.setMonth(6)\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/getMonth\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/getMonth\">getMonth</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCMonth\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCMonth\">setUTCMonth</a>\n</p></div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Versions prior to JavaScript 1.3 ",
			" Parameter ",
			" Description ",
			" Examples ",
			" Example: Using setMonth ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCDate",
		"title": "Date.setUTCDate",
		"_id": "4eea84cba4c86c4dba000078",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the day of the month for a specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetUTCDate(<em>dayValue</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>dayValue</code>&nbsp;</dt><dd> An integer from 1 to 31, representing the day of the month.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If a parameter you specify is outside of the expected range, <code>setUTCDate</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 40 for <code>dayValue</code>, and the month stored in the <code>Date</code> object is June, the day will be changed to 10 and the month will be incremented to July.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setUTCDate\"></span><h4 class = \"editable\"> Example: Using <code>setUTCDate</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCDate(20);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setUTCDate\"></span><h4 class = \"editable\"> Example: Using <code>setUTCDate</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCDate(20);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCDate\">getUTCDate</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setDate\">setDate</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setUTCDate ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setTime",
		"title": "Date.setTime",
		"_id": "4eea84cba4c86c4dba000079",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the <code>Date</code> object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetTime(<em>timeValue</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>timeValue</code>&nbsp;</dt><dd> An integer representing the number of milliseconds since 1 January 1970, 00:00:00 UTC.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>setTime</code> method to help assign a date and time to another <code>Date</code> object.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setTime\"></span><h4 class = \"editable\"> Example: Using <code>setTime</code> </h4>\n<pre>\ntheBigDay = new Date(&quot;July 1, 1999&quot;)\nsameAsBigDay = new Date()\nsameAsBigDay.setTime(theBigDay.getTime())\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setTime\"></span><h4 class = \"editable\"> Example: Using <code>setTime</code> </h4>\n<pre>\ntheBigDay = new Date(&quot;July 1, 1999&quot;)\nsameAsBigDay = new Date()\nsameAsBigDay.setTime(theBigDay.getTime())\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getTime\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime\">getTime</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setUTCHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCHours\">setUTCHours</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setTime ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCHours",
		"title": "Date.setUTCHours",
		"_id": "4eea84cca4c86c4dba00007a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the hour for a specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetUTCHours(<em>hoursValue</em>[, <em>minutesValue</em>[, <em>secondsValue</em>[, <em>msValue</em>]]])\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>hoursValue</code>&nbsp;</dt><dd> An integer between 0 and 23, representing the hour. </dd></dl>\n<dl><dt> <code>minutesValue</code>&nbsp;</dt><dd> An integer between 0 and 59, representing the minutes. </dd></dl>\n<dl><dt> <code>secondsValue</code>&nbsp;</dt><dd> An integer between 0 and 59, representing the seconds. If you specify the <code>secondsValue</code> parameter, you must also specify the <code>minutesValue</code>.\n</dd></dl>\n<dl><dt> <code>msValue</code>&nbsp;</dt><dd> A number between 0 and 999, representing the milliseconds. If you specify the <code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>minutesValue</code>, <code>secondsValue</code>, and <code>msValue</code> parameters, the values returned from the <code>getUTCMinutes</code>, <code>getUTCSeconds</code>, and <code>getUTCMilliseconds</code> methods are used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setUTCHours</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 100 for <code>secondsValue</code>, the minutes will be incremented by 1 (min + 1), and 40 will be used for seconds.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setUTCHours\"></span><h4 class = \"editable\"> Example: Using <code>setUTCHours</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCHours(8);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setUTCHours\"></span><h4 class = \"editable\"> Example: Using <code>setUTCHours</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCHours(8);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCHours\">getUTCHours</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setHours\">setHours</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setUTCHours ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds",
		"title": "Date.setUTCMilliseconds",
		"_id": "4eea84cca4c86c4dba00007b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the milliseconds for a specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetUTCMilliseconds(<em>millisecondsValue</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>millisecondsValue</code>&nbsp;</dt><dd> A number between 0 and 999, representing the milliseconds.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If a parameter you specify is outside of the expected range, <code>setUTCMilliseconds</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 1100 for <code>millisecondsValue</code>, the seconds stored in the <code>Date</code> object will be incremented by 1, and 100 will be used for milliseconds.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setUTCMilliseconds\"></span><h4 class = \"editable\"> Example: Using <code>setUTCMilliseconds</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCMilliseconds(500);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setUTCMilliseconds\"></span><h4 class = \"editable\"> Example: Using <code>setUTCMilliseconds</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCMilliseconds(500);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds\">getUTCMilliseconds</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setMilliseconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMilliseconds\">setMilliseconds</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setUTCMilliseconds ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMinutes",
		"title": "Date.setUTCMinutes",
		"_id": "4eea84cfa4c86c4dba00007c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the minutes for a specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetUTCMinutes(<em>minutesValue</em>[, <em>secondsValue</em>[, <em>msValue</em>]])\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>minutesValue</code>&nbsp;</dt><dd> An integer between 0 and 59, representing the minutes. </dd></dl>\n<dl><dt> <code>secondsValue</code>&nbsp;</dt><dd> An integer between 0 and 59, representing the seconds. If you specify the <code>secondsValue</code> parameter, you must also specify the <code>minutesValue</code>. </dd></dl>\n<dl><dt> <code>msValue</code>&nbsp;</dt><dd> A number between 0 and 999, representing the milliseconds. If you specify the <code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>secondsValue</code> and <code>msValue</code> parameters, the values returned from <code>getUTCSeconds</code> and <code>getUTCMilliseconds</code> methods are used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setUTCMinutes</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 100 for <code>secondsValue</code>, the minutes (<code>minutesValue</code>) will be incremented by 1 (<code>minutesValue</code> + 1), and 40 will be used for seconds.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setUTCMinutes\"></span><h4 class = \"editable\"> Example: Using <code>setUTCMinutes</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCMinutes(43);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setUTCMinutes\"></span><h4 class = \"editable\"> Example: Using <code>setUTCMinutes</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCMinutes(43);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMinutes\">getUTCMinutes</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMinutes\">setMinutes</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setUTCMinutes ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCMonth",
		"title": "Date.setUTCMonth",
		"_id": "4eea84d0a4c86c4dba00007d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the month for a specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetUTCMonth(<em>monthValue</em>[, <em>dayValue</em>])\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>monthValue</code>&nbsp;</dt><dd> An integer between 0 and 11, representing the months January through December. </dd></dl>\n<dl><dt> <code>dayValue</code>&nbsp;</dt><dd> An integer from 1 to 31, representing the day of the month.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>dayValue</code> parameter, the value returned from the <code>getUTCDate</code> method is used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setUTCMonth</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 15 for <code>monthValue</code>, the year will be incremented by 1 (year + 1), and 3 will be used for month.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setUTCMonth\"></span><h4 class = \"editable\"> Example: Using <code>setUTCMonth</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCMonth(11);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setUTCMonth\"></span><h4 class = \"editable\"> Example: Using <code>setUTCMonth</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCMonth(11);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCMonth\">getUTCMonth</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setMonth\">setMonth</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setUTCMonth ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setUTCSeconds",
		"title": "Date.setUTCSeconds",
		"_id": "4eea84d1a4c86c4dba00007e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Sets the seconds for a specified date according to universal time.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetUTCSeconds(<em>secondsValue</em>[, <em>msValue</em>])\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>secondsValue</code>&nbsp;</dt><dd> An integer between 0 and 59. </dd></dl>\n<dl><dt> <code>msValue</code>&nbsp;</dt><dd> A number between 0 and 999, representing the milliseconds.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If you do not specify the <code>msValue</code> parameter, the value returned from the <code>getUTCMilliseconds</code> methods is used.\n</p><p>If a parameter you specify is outside of the expected range, <code>setUTCSeconds</code> attempts to update the date information in the <code>Date</code> object accordingly. For example, if you use 100 for <code>secondsValue</code>, the minutes stored in the <code>Date</code> object will be incremented by 1, and 40 will be used for seconds.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setUTCSeconds\"></span><h4 class = \"editable\"> Example: Using <code>setUTCSeconds</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCSeconds(20);\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setUTCSeconds\"></span><h4 class = \"editable\"> Example: Using <code>setUTCSeconds</code> </h4>\n<pre>\ntheBigDay = new Date();\ntheBigDay.setUTCSeconds(20);\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Date/getUTCSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getUTCSeconds\">getUTCSeconds</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/setSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setSeconds\">setSeconds</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setUTCSeconds ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/setYear",
		"title": "Date.setYear",
		"_id": "4eea84d1a4c86c4dba00007f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Sets the year for a specified date according to local time.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsetYear(<i>yearValue</i>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>yearValue</code>&nbsp;</dt><dd> An integer.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>setYear</code> is no longer used and has been replaced by the <code>setFullYear</code> method.\n</p><p>If <code>yearValue&lt;/code. is a number between 0 and 99 (inclusive), then the year for &lt;code&gt;dateObjectName</code> is set to 1900 + <code>yearValue</code>. Otherwise, the year for <code>dateObjectName</code> is set to <code>yearValue</code>.\n</p><p>To take into account years before and after 2000, you should use <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/setFullYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/setFullYear\">setFullYear</a></code> instead of <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/setYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/setYear\">setYear</a></code> so that the year is specified in full.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_setYear\"></span><h4 class = \"editable\"> Example: Using <code>setYear</code> </h4>\n<p>The first two lines set the year to 1996. The third sets the year to 2000.\n</p>\n<pre>\ntheBigDay.setYear(96)\ntheBigDay.setYear(1996)\ntheBigDay.setYear(2000)\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_setYear\"></span><h4 class = \"editable\"> Example: Using <code>setYear</code> </h4>\n<p>The first two lines set the year to 1996. The third sets the year to 2000.\n</p>\n<pre>\ntheBigDay.setYear(96)\ntheBigDay.setYear(1996)\ntheBigDay.setYear(2000)\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/getYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/getYear\">getYear</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/setFullYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/setFullYear\">setFullYear</a>,\n<a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCFullYear\" title = \"en/Core_JavaScript_1.5_Reference/Objects/Date/setUTCFullYear\">setUTCFullYear</a>\n</p></div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using setYear ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toDateString",
		"title": "Date.toDateString",
		"_id": "4eea84d2a4c86c4dba000080",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the date portion of a <code>Date</code> object in human readable form in American English.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript ?</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>date</em>.toDateString()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date\">Date</a> instances refer to a specific point in time. Calling <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toString\">toString</a> will return the date formatted in a human readable form in American English. In <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a>, this consists of the date portion (day, month, and year) followed by the time portion (hours, minutes, seconds, and time zone). Sometimes it is desirable to obtain a string of the date portion; such a thing can be accomplished with the <code>toDateString</code> method.</p>\n<p>The <code>toDateString</code> method is especially useful because compliant engines implementing <a title = \"en/ECMAScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a> may differ in the string obtained from <code>toString</code> for <code>Date</code> objects, as the format is implementation-dependent and simple string slicing approaches may not produce consistent results across multiple engines.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n</div>",
			"<div id = \"section_5\"><span id = \"Example:_A_basic_usage_of_toDateString\"></span><h3 class = \"editable\">Example: A basic usage of <code>toDateString</code></h3>\n<pre class = \"eval\">var d = new Date(1993, 6, 28, 14, 39, 7);\nprintln(d.toString()); // prints Wed Jul 28 1993 14:39:07 GMT-0600 (PDT)\nprintln(d.toDateString()); // prints Wed Jul 28 1993\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleDateString\">toLocaleDateString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toTimeString\">toTimeString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toString\">toString</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Example",
			"Example: A basic usage of toDateString",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toISOString",
		"title": "Date.toISOString",
		"_id": "4eea84d4a4c86c4dba000081",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>JavaScript provides a direct way to convert a date object into a string in ISO format, the <a class = \"external\" rel = \"external\" href = \"http://en.wikipedia.org/wiki/ISO_8601\" title = \"http://en.wikipedia.org/wiki/ISO_8601\" target = \"_blank\">ISO 8601 Extended Format</a>.</p>\n<p>The <code>Date.prototype.toISOString</code> is an ECMAScript 5 addition. Format is as follows: <strong>YYYY-MM-DDTHH:mm:ss.sssZ</strong><br/>\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>myDate.toISOString() </code></p>\n<div class = \"note\"><strong>Note:</strong> <code>mydate</code> is a <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a> object.</div>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n\r\n          <pre name = \"code\" class = \"js\">var today = new Date(&quot;05 October 2011 14:48 UTC&quot;);\nalert(today.toISOString()); // Returns 2011-10-10T14:48:00.000z</pre>\r\n        \n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h2 class = \"editable\">See Also</h2>\n<p><code><a title = \"toUTCString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toUTCString\">toUTCString()</a></code></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Examples",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toJSON",
		"title": "Date.toJSON",
		"_id": "4eea84d6a4c86c4dba000082",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a <a title = \"en/JSON\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JSON\">JSON</a> representation of the Date object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>date</em>.toJSON()</code></p></div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a> instances refer to a specific point in time. Calling <code>toJSON()</code> returns a JSON formatted string representing the Date object's value. &nbsp;This method is generally intended to, by default, usefully serialize Date objects during JSON serialization.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Example:_A_basic_usage_of_toDateString\"></span><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var jsonDate = (new Date()).toJSON();\nvar backToDate = new Date(jsonDate);\n\nconsole.log(&quot;Serialized date object: &quot; + jsonDate);</pre>\r\n        </div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Example"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toGMTString",
		"title": "Date.toGMTString",
		"_id": "4eea84d6a4c86c4dba000083",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Converts a date to a string, using Internet GMT conventioins.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> toGMTString() </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<div class = \"note\"><code>toGMTString</code> is deprecated and should no longer be used, it's only there for backwards compatibility, use <a title = \"en/JavaScript/Reference/Global Objects/Date/toUTCString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toUTCString\">toUTCString</a> instead.</div>\n<p>The exact format of the value returned by <code>toGMTString</code> varies according to the platform and browser, in general it should represent a human readable date string.</p></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toGMTString\"></span><h4 class = \"editable\">Example: Using <code>toGMTString</code></h4>\n<p>In the following example, today is a <code>Date</code> object:</p>\n<pre>today.toGMTString()\n</pre>\n<p>In this example, the <code>toGMTString</code> method converts the date to GMT (UTC) using the operating system's time-zone offset and returns a string value that is similar to the following form. The exact format depends on the platform.</p>\n<pre>Mon, 18 Dec 1995 17:28:35 GMT\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toGMTString\"></span><h4 class = \"editable\">Example: Using <code>toGMTString</code></h4>\n<p>In the following example, today is a <code>Date</code> object:</p>\n<pre>today.toGMTString()\n</pre>\n<p>In this example, the <code>toGMTString</code> method converts the date to GMT (UTC) using the operating system's time-zone offset and returns a string value that is similar to the following form. The exact format depends on the platform.</p>\n<pre>Mon, 18 Dec 1995 17:28:35 GMT\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString\">toLocaleString</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toUTCString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toUTCString\">toUTCString</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using toGMTString",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toUTCString",
		"title": "Date.toUTCString",
		"_id": "4eea84d7a4c86c4dba000084",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Converts a date to a string, using the universal time convention.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>toUTCString() </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The value returned by <code>toUTCString</code> is a readable string in American English in the <abbr title = \"Coordinated Universal Time\">UTC</abbr> time zone. The format of the return value may vary according to the platform. The most common return value is a RFC-1123 formatted date stamp, which is a slightly updated version of RFC-822 date stamps.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toUTCString\"></span><h4 class = \"editable\">Example: Using <code>toUTCString</code></h4>\n<pre>var today = new Date();\nvar UTCstring = today.toUTCString();\n// Mon, 03 Jul 2006 21:44:38 GMT\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toUTCString\"></span><h4 class = \"editable\">Example: Using <code>toUTCString</code></h4>\n<pre>var today = new Date();\nvar UTCstring = today.toUTCString();\n// Mon, 03 Jul 2006 21:44:38 GMT\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleString\">toLocaleString</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using toUTCString",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleDateString",
		"title": "Date.toLocaleDateString",
		"_id": "4eea84d7a4c86c4dba000085",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Converts a date to a string, returning the &quot;date&quot; portion using the operating system's locale's conventions.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ntoLocaleDateString()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toLocaleDateString</code> method relies on the underlying operating system in formatting dates. It converts the date to a string using the formatting convention of the operating system where the script is running. For example, in the United States, the month appears before the date (04/15/98), whereas in Germany the date appears before the month (15.04.98). If the operating system is not year-2000 compliant and does not use the full year for years before 1900 or over 2000, <code>toLocaleDateString</code> returns a string that is not year-2000 compliant. <code>toLocaleDateString</code> behaves similarly to <code>toString</code> when converting a year that the operating system does not properly format.</p>\n<p>Methods such as <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDate\">getDate</a></code>, <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMonth\">getMonth</a></code>, and <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getYullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear\">getFullYear</a></code> give more portable results than <code>toLocaleDateString</code>. Use <code>toLocaleDateString</code> when the intent is to display to the user a string formatted using the regional format chosen by the user. Be aware that this method, due to its nature, behaves differently depending on the operating system and on the user's settings.</p></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toLocaleDateString\"></span><span id = \"Using_toLocaleDateString\"></span><h4 class = \"editable\">Using <code>toLocaleDateString</code></h4>\n<p>In the following example, <code>today</code> is a <code>Date</code> object:</p>\n<pre>today = new Date(95,11,18,17,28,35) //months are represented by 0 to 11\ntoday.toLocaleDateString()\n</pre>\n<p>In this example, <code>toLocaleDateString</code> returns a string value that is similar to the following form. The exact format depends on the platform, locale and user's settings.</p>\n<pre>12/18/95\n</pre>\n<p>You shouldn't use this method in contexts where you rely on a particular format or locale.</p>\n<pre>&quot;Last visit: &quot; + someDate.toLocaleDateString(); // Good example\n&quot;Last visit was at &quot; + someDate.toLocaleDateString(); // Bad example</pre></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toLocaleDateString\"></span><span id = \"Using_toLocaleDateString\"></span><h4 class = \"editable\">Using <code>toLocaleDateString</code></h4>\n<p>In the following example, <code>today</code> is a <code>Date</code> object:</p>\n<pre>today = new Date(95,11,18,17,28,35) //months are represented by 0 to 11\ntoday.toLocaleDateString()\n</pre>\n<p>In this example, <code>toLocaleDateString</code> returns a string value that is similar to the following form. The exact format depends on the platform, locale and user's settings.</p>\n<pre>12/18/95\n</pre>\n<p>You shouldn't use this method in contexts where you rely on a particular format or locale.</p>\n<pre>&quot;Last visit: &quot; + someDate.toLocaleDateString(); // Good example\n&quot;Last visit was at &quot; + someDate.toLocaleDateString(); // Bad example</pre></div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toDateString\">toDateString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleString\">toLocaleString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString\">toLocaleTimeString</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			"Description",
			"Examples",
			"Using toLocaleDateString",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toLocaleString",
		"title": "Object.toLocaleString",
		"_id": "4eea84d8a4c86c4dba000086",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the object. This method is meant to be overriden by derived objects for locale-specific purposes.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object\">Object</a></td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262 Edition 3</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ntoLocaleString()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>Object</code>'s <code>toLocaleString</code> returns the result of calling <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\">toString</a></code>.\n</p><p>This function is provided to give objects a generic <code>toLocaleString</code> method, even though not all may use it. Currently, only <code>Array</code>, <code>Number</code>, and <code>Date</code> override <code>toLocaleString</code>.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\">toString</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString",
		"title": "Date.toLocaleTimeString",
		"_id": "4eea84d9a4c86c4dba000087",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Converts a date to a string, returning the &quot;time&quot; portion using the current locale's conventions.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> toLocaleTimeString() </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toLocaleTimeString</code> method relies on the underlying operating system in formatting dates. It converts the date to a string using the formatting convention of the operating system where the script is running. For example, in the United States, the month appears before the date (04/15/98), whereas in Germany the date appears before the month (15.04.98).</p>\n<p>Methods such as <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getHours\">getHours</a></code>, <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMinutes\">getMinutes</a></code>, and <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getSeconds\">getSeconds</a></code> give more consistent results than <code>toLocaleTimeString</code>. Use <code>toLocaleTimeString</code> when the intent is to display to the user a string formatted using the regional format chosen by the user. Be aware that this method, due to its nature, behaves differently depending on the operating system and on the user's settings.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Using_toLocaleTimeString\"></span><h4 class = \"editable\">Using <code>toLocaleTimeString</code></h4>\n<p>In the following example, <code>today</code> is a <code>Date</code> object:</p>\n<pre>\ntoday = new Date(95,11,18,17,28,35) //months are represented by 0 to 11\ntoday.toLocaleTimeString()\n</pre>\n<p>In this example, <code>toLocaleTimeString</code> returns a string value that is similar to the following form. The exact format depends on the platform.</p>\n<pre>\n17:28:35\n</pre>\n<p>You shouldn't use this method in contexts where you rely on a particular format or locale.</p>\n<pre>\n&quot;Last visit: &quot; + someDate.toLocaleTimeString(); // Good example\n&quot;Last visit was at &quot; + someDate.toLocaleTimeString(); // Bad example</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Using_toLocaleTimeString\"></span><h4 class = \"editable\">Using <code>toLocaleTimeString</code></h4>\n<p>In the following example, <code>today</code> is a <code>Date</code> object:</p>\n<pre>\ntoday = new Date(95,11,18,17,28,35) //months are represented by 0 to 11\ntoday.toLocaleTimeString()\n</pre>\n<p>In this example, <code>toLocaleTimeString</code> returns a string value that is similar to the following form. The exact format depends on the platform.</p>\n<pre>\n17:28:35\n</pre>\n<p>You shouldn't use this method in contexts where you rely on a particular format or locale.</p>\n<pre>\n&quot;Last visit: &quot; + someDate.toLocaleTimeString(); // Good example\n&quot;Last visit was at &quot; + someDate.toLocaleTimeString(); // Bad example</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toTimeString\">toTimeString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleString\">toLocaleString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleDateString\">toLocaleDateString</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Using toLocaleTimeString",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleFormat",
		"title": "Date.toLocaleFormat",
		"_id": "4eea84dba4c86c4dba000088",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Converts a date to a string using the specified formatting.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<code><em>dateObj</em>.toLocaleFormat(<em>formatString</em>)</code></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl><dt> <code>formatString</code>&nbsp;</dt><dd> A format string in the same format expected by the <code><a class = \"external\" rel = \"external\" href = \"http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html\" title = \"http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html\" target = \"_blank\">strftime()</a></code> function in C. </dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toLocaleFormat()</code> provides greater software control over the formatting of the generated date and/or time. Names for months and days of the week are localized using the operating system's locale. However, ordering of the day and month and other localization tasks are not handled automatically since you have control over the order in which they occur.You should take care that the format string is localized properly according to the user's system settings. Be aware that the locale used is not necessarily the same as the locale of the browser. Extension and XulRunner developers should know that just loading the format string from a <code>.dtd</code> or <code>.properties</code> file using a <code><a class = \" external\" rel = \"external\" href = \"chrome://\" title = \"chrome://\" target = \"_blank\">chrome://</a><em>somedomain</em>/locale/</code><em><code>somefile.ext</code></em> URI should be <strong>avoided</strong>, as the <code>dtd</code>/<code>properties</code> file and the <code>toLocaleFormat</code> method does not not necessarily use the same locale, which could result in odd looking or even ambiguous or unreadable dates. Also note that the behavior of the used locale depends on the platform, and the user might customize the locale used, so using the system locale the choose the format string might in some cases not even be adequate. You might consider using some of the more general <code>toLocale*</code> methods of the <code>Date</code> object or doing your own custom localization of the date to be displayed using some of the <code>get*</code> methods of the <code>Date</code> object instead of using this method.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toLocaleFormat\"></span><h4 class = \"editable\">Example: Using <code>toLocaleFormat</code></h4>\n<pre class = \"eval\">var today = new Date();\nvar date = today.toLocaleFormat(&quot;%A,&nbsp;%B&nbsp;%e,&nbsp;%Y&quot;); //&nbsp;Bad example\n</pre>\n<p>In this example, <code>toLocaleFormat()</code> returns a string such as &quot;Wednesday, October 3, 2007&quot;. Note that the format string in this example is not properly localized, which will result in the problems described above.</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toLocaleFormat\"></span><h4 class = \"editable\">Example: Using <code>toLocaleFormat</code></h4>\n<pre class = \"eval\">var today = new Date();\nvar date = today.toLocaleFormat(&quot;%A,&nbsp;%B&nbsp;%e,&nbsp;%Y&quot;); //&nbsp;Bad example\n</pre>\n<p>In this example, <code>toLocaleFormat()</code> returns a string such as &quot;Wednesday, October 3, 2007&quot;. Note that the format string in this example is not properly localized, which will result in the problems described above.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString\">toLocaleString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleDateString\">toLocaleDateString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleTimeString\">toLocaleTimeString</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using toLocaleFormat",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleString",
		"title": "Date.toLocaleString",
		"_id": "4eea84dca4c86c4dba000089",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Converts a date to a string, using the operating system's locale's conventions.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ntoLocaleString()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toLocaleString</code> method relies on the underlying operating system in formatting dates. It converts the date to a string using the formatting convention of the operating system where the script is running. For example, in the United States, the month appears before the date (04/15/98), whereas in Germany the date appears before the month (15.04.98). If the operating system is not year-2000 compliant and does not use the full year for years before 1900 or over 2000, <code>toLocaleString</code> returns a string that is not year-2000 compliant. <code>toLocaleString</code> behaves similarly to <code>toString</code> when converting a year that the operating system does not properly format.</p>\n<p>Methods such as <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getDate\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDate\">getDate</a></code>, <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMonth\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMonth\">getMonth</a></code>, <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getYullYear\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getFullYear\">getFullYear</a></code>, <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getHours\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getHours\">getHours</a></code>, <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMinutes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getMinutes\">getMinutes</a></code>, and <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getSeconds\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getSeconds\">getSeconds</a></code> give more portable results than <code>toLocaleString</code>. Use <code>toLocaleString</code> when the intent is to display to the user a string formatted using the regional format chosen by the user. Be aware that this method, due to its nature, behaves differently depending on the operating system and on the user's settings.</p></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Using_toLocaleString\"></span><h4 class = \"editable\">Using <code>toLocaleString</code></h4>\n<p>In the following example, <code>today</code> is a <code>Date</code> object:</p>\n<pre class = \"eval\">today = new Date(95,11,18,17,28,35); //months are represented by 0 to 11\ntoday.toLocaleString();\n</pre>\n<p>In this example, <code>toLocaleString</code> returns a string value that is similar to the following form. The exact format depends on the platform, locale and user's settings.</p>\n<pre class = \"eval\">12/18/95 17:28:35\n</pre>\n<p>You shouldn't use this method in contexts where you rely on a particular format or locale.</p>\n<pre>&quot;Last visit: &quot; + someDate.toLocaleString(); // Good example\n&quot;Last visit was at &quot; + someDate.toLocaleString(); // Bad example\n</pre></div></div>",
			"<div id = \"section_6\"><span id = \"Using_toLocaleString\"></span><h4 class = \"editable\">Using <code>toLocaleString</code></h4>\n<p>In the following example, <code>today</code> is a <code>Date</code> object:</p>\n<pre class = \"eval\">today = new Date(95,11,18,17,28,35); //months are represented by 0 to 11\ntoday.toLocaleString();\n</pre>\n<p>In this example, <code>toLocaleString</code> returns a string value that is similar to the following form. The exact format depends on the platform, locale and user's settings.</p>\n<pre class = \"eval\">12/18/95 17:28:35\n</pre>\n<p>You shouldn't use this method in contexts where you rely on a particular format or locale.</p>\n<pre>&quot;Last visit: &quot; + someDate.toLocaleString(); // Good example\n&quot;Last visit was at &quot; + someDate.toLocaleString(); // Bad example\n</pre></div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toString\">toString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toUTCString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toUTCString\">toUTCString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleDateString\">toLocaleDateString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString\">toLocaleTimeString</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			"Description",
			"Examples",
			"Using toLocaleString",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toSource",
		"title": "Date.toSource",
		"_id": "4eea84dda4c86c4dba00008a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the source code of the object.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><em>date</em>.toSource()</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>toSource</code> method returns the following values:\n</p><p>\n</p>\n<ul><li> For the built-in <code>Date</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:\n</li></ul>\n<pre class = \"eval\">function Date() {\n   [native code]\n}\n</pre>\n<ul><li> For instances of <code>Date</code>, <code>toSource</code> returns a string representing the source code.\n</li></ul>\n<p>This method is usually called internally by JavaScript and not explicitly in code.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.toSource</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource",
		"title": "Object.toSource",
		"_id": "4eea84dea4c86c4dba00008b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the source code of the object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.toSource()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toSource</code> method returns the following values:</p>\n<ul> <li>For the built-in <code>Object</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:</li>\n</ul>\n<pre class = \"eval\">\nfunction Object() {\n   [native code]\n}\n</pre>\n<ul> <li>For instances of <code>Object</code>, <code>toSource</code> returns a string representing the source code.</li>\n</ul>\n<p>You can call <code>toSource</code> while debugging to examine the contents of an object.</p>\n<p>It is safe for objects to override the <code>toSource</code> method.&nbsp; For example:</p>\n<pre>\nfunction Person(name) {\n    this.name = name;\n}\nPerson.prototype.toSource = function Person_toSource() {\n    return &quot;new Person(&quot; + uneval(this.name) + &quot;)&quot;;\n};\nalert(new Person(&quot;Joe&quot;).toSource());    // ---&gt;&nbsp;new Person(&quot;Joe&quot;)\n</pre>\n<div id = \"section_5\"><span id = \"Built-in_toString_methods\"></span><span id = \"Built-in_toSource_methods\"></span><h4 class = \"editable\">Built-in <code>toSource</code> methods</h4>\n<p>Each core JavaScript type has its own <code>toSource</code> method. These objects are: \n\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a> - Array Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toSource\">toSource</a> - Boolean Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Date/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toSource\">toSource</a> - Date Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toSource\">toSource</a> - Function Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource\">toSource</a> - Number Object method.</li> <li><strong>toSource</strong> - Object Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toSource\">toSource</a> - RegExp Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/String/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toSource\">toSource</a> - String Object method.</li>\n</ul>\n\n</p>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Built-in_toString_methods\"></span><span id = \"Built-in_toSource_methods\"></span><h4 class = \"editable\">Built-in <code>toSource</code> methods</h4>\n<p>Each core JavaScript type has its own <code>toSource</code> method. These objects are: \n\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a> - Array Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toSource\">toSource</a> - Boolean Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Date/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toSource\">toSource</a> - Date Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toSource\">toSource</a> - Function Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource\">toSource</a> - Number Object method.</li> <li><strong>toSource</strong> - Object Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toSource\">toSource</a> - RegExp Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/String/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toSource\">toSource</a> - String Object method.</li>\n</ul>\n\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_7\"><span id = \"Example:_Using_toSource\"></span><h4 class = \"editable\">Example: Using <code>toSource</code></h4>\n<p>The following code defines the <code>Dog</code> object type and creates <code>theDog</code>, an object of type <code>Dog</code>:</p>\n<pre class = \"eval\">\nfunction Dog(name, breed, color, sex) {\n   this.name=name;\n   this.breed=breed;\n   this.color=color;\n   this.sex=sex;\n}\n\ntheDog = new Dog(&quot;Gabby&quot;, &quot;Lab&quot;, &quot;chocolate&quot;, &quot;girl&quot;);\n</pre>\n<p>Calling the <code>toSource</code> method of <code>theDog</code> displays the JavaScript source that defines the object:</p>\n<pre class = \"eval\">\ntheDog.toSource();\n</pre>\n<p>returns</p>\n<pre class = \"eval\">\n({name:&quot;Gabby&quot;, breed:&quot;Lab&quot;, color:&quot;chocolate&quot;, sex:&quot;girl&quot;})\n</pre>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_toSource\"></span><h4 class = \"editable\">Example: Using <code>toSource</code></h4>\n<p>The following code defines the <code>Dog</code> object type and creates <code>theDog</code>, an object of type <code>Dog</code>:</p>\n<pre class = \"eval\">\nfunction Dog(name, breed, color, sex) {\n   this.name=name;\n   this.breed=breed;\n   this.color=color;\n   this.sex=sex;\n}\n\ntheDog = new Dog(&quot;Gabby&quot;, &quot;Lab&quot;, &quot;chocolate&quot;, &quot;girl&quot;);\n</pre>\n<p>Calling the <code>toSource</code> method of <code>theDog</code> displays the JavaScript source that defines the object:</p>\n<pre class = \"eval\">\ntheDog.toSource();\n</pre>\n<p>returns</p>\n<pre class = \"eval\">\n({name:&quot;Gabby&quot;, breed:&quot;Lab&quot;, color:&quot;chocolate&quot;, sex:&quot;girl&quot;})\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></p>\n\n<p></p>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Built-in toSource methods",
			"Examples",
			"Example: Using toSource",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toString",
		"title": "Date.toString",
		"_id": "4eea84dfa4c86c4dba00008c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the specified Date object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> toString() </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a></code> object overrides the <code>toString</code> method of the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></code> object; it does not inherit <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a></code>. For <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a></code> objects, the <code>toString</code> method returns a string representation of the object.</p>\n<p><code>toString</code> always returns a string representation of the date in American English.</p>\n<p>JavaScript calls the <code>toString</code> method automatically when a date is to be represented as a text value or when a date is referred to in a string concatenation.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toString\"></span><h4 class = \"editable\">Example: Using <code>toString</code></h4>\n<p>The following assigns the <code>toString</code> value of a <code>Date</code> object to <code>myVar</code>:</p>\n<pre>x = new Date();\nmyVar=x.toString();   //assigns a value to myVar similar to:\n     //Mon Sep 28 1998 14:36:22 GMT-0700 (Pacific Daylight Time)\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toString\"></span><h4 class = \"editable\">Example: Using <code>toString</code></h4>\n<p>The following assigns the <code>toString</code> value of a <code>Date</code> object to <code>myVar</code>:</p>\n<pre>x = new Date();\nmyVar=x.toString();   //assigns a value to myVar similar to:\n     //Mon Sep 28 1998 14:36:22 GMT-0700 (Pacific Daylight Time)\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toDateString\">toDateString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toTimeString\">toTimeString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleString\">toLocaleString</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using toString",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString",
		"title": "Object.toString",
		"_id": "4eea84e2a4c86c4dba00008d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMSScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>object</em>.toString()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Every object has a <code>toString()</code> method that is automatically called when the object is to be represented as a text value or when an object is referred to in a manner in which a string is expected. By default, the <code>toString()</code> method is inherited by every object descended from <code>Object</code>. If this method is not overridden in a custom object, <code>toString()</code> returns &quot;[object <em>type</em>]&quot;, where <code><em>type</em></code> is the object type. The following code illustrates this:</p>\n<pre class = \"eval\">\nvar o = new Object();\no.toString();           // returns [object Object]\n</pre>\n<div class = \"note\">Starting in JavaScript 1.8.5 <code>toString()</code> called on <code>null</code> returns <code>[object <em>Null</em>]</code>, and <code>undefined</code> returns <code>[object <em>Undefined</em>]</code>, as defined in the 5th Edition of ECMAScript and a subsequent Errata. See <a title = \"en/JavaScript/Reference/Global Objects/Object/toString#Using toString to detect object type\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString#Using_toString_to_detect_object_type\">Using toString to detect object type</a>.</div>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_5\"><span id = \"Overriding_the_default_toString_method\"></span><h4 class = \"editable\">Overriding the default <code>toString</code> method</h4>\n<p>You can create a function to be called in place of the default <code>toString()</code> method. The <code>toString()</code> method takes no arguments and should return a string. The <code>toString()</code> method you create can be any value you want, but it will be most useful if it carries information about the object.</p>\n<p>The following code defines the <code>Dog</code> object type and creates <code>theDog</code>, an object of type <code>Dog</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">function Dog(name,breed,color,sex) {\n   this.name=name;\n   this.breed=breed;\n   this.color=color;\n   this.sex=sex;\n}\n\ntheDog = new Dog(&quot;Gabby&quot;,&quot;Lab&quot;,&quot;chocolate&quot;,&quot;female&quot;);</pre>\r\n        \n<p>If you call the <code>toString()</code> method on this custom object, it returns the default value inherited from <code>Object</code>:</p>\n<pre class = \"eval\">\ntheDog.toString(); //returns [object Object]\n</pre>\n<p>The following code creates and assigns <code>dogToString()</code> to override the default <code>toString()</code> method. This function generates a string containing the name, breed, color, and sex of the object, in the form &quot;<code>property = value;</code>&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">Dog.prototype.toString = function dogToString() {\n  var ret = &quot;Dog &quot; + this.name + &quot; is a &quot; + this.sex + &quot; &quot; + this.color + &quot; &quot; + this.breed;\n  return ret;\n}</pre>\r\n        \n<p>With the preceding code in place, any time <code>theDog</code> is used in a string context, JavaScript automatically calls the <code>dogToString()</code> function, which returns the following string:</p>\n<pre class = \"eval\">\nDog Gabby is a female chocolate Lab\n</pre>\n</div><div id = \"section_6\"><span id = \"Using_toString_to_detect_object_type\"></span><span id = \"Using_toString()_to_detect_object_class\"></span><h4 class = \"editable\">Using toString() to detect object class</h4>\n<p><code>toString()</code> can be used with every object and allows you to get its class. To use the <code>Object.prototype.toString()</code> with every object, you need to call <code>Function.prototype.call()</code> or <code>Function.prototype.apply()</code> on it, passing the object you want to inspect as the first parameter called <code>thisArg</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">var toString = Object.prototype.toString;\n\ntoString.call(new Date); // [object Date]\ntoString.call(new String); // [object String]\ntoString.call(Math); // [object Math]\n\n//Since JavaScript 1.8.5\ntoString.call(undefined); // [object Undefined]\ntoString.call(null); // [object Null]</pre>\r\n        </div></div>",
			"<div id = \"section_5\"><span id = \"Overriding_the_default_toString_method\"></span><h4 class = \"editable\">Overriding the default <code>toString</code> method</h4>\n<p>You can create a function to be called in place of the default <code>toString()</code> method. The <code>toString()</code> method takes no arguments and should return a string. The <code>toString()</code> method you create can be any value you want, but it will be most useful if it carries information about the object.</p>\n<p>The following code defines the <code>Dog</code> object type and creates <code>theDog</code>, an object of type <code>Dog</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">function Dog(name,breed,color,sex) {\n   this.name=name;\n   this.breed=breed;\n   this.color=color;\n   this.sex=sex;\n}\n\ntheDog = new Dog(&quot;Gabby&quot;,&quot;Lab&quot;,&quot;chocolate&quot;,&quot;female&quot;);</pre>\r\n        \n<p>If you call the <code>toString()</code> method on this custom object, it returns the default value inherited from <code>Object</code>:</p>\n<pre class = \"eval\">\ntheDog.toString(); //returns [object Object]\n</pre>\n<p>The following code creates and assigns <code>dogToString()</code> to override the default <code>toString()</code> method. This function generates a string containing the name, breed, color, and sex of the object, in the form &quot;<code>property = value;</code>&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">Dog.prototype.toString = function dogToString() {\n  var ret = &quot;Dog &quot; + this.name + &quot; is a &quot; + this.sex + &quot; &quot; + this.color + &quot; &quot; + this.breed;\n  return ret;\n}</pre>\r\n        \n<p>With the preceding code in place, any time <code>theDog</code> is used in a string context, JavaScript automatically calls the <code>dogToString()</code> function, which returns the following string:</p>\n<pre class = \"eval\">\nDog Gabby is a female chocolate Lab\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"Using_toString_to_detect_object_type\"></span><span id = \"Using_toString()_to_detect_object_class\"></span><h4 class = \"editable\">Using toString() to detect object class</h4>\n<p><code>toString()</code> can be used with every object and allows you to get its class. To use the <code>Object.prototype.toString()</code> with every object, you need to call <code>Function.prototype.call()</code> or <code>Function.prototype.apply()</code> on it, passing the object you want to inspect as the first parameter called <code>thisArg</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">var toString = Object.prototype.toString;\n\ntoString.call(new Date); // [object Date]\ntoString.call(new String); // [object String]\ntoString.call(Math); // [object Math]\n\n//Since JavaScript 1.8.5\ntoString.call(undefined); // [object Undefined]\ntoString.call(null); // [object Null]</pre>\r\n        </div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">toSource</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">valueOf</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Examples",
			"Overriding the default toString method",
			"Using toString() to detect object class",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toTimeString",
		"title": "Date.toTimeString",
		"_id": "4eea84e2a4c86c4dba00008e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>date</em>.toTimeString()</code></p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">Date</a> instances refer to a specific point in time. Calling <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toString\">toString</a> will return the date formatted in a human readable form in American English. In <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a>, this consists of the date portion (day, month, and year) followed by the time portion (hours, minutes, seconds, and time zone). Sometimes it is desirable to obtain a string of the time portion; such a thing can be accomplished with the <code>toTimeString</code> method.</p>\n<p>The <code>toTimeString</code> method is especially useful because compliant engines implementing <a title = \"en/ECMAScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a> may differ in the string obtained from <code>toString</code> for <code>Date</code> objects, as the format is implementation-dependent; simple string slicing approaches may not produce consistent results across multiple engines.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n</div>",
			"<div id = \"section_4\"><span id = \"Example:_A_basic_usage_of_toTimeString\"></span><h3 class = \"editable\">Example: A basic usage of <code>toTimeString</code></h3>\n<pre class = \"eval\">\nvar d = new Date(1993, 6, 28, 14, 39, 7);\nprintln(d.toString()); // prints Wed Jul 28 1993 14:39:07 GMT-0600 (PDT)\nprintln(d.toTimeString()); // prints 14:39:07 GMT-0600 (PDT)\n</pre>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleTimeString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString\">toLocaleTimeString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toDateString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toDateString\">toDateString</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toString\">toString</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Syntax",
			"Description",
			"Example",
			"Example: A basic usage of toTimeString",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/valueOf",
		"title": "Date.valueOf",
		"_id": "4eea84e4a4c86c4dba00008f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the primitive value of a Date object.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\" title = \"en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nvalueOf()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>valueOf</code> method returns the primitive value of a <code>Date</code> object as a number data type, the number of milliseconds since midnight 01 January, 1970 UTC.\n</p><p>This method is functionally equivalent to the <a title = \"en/JavaScript/Reference/Global_Objects/Date/getTime\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime\">getTime</a> method.\n</p><p>This method is usually called internally by JavaScript and not explicitly in code.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_valueOf\"></span><h4 class = \"editable\"> Example: Using <code>valueOf</code> </h4>\n<pre class = \"eval\">x = new Date(56, 6, 17);\nmyVar = x.valueOf();      //assigns -424713600000 to myVar\n</pre>\n<p><br/>\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_valueOf\"></span><h4 class = \"editable\"> Example: Using <code>valueOf</code> </h4>\n<pre class = \"eval\">x = new Date(56, 6, 17);\nmyVar = x.valueOf();      //assigns -424713600000 to myVar\n</pre>\n<p><br/>\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.valueOf</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Date/getTime\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime\">getTime</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using valueOf ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf",
		"title": "Object.valueOf",
		"_id": "4eea84e4a4c86c4dba000090",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the primitive value of the specified object\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nvalueOf()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>JavaScript calls the <code>valueOf</code> method to convert an object to a primitive value. You rarely need to invoke the <code>valueOf</code> method yourself; JavaScript automatically invokes it when encountering an object where a primitive value is expected.\n</p><p>By default, the <code>valueOf</code> method is inherited by every object descended from <code>Object</code>. Every built-in core object overrides this method to return an appropriate value. If an object has no primitive value, <code>valueOf</code> returns the object itself, which is displayed as:\n</p>\n<pre>\n[object Object]\n</pre>\n<p>You can use <code>valueOf</code> within your own code to convert a built-in object into a primitive value. When you create a custom object, you can override <code>Object.valueOf</code> to call a custom method instead of the default <code>Object</code> method.\n</p>\n<div id = \"section_5\"><span id = \"Overriding_valueOf_for_custom_objects\"></span><h4 class = \"editable\"> Overriding <code>valueOf</code> for custom objects </h4>\n<p>You can create a function to be called in place of the default <code>valueOf</code> method. Your function must take no arguments.\n</p><p>Suppose you have an object type <code>myNumberType</code> and you want to create a <code>valueOf</code> method for it. The following code assigns a user-defined function to the object's <code>valueOf</code> method:\n</p>\n<pre>\nmyNumberType.prototype.valueOf = new Function(functionText)\n</pre>\n<p>With the preceding code in place, any time an object of type <code>myNumberType</code> is used in a context where it is to be represented as a primitive value, JavaScript automatically calls the function defined in the preceding code.\n</p><p>An object's <code>valueOf</code> method is usually invoked by JavaScript, but you can invoke it yourself as follows:\n</p>\n<pre>\nmyNumber.valueOf()\n</pre>\n</div><div id = \"section_6\"><span id = \"Note\"></span><h4 class = \"editable\">Note</h4>\n<p>Objects in string contexts convert via the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code> method, which is different from <code>String</code> objects converting to string primitives using <code>valueOf</code>. All objects have a string conversion, if only &quot;<code>[object <em>type</em>]</code>&quot;. But many objects do not convert to number, boolean, or function.</p></div></div>",
			"<div id = \"section_5\"><span id = \"Overriding_valueOf_for_custom_objects\"></span><h4 class = \"editable\"> Overriding <code>valueOf</code> for custom objects </h4>\n<p>You can create a function to be called in place of the default <code>valueOf</code> method. Your function must take no arguments.\n</p><p>Suppose you have an object type <code>myNumberType</code> and you want to create a <code>valueOf</code> method for it. The following code assigns a user-defined function to the object's <code>valueOf</code> method:\n</p>\n<pre>\nmyNumberType.prototype.valueOf = new Function(functionText)\n</pre>\n<p>With the preceding code in place, any time an object of type <code>myNumberType</code> is used in a context where it is to be represented as a primitive value, JavaScript automatically calls the function defined in the preceding code.\n</p><p>An object's <code>valueOf</code> method is usually invoked by JavaScript, but you can invoke it yourself as follows:\n</p>\n<pre>\nmyNumber.valueOf()\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"Note\"></span><h4 class = \"editable\">Note</h4>\n<p>Objects in string contexts convert via the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code> method, which is different from <code>String</code> objects converting to string primitives using <code>valueOf</code>. All objects have a string conversion, if only &quot;<code>[object <em>type</em>]</code>&quot;. But many objects do not convert to number, boolean, or function.</p></div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/parseInt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseInt\">parseInt</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Overriding valueOf for custom objects ",
			"Note",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter",
		"title": "Object.DefineGetter",
		"_id": "4eea84e4a4c86c4dba000091",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Binds an object's property to a function to be called when that property is looked up.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.__defineGetter__(<em>sprop</em>, <em>fun</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>sprop</code></dt> <dd>a string containing the name of the property to bind to the given function</dd>\n</dl>\n<dl> <dt><code>fun</code></dt> <dd>a function to be bound to a lookup of the specified property</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>__defineGetter__</code> allows a <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/get_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/get\">getter</a> to be defined on a pre-existing object.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Operators/Special_Operators/get_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/get\">get</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupGetter\">__lookupGetter__</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Creating_New_Objects/Defining_Getters_and_Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters\">JS Guide:Defining Getters and Setters</a></li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter",
		"title": "Object.DefineSetter",
		"_id": "4eea84e7a4c86c4dba000092",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Binds an object's property to a function to be called when an attempt is made to set that property.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.__defineSetter__(<em>sprop</em>, <em>fun</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>sprop</code></dt> <dd>a string containing the name of the property to be bound to the given function</dd>\n</dl>\n<dl> <dt><code>fun</code></dt> <dd>a function to be called when there is an attempt to set the specified property. This function takes the form</dd> <dd><code>function (<em>val</em>) { .&nbsp;.&nbsp;. }</code> <dl> <dt><code>val</code></dt> <dd>an alias for the variable that holds the value attempted to be assigned to <code>prop</code></dd> </dl> </dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>__defineSetter__</code> method allows a <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/set_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/set\">setter</a> to be defined on a pre-existing object.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Operators/Special_Operators/set_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/set\">set</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupSetter\">__lookupSetter__</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Creating_New_Objects/Defining_Getters_and_Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters\">JS Guide:Defining Getters and Setters</a></li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty",
		"title": "Object.HasOwnProperty",
		"_id": "4eea84e7a4c86c4dba000093",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a boolean indicating whether the object has the specified property.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.hasOwnProperty(<em>prop</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>prop</code></dt> <dd>The name of the property to test.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Every object descended from <code>Object</code> inherits the <code>hasOwnProperty</code> method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/in_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/in\"><code>in</code></a> operator, this method does not check down the object's prototype chain.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_hasOwnProperty_to_test_for_a_property.27s_existence\"></span><span id = \"Example:_Using_hasOwnProperty_to_test_for_a_property's_existence\"></span><h4 class = \"editable\">Example: Using <code>hasOwnProperty</code> to test for a property's existence</h4>\n<p>The following example determines whether the <code>o</code> object contains a property named <code>prop</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">o = new Object();\no.prop = 'exists';\n\nfunction changeO() {\n  o.newprop = o.prop;\n  delete o.prop;\n}\n\no.hasOwnProperty('prop');   //returns true\nchangeO();\no.hasOwnProperty('prop');   //returns false</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Example:_Direct_versus_inherited_properties\"></span><h4 class = \"editable\">Example: Direct versus inherited properties</h4>\n<p>The following example differentiates between direct properties and properties inherited through the prototype chain:</p>\n\r\n          <pre name = \"code\" class = \"js\">o = new Object();\no.prop = 'exists';\no.hasOwnProperty('prop');             // returns true\no.hasOwnProperty('toString');         // returns false\no.hasOwnProperty('hasOwnProperty');   // returns false</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example:_Itarate_over_properties_not_considering_inherited_properties\"></span><span id = \"Example:_Iterating_over_the_properties_of_an_object\"></span><h4 class = \"editable\">Example: Iterating over the properties of an object</h4>\n<p>The following example shows how to iterate over the properties of an object without executing on inherit properties.</p>\n\r\n          <pre name = \"code\" class = \"js\">var buz = {\n    fog: 'stack'\n};\n\nfor (var name in buz) {\n    if (buz.hasOwnProperty(name)) {\n        alert(&quot;this is fog (&quot; + name + &quot;) for sure. Value: &quot; + buz[name]);\n    }\n    else {\n        alert(name); // toString or something else\n    }\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_hasOwnProperty_to_test_for_a_property.27s_existence\"></span><span id = \"Example:_Using_hasOwnProperty_to_test_for_a_property's_existence\"></span><h4 class = \"editable\">Example: Using <code>hasOwnProperty</code> to test for a property's existence</h4>\n<p>The following example determines whether the <code>o</code> object contains a property named <code>prop</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">o = new Object();\no.prop = 'exists';\n\nfunction changeO() {\n  o.newprop = o.prop;\n  delete o.prop;\n}\n\no.hasOwnProperty('prop');   //returns true\nchangeO();\no.hasOwnProperty('prop');   //returns false</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Direct_versus_inherited_properties\"></span><h4 class = \"editable\">Example: Direct versus inherited properties</h4>\n<p>The following example differentiates between direct properties and properties inherited through the prototype chain:</p>\n\r\n          <pre name = \"code\" class = \"js\">o = new Object();\no.prop = 'exists';\no.hasOwnProperty('prop');             // returns true\no.hasOwnProperty('toString');         // returns false\no.hasOwnProperty('hasOwnProperty');   // returns false</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Itarate_over_properties_not_considering_inherited_properties\"></span><span id = \"Example:_Iterating_over_the_properties_of_an_object\"></span><h4 class = \"editable\">Example: Iterating over the properties of an object</h4>\n<p>The following example shows how to iterate over the properties of an object without executing on inherit properties.</p>\n\r\n          <pre name = \"code\" class = \"js\">var buz = {\n    fog: 'stack'\n};\n\nfor (var name in buz) {\n    if (buz.hasOwnProperty(name)) {\n        alert(&quot;this is fog (&quot; + name + &quot;) for sure. Value: &quot; + buz[name]);\n    }\n    else {\n        alert(name); // toString or something else\n    }\n}</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\">for...in</a><br/>\n<a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/in_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/in\">in</a><br/>\n<a title = \"https://developer.mozilla.org/en/JavaScript/Guide/Inheritance_Revisited\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Inheritance_Revisited\">inheritance</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using hasOwnProperty to test for a property's existence",
			"Example: Direct versus inherited properties",
			"Example: Iterating over the properties of an object",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf",
		"title": "Object.IsPrototypeOf",
		"_id": "4eea84e9a4c86c4dba000094",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Tests for an object in another object's prototype chain.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>prototype</em>.isPrototypeOf(<em>object</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>prototype</dt> <dd>&nbsp; an object to be tested against each link in the prototype chain of the <strong>object</strong>&nbsp; argument</dd>\n</dl>\n<p><div class = \"note\"><strong>Note:</strong>&nbsp;<code>isPrototypeOf</code> differs from <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/instanceof_Operator\" title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/instanceof_Operator\">instanceof operator</a>. In the expression <code>object instanceof AFunction</code>, the <code>object</code> prototype chain is checked against <code>AFunction.prototype</code>, not against <code>AFunction</code> itself</div>\n</p>\n<dl> <dt>object</dt> <dd>the object whose prototype chain will be searched</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>isPrototypeOf</code> allows you to check whether or not an object exists within another object's prototype chain.</p>\n<p>For example, consider the following prototype chain:</p>\n<pre class = \"eval\">function Fee() {\n  // . . .\n}\n\nfunction Fi() {\n  // . . .\n}\nFi.prototype = new Fee();\n\nfunction Fo() {\n  // . . .\n}\nFo.prototype = new Fi();\n\nfunction Fum() {\n  // . . .\n}\nFum.prototype = new Fo();\n</pre>\n<p>Later on down the road, if you instantiate <code>Fum</code> and need to check if <code>Fi</code>'s prototype exists within the <code>Fum</code> prototype chain, you could do this:</p>\n<pre class = \"eval\">var fum = new Fum();\n. . .\n\nif (Fi.prototype.isPrototypeOf(fum)) {\n  // do something safe\n}\n</pre>\n<p>This, along with the <code>instanceof</code> operator particularly comes in handy if you have code that can only function when dealing with objects descended from a specific prototype chain, e.g., to guarantee that certain methods or properties will be present on that object.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/instanceof_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/instanceof\">instanceof</a></li> <li><a class = \"internal\" title = \"En/Core JavaScript 1.5 Reference/Global Objects/Object/GetPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf\">getProtoypeOf</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter",
		"title": "Object.LookupGetter",
		"_id": "4eea84e9a4c86c4dba000095",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Return the function bound as a getter to the specified property.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None, but see <a title = \"en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor\">getOwnPropertyDescriptor</a> and <a title = \"en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf\">getPrototypeOf</a>.</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.__lookupGetter__(<em>sprop</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>sprop</code></dt> <dd>a string containing the name of the property whose getter should be returned</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If a getter has been defined for an object's property, it's not possible to reference the getter function through that property, because that property refers to the return value of that function. <code>__lookupGetter__</code> can be used to obtain a reference to the getter function.</p>\n<p>It is now possible to do this in a standardized way using <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor\" title = \"en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor\">getOwnPropertyDescriptor</a> and <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/getPrototypeOf\">getPrototypeOf</a>.</p></div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/get_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/get\">get</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></li> <li><a class = \"internal\" title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Creating_New_Objects/Defining_Getters_and_Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters\">JS Guide:Defining Getters and Setters</a></li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter",
		"title": "Object.LookupSetter",
		"_id": "4eea84eaa4c86c4dba000096",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Return the function bound as a setter to the specified property.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.__lookupSetter__(<em>sprop</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>sprop</code></dt> <dd>a string containing the name of the property whose setter should be returned</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If a setter has been defined for an object's property, it's not possible to reference the setter function through that property, because that property refers to the return value of that function. <code>__lookupSetter__</code> can be used to obtain a reference to the setter function.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/set_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/set\">set</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Creating_New_Objects/Defining_Getters_and_Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters\">JS Guide:Defining Getters and Setters</a></li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod",
		"title": "Object.NoSuchMethod",
		"_id": "4eea84eca4c86c4dba000097",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Executes a function when a non-existent method is called on an object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>obj</em>.__noSuchMethod__ = <em>fun</em></code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>fun</code></dt> <dd>a function that takes the form</dd> <dd><code>function (<em>id</em>, <em>args</em>) { .&nbsp;.&nbsp;. }</code> <dl> <dt><code>id</code></dt> <dd>the name of the non-existent method that was called</dd> <dt><code>args</code></dt> <dd>an array of the arguments passed to the method</dd> </dl> </dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>By default, an attempt to call a method that doesn't exist on an object results in a <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/TypeError\">TypeError</a> being thrown. This behavior can be circumvented by defining a function at that object's <code>__noSuchMethod__</code> member. The function takes two arguments, the first is the name of the method attempted and the second is an array of the arguments that were passed in the method call. The second argument is an actual array (that is, it inherits through the <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/prototype\">Array prototype</a> chain) and not the array-like <a title = \"en/Core_JavaScript_1.5_Reference/Functions/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments object</a>.</p>\n<p>If this method cannot be called, either as if <code>undefined</code> by default, if deleted, or if manually set to a non-function, the JavaScript engine will revert to throwing <code>TypeError</code>s.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n<p><code>__noSuchMethod__</code> can be used to simulate multiple inheritance.</p>\n<p>An example of code that implements a primitive form of multiple inheritance is shown below.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Doesn't work with multiple inheritance objects as parents\n\nfunction noMethod(name, args) {\n  var parents=this.__parents_;\n  \n  // Go through all parents\n  \n  for (var i=0;i&lt;parents.length;i++) {\n    // If we find a function on the parent, we call it\n    if (typeof parents[i][name] ==&quot;function&quot;) {\n      return parents[i][name].apply(this, args);\n    }\n  }\n  \n  // If we get here, the method hasn't been found\n  \n  throw new TypeError;\n}\n\n// Used to add a parent for multiple inheritance\n\nfunction addParent(obj, parent) {\n  // If the object isn't initialized, initialize it\n  \n  if (!obj.__parents_) {\n    obj.__parents_=[];\n    obj.__noSuchMethod__=noMethod;\n  }\n  \n  // Add the parent\n  \n  obj.__parents_.push(parent);\n}</pre>\r\n        \n<p>An example of using this idea is shown below.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Example base class 1\n\nfunction NamedThing(name){\n  this.name=name;\n}\n\nNamedThing.prototype = {\n  getName: function() {return this.name;},\n  setName: function(newName) {this.name=newName;}\n}\n\n//Example base class 2\n\nfunction AgedThing(age){\n  this.age=age;\n}\n\nAgedThing.prototype = {\n  getAge: function(){return this.age;},\n  setAge: function(age){this.age=age;}\n}\n\n// Child class. inherits from NamedThing and AgedThing as well as defining address\n\nfunction Person(name, age, address){\n  addParent(this, NamedThing.prototype);\n  NamedThing.call(this, name);\n  addParent(this, AgedThing.prototype);\n  AgedThing.call(this, age);\n  this.address=address;\n}\n\nPerson.prototype = {\n  getAddr: function() {return this.address;},\n  setAddr: function(addr) {this.address=addr;}\n}\n\nvar bob=new Person(&quot;bob&quot;, 25, &quot;New York&quot;);\n\nconsole.log(&quot;getAge is &quot;+((&quot;getAge&quot; in bob)?&quot;in&quot;:&quot;not in&quot;)+&quot; bob&quot;);\nconsole.log(&quot;bob's age is: &quot;+bob.getAge());\nconsole.log(&quot;getName is &quot;+((&quot;getName&quot; in bob)?&quot;in&quot;:&quot;not in&quot;)+&quot; bob&quot;);\nconsole.log(&quot;bob's name is: &quot;+bob.getName());\nconsole.log(&quot;getAddr is &quot;+((&quot;getAddr&quot; in bob)?&quot;in&quot;:&quot;not in&quot;)+&quot; bob&quot;);\nconsole.log(&quot;bob's address is: &quot;+bob.getAddr());</pre>\r\n        \n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Example"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable",
		"title": "Object.PropertyIsEnumerable",
		"_id": "4eea84eda4c86c4dba000098",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a Boolean indicating whether the specified property is enumerable.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.propertyIsEnumerable(<em>prop</em>)</code></p></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>prop</code>&nbsp;</dt> <dd>The name of the property to test.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Every object has a <code>propertyIsEnumerable</code> method. This method can determine whether the specified property in an object can be enumerated by a <a title = \"en/Core_JavaScript_1.5_Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for...in\"><code>for...in</code></a> loop, with the exception of properties inherited through the prototype chain. If the object does not have the specified property, this method returns false.</p>\n<div class = \"note\"><strong>Note:</strong> Starting in JavaScript 1.8.1 (in Firefox 3.6), <code>propertyIsEnumerable(&quot;prototype&quot;)</code> returns false instead of true; this makes the result compliant with ECMAScript 5.</div>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_A_basic_use_of_propertyIsEnumerable\"></span><h4 class = \"editable\">Example: A basic use of <code>propertyIsEnumerable</code></h4>\n<p>The following example shows the use of <code>propertyIsEnumerable</code> on objects and arrays:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {};\nvar a = [];\no.prop = 'is enumerable';\na[0] = 'is enumerable';\n\no.propertyIsEnumerable('prop');   // returns true\na.propertyIsEnumerable(0);        // returns true</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Example:_User-defined_versus_built-in_objects\"></span><h4 class = \"editable\">Example: User-defined versus built-in objects</h4>\n<p>The following example demonstrates the enumerability of user-defined versus built-in properties:</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = ['is enumerable'];\n\na.propertyIsEnumerable(0);          // returns true\na.propertyIsEnumerable('length');   // returns false\n\nMath.propertyIsEnumerable('random');   // returns false\nthis.propertyIsEnumerable('Math');     // returns false</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example:_Direct_versus_inherited_properties\"></span><h4 class = \"editable\">Example: Direct versus inherited properties</h4>\n\r\n          <pre name = \"code\" class = \"js\">var a = [];\na.propertyIsEnumerable('constructor');         // returns false\n\nfunction firstConstructor()\n{\n  this.property = 'is not enumerable';\n}\nfirstConstructor.prototype.firstMethod = function () {};\n\nfunction secondConstructor()\n{\n  this.method = function method() { return 'is enumerable'; };\n}\n\nsecondConstructor.prototype = new firstConstructor;\nsecondConstructor.prototype.constructor = secondConstructor;\n\nvar o = new secondConstructor();\no.arbitraryProperty = 'is enumerable';\n\no.propertyIsEnumerable('arbitraryProperty');   // returns true\no.propertyIsEnumerable('method');              // returns true\no.propertyIsEnumerable('property');            // returns false\n\no.property = 'is enumerable';\n\no.propertyIsEnumerable('property');            // returns true\n\n// These return false as they are on the prototype which \n// propertyIsEnumerable does not consider (even though the last two\n// are iteratable with for-in)\no.propertyIsEnumerable('prototype'); // returns false (as of JS 1.8.1/FF3.6)\no.propertyIsEnumerable('constructor'); // returns false\no.propertyIsEnumerable('firstMethod'); // returns false</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_A_basic_use_of_propertyIsEnumerable\"></span><h4 class = \"editable\">Example: A basic use of <code>propertyIsEnumerable</code></h4>\n<p>The following example shows the use of <code>propertyIsEnumerable</code> on objects and arrays:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {};\nvar a = [];\no.prop = 'is enumerable';\na[0] = 'is enumerable';\n\no.propertyIsEnumerable('prop');   // returns true\na.propertyIsEnumerable(0);        // returns true</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Example:_User-defined_versus_built-in_objects\"></span><h4 class = \"editable\">Example: User-defined versus built-in objects</h4>\n<p>The following example demonstrates the enumerability of user-defined versus built-in properties:</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = ['is enumerable'];\n\na.propertyIsEnumerable(0);          // returns true\na.propertyIsEnumerable('length');   // returns false\n\nMath.propertyIsEnumerable('random');   // returns false\nthis.propertyIsEnumerable('Math');     // returns false</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Direct_versus_inherited_properties\"></span><h4 class = \"editable\">Example: Direct versus inherited properties</h4>\n\r\n          <pre name = \"code\" class = \"js\">var a = [];\na.propertyIsEnumerable('constructor');         // returns false\n\nfunction firstConstructor()\n{\n  this.property = 'is not enumerable';\n}\nfirstConstructor.prototype.firstMethod = function () {};\n\nfunction secondConstructor()\n{\n  this.method = function method() { return 'is enumerable'; };\n}\n\nsecondConstructor.prototype = new firstConstructor;\nsecondConstructor.prototype.constructor = secondConstructor;\n\nvar o = new secondConstructor();\no.arbitraryProperty = 'is enumerable';\n\no.propertyIsEnumerable('arbitraryProperty');   // returns true\no.propertyIsEnumerable('method');              // returns true\no.propertyIsEnumerable('property');            // returns false\n\no.property = 'is enumerable';\n\no.propertyIsEnumerable('property');            // returns true\n\n// These return false as they are on the prototype which \n// propertyIsEnumerable does not consider (even though the last two\n// are iteratable with for-in)\no.propertyIsEnumerable('prototype'); // returns false (as of JS 1.8.1/FF3.6)\no.propertyIsEnumerable('constructor'); // returns false\no.propertyIsEnumerable('firstMethod'); // returns false</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for...in\">for...in</a></p> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: A basic use of propertyIsEnumerable",
			"Example: User-defined versus built-in objects",
			"Example: Direct versus inherited properties",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch",
		"title": "Object.Unwatch",
		"_id": "4eea84eea4c86c4dba000099",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Removes a watchpoint set with the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/watch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch\">watch()</a></code> method.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>unwatch(<em>prop</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>prop</code></dt> <dd>The name of a property of the object to stop watching.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The JavaScript debugger has functionality similar to that provided by this method, as well as other debugging options. For information on the debugger, see <a title = \"en/Venkman\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Venkman\">Venkman</a>.</p>\n<p>By default, this method is inherited by every object descended from <code>Object</code>.</p>\n<div class = \"note\"><strong>Note:</strong> The reason for <code>unwatch()</code> to take the property name <em>prop</em> as its only parameter is due to the &quot;single handler allowing&quot; behavior of the <a title = \"watch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch\"><code>watch()</code></a> method.</div></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<p>See <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/watch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch\">watch()</a></code>.</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch",
		"title": "Object.Watch",
		"_id": "4eea84eea4c86c4dba00009a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Watches for a property to be assigned a value and runs a function when that occurs.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>object</em>.watch(<em>prop</em>, <em>handler</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>prop</code></dt> <dd>The name of a property of the object on which you wish to monitor changes.</dd>\n</dl>\n<dl> <dt><code>handler</code></dt> <dd>A function to call when the specified property's value changes.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<div class = \"warning\"><strong>Warning:</strong> Generally you should avoid using <code>watch()</code> and <a title = \"/en/JavaScript/Reference/Global_Objects/Object/unwatch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch\"><code>unwatch()</code></a> when possible. These two methods are implemented only in Gecko, and they're intended primarily for debugging use. In addition, using watchpoints has a serious negative impact on performance, which is especially true when used on global objects, such as window. You can usually use setters and getters or proxies instead. See <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch#Compatibility\">Compatibility</a> for details.</div>\n<p>Watches for assignment to a property named <code>prop</code> in this object, calling <code>handler(prop, oldval, newval)</code> whenever <code>prop</code> is set and storing the return value in that property. A watchpoint can filter (or nullify) the value assignment, by returning a modified <code>newval</code> (or by returning <code>oldval</code>).</p>\n<p>If you delete a property for which a watchpoint has been set, that watchpoint does not disappear. If you later recreate the property, the watchpoint is still in effect.</p>\n<p>To remove a watchpoint, use the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/unwatch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch\">unwatch()</a></code> method. By default, the <code>watch</code> method is inherited by every object descended from <code>Object</code>.</p>\n<p>The JavaScript debugger has functionality similar to that provided by this method, as well as other debugging options. For information on the debugger, see <a title = \"en/Venkman\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Venkman\">Venkman</a>.</p>\n<p>In Firefox, <code>handler</code> is only called from assignments in script, not from native code. For example, <code>window.watch('location', myHandler)</code> will not call <code>myHandler</code> if the user clicks a link to an anchor within the current document. However, <code>window.location += '#myAnchor'</code> will call <code>myHandler</code>.</p>\n<div class = \"note\"><strong>Note:</strong> Calling <code>watch()</code> on an object for a specific property overrides and previous handler attached for that property.</div>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Example:_Using_watch_and_unwatch\"></span><h3 class = \"editable\">Example: Using <code>watch</code> and <code>unwatch</code></h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {p:1};\no.watch(&quot;p&quot;,\n  function (id, oldval, newval) {\n    console.log(&quot;o.&quot; + id + &quot; changed from &quot; + oldval + &quot; to &quot; + newval);\n    return newval;\n  });\n\no.p = 2;\no.p = 3;\ndelete o.p;\no.p = 4;\n\no.unwatch('p');\no.p = 5;</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">o.p changed from 1 to 2\no.p changed from 2 to 3\no.p changed from undefined to 4\n</pre>\n</div><div id = \"section_7\"><span id = \"Example:_Using_watch_to_validate_an_object.27s_properties\"></span><span id = \"Example:_Using_watch_to_validate_an_object's_properties\"></span><h3 class = \"editable\">Example: Using <code>watch</code> to validate an object's properties</h3>\n<p>You can use <code>watch</code> to test any assignment to an object's properties. This example ensures that every Person always has a valid name and an age between 0 and 200.</p>\n\r\n          <pre name = \"code\" class = \"js\">Person = function(name,age) {\n  this.watch(&quot;age&quot;, Person.prototype._isValidAssignment);\n  this.watch(&quot;name&quot;, Person.prototype._isValidAssignment);\n  this.name = name;\n  this.age = age;\n}\n\nPerson.prototype.toString = function() {\n  return this.name + &quot;, &quot; + this.age;\n};\n\nPerson.prototype._isValidAssignment = function(id, oldval, newval) {\n  if (id === &quot;name&quot; &amp;&amp; (!newval || newval.length &gt; 30)) {\n    throw new RangeError(&quot;invalid name for &quot; + this);\n  }\n  if (id === &quot;age&quot;  &amp;&amp; (newval &lt; 0 || newval &gt; 200)) {\n    throw new RangeError(&quot;invalid age for &quot; + this);\n  }\n  return newval;\n}\n\nwill = new Person(&quot;Will&quot;, 29);\nprint(will);   // Will, 29\n\ntry {\n  will.name = &quot;&quot;;\n} catch (e) {\n  print(e);\n}\n\ntry {\n  will.age = -4;\n} catch (e) {\n  print(e);\n}</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">Will, 29\nRangeError: invalid name for Will, 29\nRangeError: invalid age for Will, 29\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_watch_and_unwatch\"></span><h3 class = \"editable\">Example: Using <code>watch</code> and <code>unwatch</code></h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {p:1};\no.watch(&quot;p&quot;,\n  function (id, oldval, newval) {\n    console.log(&quot;o.&quot; + id + &quot; changed from &quot; + oldval + &quot; to &quot; + newval);\n    return newval;\n  });\n\no.p = 2;\no.p = 3;\ndelete o.p;\no.p = 4;\n\no.unwatch('p');\no.p = 5;</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">o.p changed from 1 to 2\no.p changed from 2 to 3\no.p changed from undefined to 4\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_watch_to_validate_an_object.27s_properties\"></span><span id = \"Example:_Using_watch_to_validate_an_object's_properties\"></span><h3 class = \"editable\">Example: Using <code>watch</code> to validate an object's properties</h3>\n<p>You can use <code>watch</code> to test any assignment to an object's properties. This example ensures that every Person always has a valid name and an age between 0 and 200.</p>\n\r\n          <pre name = \"code\" class = \"js\">Person = function(name,age) {\n  this.watch(&quot;age&quot;, Person.prototype._isValidAssignment);\n  this.watch(&quot;name&quot;, Person.prototype._isValidAssignment);\n  this.name = name;\n  this.age = age;\n}\n\nPerson.prototype.toString = function() {\n  return this.name + &quot;, &quot; + this.age;\n};\n\nPerson.prototype._isValidAssignment = function(id, oldval, newval) {\n  if (id === &quot;name&quot; &amp;&amp; (!newval || newval.length &gt; 30)) {\n    throw new RangeError(&quot;invalid name for &quot; + this);\n  }\n  if (id === &quot;age&quot;  &amp;&amp; (newval &lt; 0 || newval &gt; 200)) {\n    throw new RangeError(&quot;invalid age for &quot; + this);\n  }\n  return newval;\n}\n\nwill = new Person(&quot;Will&quot;, 29);\nprint(will);   // Will, 29\n\ntry {\n  will.name = &quot;&quot;;\n} catch (e) {\n  print(e);\n}\n\ntry {\n  will.age = -4;\n} catch (e) {\n  print(e);\n}</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">Will, 29\nRangeError: invalid name for Will, 29\nRangeError: invalid age for Will, 29\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<ul> <li>This <span class = \"external\"><a class = \"link-https\" title = \"https://gist.github.com/384583\" rel = \"external\" href = \"https://gist.github.com/384583\" target = \"_blank\">Polyfill</a> that offers watch to all ES5 compatible browser</span></li> <li>Using a <a title = \"Proxy\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Proxy\">Proxy</a> enables you do that even deeper changes to how property assignments work</li>\n</ul>\n</div>",
			"<div id = \"section_9\"><span id = \"See_Also\"></span><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/unwatch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch\">unwatch()</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using watch and unwatch",
			"Example: Using watch to validate an object's properties",
			"Compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/prototype",
		"title": "Boolean.prototype",
		"_id": "4eea84f0a4c86c4dba00009b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the prototype for the <a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\"><code>Boolean</code></a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\"><code>Boolean</code></a> instances inherit from <strong><code>Boolean.prototype</code></strong>. You can use the constructor's prototype object to add properties or methods to all <code>Boolean</code> instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/constructor\"><code>constructor</code></a></dt> <dd>Returns the function that created an instance's prototype. This is the <a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\"><code>Boolean</code></a> function by default.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toSource\">toSource</a></dt> <dd>Returns a string containing the source of the <a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\"><code>Boolean</code></a> object; you can use this string to create an equivalent object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toString\"><code>toString</code></a></dt> <dd>Returns a string of either &quot;true&quot; or &quot;false&quot; depending upon the value of the object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a>method.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/valueOf\"><code>valueOf</code></a></dt> <dd>Returns the primitive value of the <a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\"><code>Boolean</code></a> object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\"><code>Object.prototype.valueOf</code></a> method.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/constructor",
		"title": "Boolean.constructor",
		"_id": "4eea84f1a4c86c4dba00009c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a reference to the <a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">Boolean</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\" title = \"en/JavaScript/Reference/Global_Objects/Boolean\"><code>Boolean</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>See <a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\">Object.constructor</a>.\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toSource",
		"title": "Boolean.toSource",
		"_id": "4eea84f2a4c86c4dba00009d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the source code of the object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\" title = \"en/JavaScript/Reference/Global_Objects/Boolean\"><code>Boolean</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><em>boolean</em>.toSource()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>toSource</code> method returns the following values:\n</p><p>\n</p>\n<ul><li> For the built-in <code>Boolean</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:\n</li></ul>\n<pre class = \"eval\">function Boolean() {\n   [native code]\n}\n</pre>\n<ul><li> For instances of <code>Boolean</code>, <code>toSource</code> returns a string representing the source code.\n</li></ul>\n<p>This method is usually called internally by JavaScript and not explicitly in code.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.toSource</a>\n</p> </div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toString",
		"title": "Boolean.toString",
		"_id": "4eea84f2a4c86c4dba00009e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the specified Boolean object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\" title = \"en/JavaScript/Reference/Global_Objects/Boolean\"><code>Boolean</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>bool</em>.toString()</code></p></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">Boolean</a> object overrides the <code>toString</code> method of the <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a> object; it does not inherit <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a>. For Boolean objects, the <code>toString</code> method returns a string representation of the object.</p>\n<p>JavaScript calls the <code>toString</code> method automatically when a Boolean is to be represented as a text value or when a Boolean is referred to in a string concatenation.</p>\n<p>For Boolean objects and values, the built-in <code>toString</code> method returns the string &quot;<code>true</code>&quot; or &quot;<code>false</code>&quot; depending on the value of the boolean object. In the following code, <code>flag.toString</code> returns &quot;<code>true</code>&quot;.</p>\n<pre>\nvar flag = new Boolean(true)\nvar myVar = flag.toString()\n</pre></div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a>\n</p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			" Parameters ",
			"Description",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/valueOf",
		"title": "Boolean.valueOf",
		"_id": "4eea84f3a4c86c4dba00009f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the primitive value of a Boolean object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\" title = \"en/JavaScript/Reference/Global_Objects/Boolean\"><code>Boolean</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>bool</em>.valueOf()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>valueOf</code> method of <a title = \"en/JavaScript/Reference/Global_Objects/Boolean\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean\">Boolean</a> returns the primitive value of a Boolean object or literal Boolean as a Boolean data type.</p>\n<p>This method is usually called internally by JavaScript and not explicitly in code.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_valueOf\"></span><h4 class = \"editable\">Example: Using <code>valueOf</code></h4>\n<pre>\nx = new Boolean();\nmyVar = x.valueOf()      //assigns false to myVar\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_valueOf\"></span><h4 class = \"editable\">Example: Using <code>valueOf</code></h4>\n<pre>\nx = new Boolean();\nmyVar = x.valueOf()      //assigns false to myVar\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.valueOf</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using valueOf",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString",
		"title": "Object.ToLocaleString",
		"_id": "4eea84f5a4c86c4dba0000a0",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the object. This method is meant to be overriden by derived objects for locale-specific purposes.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object\">Object</a></td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262 Edition 3</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\ntoLocaleString()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>Object</code>'s <code>toLocaleString</code> returns the result of calling <code><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\">toString</a></code>.\n</p><p>This function is provided to give objects a generic <code>toLocaleString</code> method, even though not all may use it. Currently, only <code>Array</code>, <code>Number</code>, and <code>Date</code> override <code>toLocaleString</code>.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\">toString</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length",
		"title": "Array.length",
		"_id": "4eea84f6a4c86c4dba0000a1",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>An unsigned, 32-bit integer that specifies the number of elements in an array.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The value of the <code>length</code> property is an integer with a positive sign and a value less than 2 to the 32 power (2<sup>32</sup>).\n</p><p>You can set the <code>length</code> property to truncate an array at any time. When you extend an array by changing its <code>length</code> property, the number of actual elements does not increase; for example, if you set <code>length</code> to 3 when it is currently 2, the array still contains only 2 elements.\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_4\"><span id = \"Example:_Iterating_over_an_array\"></span><h4 class = \"editable\"> Example: Iterating over an array </h4>\n<p>In the following example the array <code>numbers</code> is iterated through by looking at the <code>length</code> property to see how many elements it has. Each value is then doubled.\n</p>\n<pre>\nvar numbers = [1,2,3,4,5];\nfor (var i = 0; i &lt; numbers.length; i++) {\n  numbers[i] *= 2;\n}\n// numbers is now [2,4,6,8,10];\n</pre>\n</div><div id = \"section_5\"><span id = \"Example:_Shortening_an_array\"></span><h4 class = \"editable\"> Example: Shortening an array </h4>\n<p>The following example shortens the array <code>statesUS</code> to a length of 50 if the current length is greater than 50.\n</p>\n<pre>\nif (statesUS.length &gt; 50) {\n   statesUS.length=50\n}\n</pre>\n\n\n</div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Iterating_over_an_array\"></span><h4 class = \"editable\"> Example: Iterating over an array </h4>\n<p>In the following example the array <code>numbers</code> is iterated through by looking at the <code>length</code> property to see how many elements it has. Each value is then doubled.\n</p>\n<pre>\nvar numbers = [1,2,3,4,5];\nfor (var i = 0; i &lt; numbers.length; i++) {\n  numbers[i] *= 2;\n}\n// numbers is now [2,4,6,8,10];\n</pre>\n</div>",
			"<div id = \"section_5\"><span id = \"Example:_Shortening_an_array\"></span><h4 class = \"editable\"> Example: Shortening an array </h4>\n<p>The following example shortens the array <code>statesUS</code> to a length of 50 if the current length is greater than 50.\n</p>\n<pre>\nif (statesUS.length &gt; 50) {\n   statesUS.length=50\n}\n</pre>\n\n\n</div>"
		],
		"sectionNames": [
			"Summary",
			" Description ",
			" Examples ",
			" Example: Iterating over an array ",
			" Example: Shortening an array "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join",
		"title": "Array.join",
		"_id": "4eea84f7a4c86c4dba0000a2",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Joins all elements of an array into a string.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\" title = \"en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.join(<em>separator</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>separator</code>&nbsp;</dt> <dd>Specifies a string to separate each element of the array. The separator is converted to a string if necessary. If omitted, the array elements are separated with a comma.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The string conversions of all array elements are joined into one string.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Joining_an_array_three_different_ways\"></span><h4 class = \"editable\">Example: Joining an array three different ways</h4>\n<p>The following example creates an array, <code>a</code>, with three elements, then joins the array three times: using the default separator, then a comma and a space, and then a plus.</p>\n<pre class = \"eval\">\nvar a = new Array(&quot;Wind&quot;,&quot;Rain&quot;,&quot;Fire&quot;);\nvar myVar1 = a.join();      // assigns &quot;Wind,Rain,Fire&quot; to myVar1\nvar myVar2 = a.join(&quot;, &quot;);  // assigns &quot;Wind, Rain, Fire&quot; to myVar2\nvar myVar3 = a.join(&quot; + &quot;); // assigns &quot;Wind + Rain + Fire&quot; to myVar3\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Joining_an_array_three_different_ways\"></span><h4 class = \"editable\">Example: Joining an array three different ways</h4>\n<p>The following example creates an array, <code>a</code>, with three elements, then joins the array three times: using the default separator, then a comma and a space, and then a plus.</p>\n<pre class = \"eval\">\nvar a = new Array(&quot;Wind&quot;,&quot;Rain&quot;,&quot;Fire&quot;);\nvar myVar1 = a.join();      // assigns &quot;Wind,Rain,Fire&quot; to myVar1\nvar myVar2 = a.join(&quot;, &quot;);  // assigns &quot;Wind, Rain, Fire&quot; to myVar2\nvar myVar3 = a.join(&quot; + &quot;); // assigns &quot;Wind + Rain + Fire&quot; to myVar3\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/String/split\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split\">String:split</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString\">toString</a></li>\n</ul> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Joining an array three different ways",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice",
		"title": "Array.slice",
		"_id": "4eea84f8a4c86c4dba0000a3",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a one-level deep copy of a portion of an array.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\" title = \"en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.slice(<em>begin</em>[, <em>end</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>begin</code>&nbsp;</dt> <dd>Zero-based index at which to begin extraction.</dd> <dd>As a negative index, <code>start</code> indicates an offset from the end of the sequence. <code>slice(-2)</code> extracts the second-to-last element and the last element in the sequence.</dd>\n</dl>\n<dl> <dt><code>end</code>&nbsp;</dt> <dd>Zero-based index at which to end extraction. <code>slice</code> extracts up to but not including <code>end</code>.</dd> <dd><code>slice(1,4)</code> extracts the second element through the fourth element (elements indexed 1, 2, and 3).</dd> <dd>As a negative index, <code>end</code> indicates an offset from the end of the sequence. <code>slice(2,-1)</code> extracts the third element through the second-to-last element in the sequence.</dd> <dd>If <code>end</code> is omitted, <code>slice</code> extracts to the end of the sequence.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>slice</code> does not alter the original array, but returns a new &quot;one level deep&quot; copy that contains copies of the elements sliced from the original array. Elements of the original array are copied into the new array as follows:</p>\n<ul> <li>For object references (and not the actual object), <code>slice</code> copies object references into the new array. Both the original and new array refer to the same object. If a referenced object changes, the changes are visible to both the new and original arrays.</li>\n</ul>\n<ul> <li>For strings and numbers (not <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/String\">String</a> and <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Number\">Number</a> objects), <code>slice</code> copies strings and numbers into the new array. Changes to the string or number in one array does not affect the other array.</li>\n</ul>\n<p>If a new element is added to either array, the other array is not affected.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_slice\"></span><h4 class = \"editable\">Example: Using <code>slice</code></h4>\n<p>In the following example, <code>slice</code> creates a new array, <code>newCar</code>, from <code>myCar</code>. Both include a reference to the object <code>myHonda</code>. When the color of <code>myHonda</code> is changed to purple, both arrays reflect the change.</p>\n<pre>\n// Using slice, create newCar from myCar.\nvar myHonda = { color: &quot;red&quot;, wheels: 4, engine: { cylinders: 4, size: 2.2 } };\nvar myCar = [myHonda, 2, &quot;cherry condition&quot;, &quot;purchased 1997&quot;];\nvar newCar = myCar.slice(0, 2);\n\n// Print the values of myCar, newCar, and the color of myHonda\n//  referenced from both arrays.\nprint(&quot;myCar = &quot; + myCar.toSource());\nprint(&quot;newCar = &quot; + newCar.toSource());\nprint(&quot;myCar[0].color = &quot; + myCar[0].color);\nprint(&quot;newCar[0].color = &quot; + newCar[0].color);\n\n// Change the color of myHonda.\nmyHonda.color = &quot;purple&quot;;\nprint(&quot;The new color of my Honda is &quot; + myHonda.color);\n\n// Print the color of myHonda referenced from both arrays.\nprint(&quot;myCar[0].color = &quot; + myCar[0].color);\nprint(&quot;newCar[0].color = &quot; + newCar[0].color);\n</pre>\n<p>This script writes:</p>\n<pre>\nmyCar = [{color:&quot;red&quot;, wheels:4, engine:{cylinders:4, size:2.2}}, 2, &quot;cherry condition&quot;, &quot;purchased 1997&quot;]\nnewCar = [{color:&quot;red&quot;, wheels:4, engine:{cylinders:4, size:2.2}}, 2]\nmyCar[0].color = red \nnewCar[0].color = red\nThe new color of my Honda is purple\nmyCar[0].color = purple\nnewCar[0].color = purple\n</pre>\n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_slice\"></span><h4 class = \"editable\">Example: Using <code>slice</code></h4>\n<p>In the following example, <code>slice</code> creates a new array, <code>newCar</code>, from <code>myCar</code>. Both include a reference to the object <code>myHonda</code>. When the color of <code>myHonda</code> is changed to purple, both arrays reflect the change.</p>\n<pre>\n// Using slice, create newCar from myCar.\nvar myHonda = { color: &quot;red&quot;, wheels: 4, engine: { cylinders: 4, size: 2.2 } };\nvar myCar = [myHonda, 2, &quot;cherry condition&quot;, &quot;purchased 1997&quot;];\nvar newCar = myCar.slice(0, 2);\n\n// Print the values of myCar, newCar, and the color of myHonda\n//  referenced from both arrays.\nprint(&quot;myCar = &quot; + myCar.toSource());\nprint(&quot;newCar = &quot; + newCar.toSource());\nprint(&quot;myCar[0].color = &quot; + myCar[0].color);\nprint(&quot;newCar[0].color = &quot; + newCar[0].color);\n\n// Change the color of myHonda.\nmyHonda.color = &quot;purple&quot;;\nprint(&quot;The new color of my Honda is &quot; + myHonda.color);\n\n// Print the color of myHonda referenced from both arrays.\nprint(&quot;myCar[0].color = &quot; + myCar[0].color);\nprint(&quot;newCar[0].color = &quot; + newCar[0].color);\n</pre>\n<p>This script writes:</p>\n<pre>\nmyCar = [{color:&quot;red&quot;, wheels:4, engine:{cylinders:4, size:2.2}}, 2, &quot;cherry condition&quot;, &quot;purchased 1997&quot;]\nnewCar = [{color:&quot;red&quot;, wheels:4, engine:{cylinders:4, size:2.2}}, 2]\nmyCar[0].color = red \nnewCar[0].color = red\nThe new color of my Honda is purple\nmyCar[0].color = purple\nnewCar[0].color = purple\n</pre>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using slice"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf",
		"title": "Array.indexOf",
		"_id": "4eea84faa4c86c4dba0000a4",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the first index at which a given element can be found in the array, or -1 if it is not present.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.indexOf(<em>searchElement</em>[, <em>fromIndex</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>searchElement</code></dt> <dd>Element to locate in the array.</dd> <dt><code>fromIndex</code></dt> <dd>The index at which to begin the search. Defaults to 0, i.e. the whole array will be searched. If the index is greater than or equal to the length of the array, -1 is returned, i.e. the array will not be searched. If negative, it is taken as the offset from the end of the array. Note that even when the index is negative, the array is still searched from front to back. If the calculated index is less than 0, the whole array will be searched.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>indexOf</code> compares <code>searchElement</code> to elements of the Array using <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Comparison_Operators#Using_the_Equality_Operators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comparison_Operators#Using_the_Equality_Operators\">strict equality</a> (the same method used by the ===, or triple-equals, operator).</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h3 class = \"editable\">Compatibility</h3>\n<p><code>indexOf</code> is a recent addition to the ECMA-262 standard; as such it may not be present in all browsers. You can work around this by inserting the following code at the beginning of your scripts, allowing use of <code>indexOf</code> in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming&nbsp;<code style = \"color: inherit; font-weight: inherit; \">Object</code>,&nbsp;<code style = \"color: inherit; font-weight: inherit; \">TypeError</code>,&nbsp;<code>Number</code>, <code>Math.floor</code>, <code>Math.abs</code>, and&nbsp;<code>Math.max</code> have their original value. &nbsp;</p>\n\r\n          <pre name = \"code\" class = \"js\">if (!Array.prototype.indexOf) {\n    Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {\n        &quot;use strict&quot;;\n        if (this == null) {\n            throw new TypeError();\n        }\n        var t = Object(this);\n        var len = t.length &gt;&gt;&gt; 0;\n        if (len === 0) {\n            return -1;\n        }\n        var n = 0;\n        if (arguments.length &gt; 0) {\n            n = Number(arguments[1]);\n            if (n != n) { // shortcut for verifying if it's NaN\n                n = 0;\n            } else if (n != 0 &amp;&amp; n != Infinity &amp;&amp; n != -Infinity) {\n                n = (n &gt; 0 || -1) * Math.floor(Math.abs(n));\n            }\n        }\n        if (n &gt;= len) {\n            return -1;\n        }\n        var k = n &gt;= 0 ? n : Math.max(len - Math.abs(n), 0);\n        for (; k &lt; len; k++) {\n            if (k in t &amp;&amp; t[k] === searchElement) {\n                return k;\n            }\n        }\n        return -1;\n    }\n}</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_7\"><span id = \"Example:_Using_indexOf\"></span><h4 class = \"editable\">Example: Using indexOf</h4>\n<p>The following example uses <code>indexOf</code> to locate values in an array.</p>\n\r\n          <pre name = \"code\" class = \"js\">var array = [2, 5, 9];\nvar index = array.indexOf(2);\n// index is 0\nindex = array.indexOf(7);\n// index is -1</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example:_Finding_all_the_occurrences_of_an_element\"></span><h4 class = \"editable\">Example: Finding all the occurrences of an element</h4>\n<p>The following example uses <code>indexOf</code> to find all the indices of an element in a given array, using <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a> to add them to another array as they are found.</p>\n<div style = \"text-align: left; \"> \r\n          <pre name = \"code\" class = \"js\">var indices = [];\nvar idx = array.indexOf(element);\nwhile (idx != -1) {\n    indices.push(idx);\n    idx = array.indexOf(element, idx + 1);\n}</pre>\r\n        \n</div>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_indexOf\"></span><h4 class = \"editable\">Example: Using indexOf</h4>\n<p>The following example uses <code>indexOf</code> to locate values in an array.</p>\n\r\n          <pre name = \"code\" class = \"js\">var array = [2, 5, 9];\nvar index = array.indexOf(2);\n// index is 0\nindex = array.indexOf(7);\n// index is -1</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Finding_all_the_occurrences_of_an_element\"></span><h4 class = \"editable\">Example: Finding all the occurrences of an element</h4>\n<p>The following example uses <code>indexOf</code> to find all the indices of an element in a given array, using <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a> to add them to another array as they are found.</p>\n<div style = \"text-align: left; \"> \r\n          <pre name = \"code\" class = \"js\">var indices = [];\nvar idx = array.indexOf(element);\nwhile (idx != -1) {\n    indices.push(idx);\n    idx = array.indexOf(element, idx + 1);\n}</pre>\r\n        \n</div>\n</div>",
			"<div id = \"section_9\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n</div>",
			"<div id = \"section_10\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\">lastIndexOf</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Example: Using indexOf",
			"Example: Finding all the occurrences of an element",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push",
		"title": "Array.push",
		"_id": "4eea84faa4c86c4dba0000a5",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Mutates an array by appending the given elements and returning the new length of the array.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.push(<em>element1</em>, ..., <em>elementN</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>element1, ..., element<em>N</em></code></dt> <dd>The elements to add to the end of the array.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Returns\"></span><h3 class = \"editable\">Returns</h3>\n<p>The new <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\">length</a></code> property of the object upon which the method was called.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>push</code> method is useful for easily appending values to an array.</p>\n<p><code>push</code> is intentionally generic. This method can be <a title = \"en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">called</a> or <a title = \"en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">applied</a> to objects resembling arrays. The <code>push</code> method relies on a <code>length</code> property to determine where to start inserting the given values. If the <code>length</code> property cannot be converted into a number, the index used is 0. This includes the possibility of <code>length</code> being nonexistent, in which case <code>length</code> will also be created.</p>\n<p>The only native, array-like objects are <a title = \"En/Core_JavaScript_1.5_Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/String\">strings</a>, although they are not suitable in applications of this method, as strings are immutable.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_7\"><span id = \"Example:_Adding_elements_to_an_array\"></span><h4 class = \"editable\">Example: Adding elements to an array</h4>\n<p>The following code creates the <code>sports</code> array containing two elements, then appends two elements to it. After the code executes, <code>sports</code> contains 4 elements: &quot;soccer&quot;, &quot;baseball&quot;, &quot;football&quot; and &quot;swimming&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">var sports = [&quot;soccer&quot;, &quot;baseball&quot;];\nsports.push(&quot;football&quot;, &quot;swimming&quot;);</pre>\r\n        \n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Adding_elements_to_an_array\"></span><h4 class = \"editable\">Example: Adding elements to an array</h4>\n<p>The following code creates the <code>sports</code> array containing two elements, then appends two elements to it. After the code executes, <code>sports</code> contains 4 elements: &quot;soccer&quot;, &quot;baseball&quot;, &quot;football&quot; and &quot;swimming&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">var sports = [&quot;soccer&quot;, &quot;baseball&quot;];\nsports.push(&quot;football&quot;, &quot;swimming&quot;);</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat\">concat</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Returns",
			"Description",
			"Examples",
			"Example: Adding elements to an array",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice",
		"title": "Array.splice",
		"_id": "4eea84fca4c86c4dba0000a6",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Changes the content of an array, adding new elements while removing old elements.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>array</em>.splice(<em>index</em> ,<em> howMany</em>[<em>,</em><em> element1</em>[, ...[, <em>elementN</em>]]])</code><br/> <code><em>array</em>.splice(<em>index</em>[,<em> howMany</em>[,<em> element1</em>[, ...[, <em>elementN</em>]]]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>index</code></dt> <dd>Index at which to start changing the array. If negative, will begin that many elements from the end.</dd>\n</dl>\n<dl> <dt><code>howMany</code></dt> <dd>An integer indicating the number of old array elements to remove. If <code>howMany</code> is 0, no elements are removed. In this case, you should specify at least one new element. If no <code>howMany</code> parameter is specified (second syntax above, which is a SpiderMonkey extension), all elements after <code>index</code> are removed.</dd>\n</dl>\n<dl> <dt><code>element1, ..., element<em>N</em></code></dt> <dd>The elements to add to the array. If you don't specify any elements, <code>splice</code> simply removes elements from the array.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Returns\"></span><h2 class = \"editable\">Returns</h2>\n<p>An array containing the removed elements. If only one element is removed, an array of one element is returned.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>If you specify a different number of elements to insert than the number you're removing, the array will have a different length at the end of the call.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Backward_Compatibility\"></span><h2 class = \"editable\">Backward Compatibility</h2>\n<div id = \"section_7\"><span id = \"JavaScript_1.2\"></span><h3 class = \"editable\">JavaScript 1.2</h3>\n<p>The <code>splice</code> method returns the element removed, if only one element is removed (<code>howMany</code> parameter is 1); otherwise, the method returns an array containing the removed elements. Note that the last browser to use JavaScript 1.2 was Netscape Navigator 4, so you can depend on <code>splice</code> always returning an array.</p>\n</div></div>",
			"<div id = \"section_7\"><span id = \"JavaScript_1.2\"></span><h3 class = \"editable\">JavaScript 1.2</h3>\n<p>The <code>splice</code> method returns the element removed, if only one element is removed (<code>howMany</code> parameter is 1); otherwise, the method returns an array containing the removed elements. Note that the last browser to use JavaScript 1.2 was Netscape Navigator 4, so you can depend on <code>splice</code> always returning an array.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_9\"><span id = \"Example:_Using_splice\"></span><h3 class = \"editable\">Example: Using <code>splice</code></h3>\n<p>The following script illustrate the use of splice:</p>\n\r\n          <pre name = \"code\" class = \"js\">// assumes a print function is defined\nvar myFish = [&quot;angel&quot;, &quot;clown&quot;, &quot;mandarin&quot;, &quot;surgeon&quot;];\nprint(&quot;myFish: &quot; + myFish);\n\nvar removed = myFish.splice(2, 0, &quot;drum&quot;);\nprint(&quot;After adding 1: &quot; + myFish);\nprint(&quot;removed is: &quot; + removed);\n\nremoved = myFish.splice(3, 1);\nprint(&quot;After removing 1: &quot; + myFish);\nprint(&quot;removed is: &quot; + removed);\n\nremoved = myFish.splice(2, 1, &quot;trumpet&quot;);\nprint(&quot;After replacing 1: &quot; + myFish);\nprint(&quot;removed is: &quot; + removed);\n\nremoved = myFish.splice(0, 2, &quot;parrot&quot;, &quot;anemone&quot;, &quot;blue&quot;);\nprint(&quot;After replacing 2: &quot; + myFish);\nprint(&quot;removed is: &quot; + removed);</pre>\r\n        \n<p>This script displays:</p>\n<pre class = \"eval\">\nmyFish: angel,clown,mandarin,surgeon\nAfter adding 1: angel,clown,drum,mandarin,surgeon\nremoved is: \nAfter removing 1: angel,clown,drum,surgeon\nremoved is: mandarin\nAfter replacing 1: angel,clown,trumpet,surgeon\nremoved is: drum\nAfter replacing 2: parrot,anemone,blue,trumpet,surgeon\nremoved is: angel,clown\n</pre>\n<p></p></div></div>",
			"<div id = \"section_9\"><span id = \"Example:_Using_splice\"></span><h3 class = \"editable\">Example: Using <code>splice</code></h3>\n<p>The following script illustrate the use of splice:</p>\n\r\n          <pre name = \"code\" class = \"js\">// assumes a print function is defined\nvar myFish = [&quot;angel&quot;, &quot;clown&quot;, &quot;mandarin&quot;, &quot;surgeon&quot;];\nprint(&quot;myFish: &quot; + myFish);\n\nvar removed = myFish.splice(2, 0, &quot;drum&quot;);\nprint(&quot;After adding 1: &quot; + myFish);\nprint(&quot;removed is: &quot; + removed);\n\nremoved = myFish.splice(3, 1);\nprint(&quot;After removing 1: &quot; + myFish);\nprint(&quot;removed is: &quot; + removed);\n\nremoved = myFish.splice(2, 1, &quot;trumpet&quot;);\nprint(&quot;After replacing 1: &quot; + myFish);\nprint(&quot;removed is: &quot; + removed);\n\nremoved = myFish.splice(0, 2, &quot;parrot&quot;, &quot;anemone&quot;, &quot;blue&quot;);\nprint(&quot;After replacing 2: &quot; + myFish);\nprint(&quot;removed is: &quot; + removed);</pre>\r\n        \n<p>This script displays:</p>\n<pre class = \"eval\">\nmyFish: angel,clown,mandarin,surgeon\nAfter adding 1: angel,clown,drum,mandarin,surgeon\nremoved is: \nAfter removing 1: angel,clown,drum,surgeon\nremoved is: mandarin\nAfter replacing 1: angel,clown,trumpet,surgeon\nremoved is: drum\nAfter replacing 2: parrot,anemone,blue,trumpet,surgeon\nremoved is: angel,clown\n</pre>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Returns",
			"Description",
			"Backward Compatibility",
			"JavaScript 1.2",
			"Examples",
			"Example: Using splice"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray",
		"title": "Array.isArray",
		"_id": "4eea84fda4c86c4dba0000a7",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Returns <code>true</code> if an object is an array, <code>false</code> if it is not.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Array.isArray(<em>obj</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>obj</dt> <dd>The object to be checked</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>This function is part of the ECMAScript 5 standard. See the&nbsp;<a title = \"web-tech/2010/07/26/determining-with-absolute-accuracy-whether-or-not-a-javascript-object-is-an-array\" rel = \"internal\" href = \"https://developer.mozilla.org/web-tech/2010/07/26/determining-with-absolute-accuracy-whether-or-not-a-javascript-object-is-an-array\" class = \"new \">Web Tech Blog</a> for more details.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n\r\n          <pre name = \"code\" class = \"js\">// all following calls return true\nArray.isArray([]);\nArray.isArray([1]);\nArray.isArray( new Array() );\nArray.isArray( Array.prototype ); // Little known fact: Array.prototype itself is an array.\n\n// all following calls return false\nArray.isArray();\nArray.isArray({});\nArray.isArray(null);\nArray.isArray(undefined);\nArray.isArray(17);\nArray.isArray(&quot;Array&quot;);\nArray.isArray(true);\nArray.isArray(false);</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<p>Running the following code before any other code will create <code>Array.isArray</code> if it's not natively available. This relies on <code>Object.prototype.toString</code> being unchanged and <code>call</code> resolving to the native <code>Function.prototype.call</code> method.</p>\n\r\n          <pre name = \"code\" class = \"js\">if(!Array.isArray) {\n  Array.isArray = function (arg) {\n    return Object.prototype.toString.call(arg) == '[object Array]';\n  };\n}</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>5</td> <td>9</td> <td>10.5</td> <td>5</td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n</div>",
			"<div id = \"section_8\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a class = \"link-https\" rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=510537\" title = \"https://bugzilla.mozilla.org/show_bug.cgi?id=510537\" target = \"_blank\">Bug&nbsp;510537</a> -<span id = \"summary_alias_container\"> <span id = \"short_desc_nonedit_display\">ES5: Array.isArray</span> </span></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Compatibility",
			"Cross-browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/prototype",
		"title": "Array.prototype",
		"_id": "4eea84fea4c86c4dba0000a8",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the prototype for the <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a> instances inherit from <code>Array.prototype</code>. As with all constructors, you can change the constructor's prototype object to make changes to all <code>Array</code> instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/constructor\">constructor</a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/length\">length</a></dt> <dd>Reflects the number of elements in an array.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToSource\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToSource\"><code>toSource</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToString\"><code>toString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div></div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_5\"><span id = \"Mutator_methods\"></span><h3 class = \"editable\">Mutator methods</h3>\n<p>These methods modify the array:</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></dt> <dd>Removes the last element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></dt> <dd>Adds one or more elements to the end of an array and returns the new length of the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></dt> <dd>Reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a></dt> <dd>Removes the first element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/sort\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort\">sort</a></dt> <dd>Sorts the elements of an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/splice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice\">splice</a></dt> <dd>Adds and/or removes elements from an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></dt> <dd>Adds one or more elements to the front of an array and returns the new length of the array.</dd>\n</dl>\n</div><div id = \"section_6\"><span id = \"Accessor_methods\"></span><h3 class = \"editable\">Accessor methods</h3>\n<p></p>\n<p>These methods do not modify the array and return some representation of the array.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat\">concat</a></dt> <dd>Returns a new array comprised of this array joined with other array(s) and/or value(s).</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></dt> <dd>Joins all elements of an array into a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice\">slice</a></dt> <dd>Extracts a section of an array and returns a new array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a> <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dt> <dd>Returns an array literal representing the specified array; you can use this value to create a new array. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString\">toString</a></dt> <dd>Returns a string representing the array and its elements. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\">lastIndexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.</dd>\n</dl>\n</div><div id = \"section_7\"><span id = \"Iteration_methods\"></span><h3 class = \"editable\">Iteration methods</h3>\n<p>Several methods take as arguments functions to be called back while processing the array. When these methods are called, the <code>length</code> of the array is sampled, and any element added beyond this length from within the callback is not visited. Other changes to the array (setting the value of or deleting an element) may affect the results of the operation if the method visits the changed element afterwards. While the specific behavior of these methods in such cases is well-defined, you should not rely upon it so as not to confuse others who might read your code. If you must mutate the array, copy into a new array instead.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/filter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with all of the elements of this array for which the provided filtering function returns true.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/forEach\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach\">forEach</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Calls a function for each element in the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/every\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every\">every</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if every element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/map\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map\">map</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with the results of calling a provided function on every element in this array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/some\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some\">some</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if at least one element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduce\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/Reduce\">reduce</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduceRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/ReduceRight\">reduceRight</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.</dd>\n</dl>\n</div><div id = \"section_8\"><span id = \"Generic_methods\"></span><h3 class = \"editable\">Generic methods</h3>\n<p>Many methods on the JavaScript Array object are designed to be generally applied to all objects which &quot;look like&quot; Arrays. That is, they can be used on any object which has a <code>length</code> property, and which can usefully be accessed using numeric property names (as with <code>array[5]</code> indexing).  Some methods, such as <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></code>, only read the <code>length</code> and numeric properties of the object they are called on. Others, like <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></code>, require that the object's numeric properties and <code>length</code> be mutable; these methods can therefore not be called on objects like <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\">S</a><code><a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\">tring</a></code>, which does not permit its <code>length</code> property or synthesized numeric properties to be set. </p>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat\">concat</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice\">slice</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/sort\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort\">sort</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/splice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice\">splice</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString\">toString</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></li>\n</ul>\n<p>\n<div style = \"border: 1px solid #818151; background-color: #FFFFE1; font-weight: bold; text-align: center; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\"><p style = \"margin: 4px 0px 4px 0px;\">Introduced in <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></p></div></p>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/every\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every\">every</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/filter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/forEach\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach\">forEach</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\">lastIndexOf</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/map\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map\">map</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/some\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some\">some</a></li>\n</ul>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Mutator_methods\"></span><h3 class = \"editable\">Mutator methods</h3>\n<p>These methods modify the array:</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></dt> <dd>Removes the last element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></dt> <dd>Adds one or more elements to the end of an array and returns the new length of the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></dt> <dd>Reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a></dt> <dd>Removes the first element from an array and returns that element.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/sort\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort\">sort</a></dt> <dd>Sorts the elements of an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/splice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice\">splice</a></dt> <dd>Adds and/or removes elements from an array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></dt> <dd>Adds one or more elements to the front of an array and returns the new length of the array.</dd>\n</dl>\n</div>",
			"<div id = \"section_6\"><span id = \"Accessor_methods\"></span><h3 class = \"editable\">Accessor methods</h3>\n<p></p>\n<p>These methods do not modify the array and return some representation of the array.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat\">concat</a></dt> <dd>Returns a new array comprised of this array joined with other array(s) and/or value(s).</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></dt> <dd>Joins all elements of an array into a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice\">slice</a></dt> <dd>Extracts a section of an array and returns a new array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a> <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dt> <dd>Returns an array literal representing the specified array; you can use this value to create a new array. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString\">toString</a></dt> <dd>Returns a string representing the array and its elements. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\">lastIndexOf</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.</dd>\n</dl>\n</div>",
			"<div id = \"section_7\"><span id = \"Iteration_methods\"></span><h3 class = \"editable\">Iteration methods</h3>\n<p>Several methods take as arguments functions to be called back while processing the array. When these methods are called, the <code>length</code> of the array is sampled, and any element added beyond this length from within the callback is not visited. Other changes to the array (setting the value of or deleting an element) may affect the results of the operation if the method visits the changed element afterwards. While the specific behavior of these methods in such cases is well-defined, you should not rely upon it so as not to confuse others who might read your code. If you must mutate the array, copy into a new array instead.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/filter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with all of the elements of this array for which the provided filtering function returns true.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/forEach\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach\">forEach</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Calls a function for each element in the array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/every\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every\">every</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if every element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/map\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map\">map</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Creates a new array with the results of calling a provided function on every element in this array.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Array/some\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some\">some</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></span>\n</dt> <dd>Returns true if at least one element in this array satisfies the provided testing function.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduce\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/Reduce\">reduce</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value.</dd> <dt><a title = \"en/JavaScript/Reference/Objects/Array/reduceRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/ReduceRight\">reduceRight</a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8\">JavaScript 1.8</a></span>\n</dt> <dd>Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Generic_methods\"></span><h3 class = \"editable\">Generic methods</h3>\n<p>Many methods on the JavaScript Array object are designed to be generally applied to all objects which &quot;look like&quot; Arrays. That is, they can be used on any object which has a <code>length</code> property, and which can usefully be accessed using numeric property names (as with <code>array[5]</code> indexing).  Some methods, such as <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></code>, only read the <code>length</code> and numeric properties of the object they are called on. Others, like <code><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></code>, require that the object's numeric properties and <code>length</code> be mutable; these methods can therefore not be called on objects like <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\">S</a><code><a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\">tring</a></code>, which does not permit its <code>length</code> property or synthesized numeric properties to be set. </p>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat\">concat</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice\">slice</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/sort\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort\">sort</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/splice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice\">splice</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString\">toString</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></li>\n</ul>\n<p>\n<div style = \"border: 1px solid #818151; background-color: #FFFFE1; font-weight: bold; text-align: center; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\"><p style = \"margin: 4px 0px 4px 0px;\">Introduced in <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.6\">JavaScript 1.6</a></p></div></p>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/every\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every\">every</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/filter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/forEach\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach\">forEach</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf\">lastIndexOf</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/map\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map\">map</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/some\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some\">some</a></li>\n</ul>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Core JavaScript 1.5 Reference:Global Objects:Array</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">Function.prototype</a></li>\n</ul>\n\n<p></p>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods",
			"Mutator methods",
			"Accessor methods",
			"Iteration methods",
			"Generic methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/constructor",
		"title": "Array.constructor",
		"_id": "4eea84fea4c86c4dba0000a9",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a reference to the <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array\">Array</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array\">Array</a></td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.1, NES 2.0</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>See <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/constructor\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/constructor\">Object.constructor</a>.\n</p>\n\n</div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToSource",
		"title": "Object.ToSource",
		"_id": "4eea84fea4c86c4dba0000aa",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the source code of the object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.toSource()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toSource</code> method returns the following values:</p>\n<ul> <li>For the built-in <code>Object</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:</li>\n</ul>\n<pre class = \"eval\">\nfunction Object() {\n   [native code]\n}\n</pre>\n<ul> <li>For instances of <code>Object</code>, <code>toSource</code> returns a string representing the source code.</li>\n</ul>\n<p>You can call <code>toSource</code> while debugging to examine the contents of an object.</p>\n<p>It is safe for objects to override the <code>toSource</code> method.&nbsp; For example:</p>\n<pre>\nfunction Person(name) {\n    this.name = name;\n}\nPerson.prototype.toSource = function Person_toSource() {\n    return &quot;new Person(&quot; + uneval(this.name) + &quot;)&quot;;\n};\nalert(new Person(&quot;Joe&quot;).toSource());    // ---&gt;&nbsp;new Person(&quot;Joe&quot;)\n</pre>\n<div id = \"section_5\"><span id = \"Built-in_toString_methods\"></span><span id = \"Built-in_toSource_methods\"></span><h4 class = \"editable\">Built-in <code>toSource</code> methods</h4>\n<p>Each core JavaScript type has its own <code>toSource</code> method. These objects are: \n\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a> - Array Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toSource\">toSource</a> - Boolean Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Date/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toSource\">toSource</a> - Date Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toSource\">toSource</a> - Function Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource\">toSource</a> - Number Object method.</li> <li><strong>toSource</strong> - Object Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toSource\">toSource</a> - RegExp Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/String/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toSource\">toSource</a> - String Object method.</li>\n</ul>\n\n</p>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Built-in_toString_methods\"></span><span id = \"Built-in_toSource_methods\"></span><h4 class = \"editable\">Built-in <code>toSource</code> methods</h4>\n<p>Each core JavaScript type has its own <code>toSource</code> method. These objects are: \n\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a> - Array Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Boolean/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean/toSource\">toSource</a> - Boolean Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Date/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toSource\">toSource</a> - Date Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toSource\">toSource</a> - Function Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource\">toSource</a> - Number Object method.</li> <li><strong>toSource</strong> - Object Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toSource\">toSource</a> - RegExp Object method.</li> <li><a title = \"en/JavaScript/Reference/Global_Objects/String/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toSource\">toSource</a> - String Object method.</li>\n</ul>\n\n</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_7\"><span id = \"Example:_Using_toSource\"></span><h4 class = \"editable\">Example: Using <code>toSource</code></h4>\n<p>The following code defines the <code>Dog</code> object type and creates <code>theDog</code>, an object of type <code>Dog</code>:</p>\n<pre class = \"eval\">\nfunction Dog(name, breed, color, sex) {\n   this.name=name;\n   this.breed=breed;\n   this.color=color;\n   this.sex=sex;\n}\n\ntheDog = new Dog(&quot;Gabby&quot;, &quot;Lab&quot;, &quot;chocolate&quot;, &quot;girl&quot;);\n</pre>\n<p>Calling the <code>toSource</code> method of <code>theDog</code> displays the JavaScript source that defines the object:</p>\n<pre class = \"eval\">\ntheDog.toSource();\n</pre>\n<p>returns</p>\n<pre class = \"eval\">\n({name:&quot;Gabby&quot;, breed:&quot;Lab&quot;, color:&quot;chocolate&quot;, sex:&quot;girl&quot;})\n</pre>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_toSource\"></span><h4 class = \"editable\">Example: Using <code>toSource</code></h4>\n<p>The following code defines the <code>Dog</code> object type and creates <code>theDog</code>, an object of type <code>Dog</code>:</p>\n<pre class = \"eval\">\nfunction Dog(name, breed, color, sex) {\n   this.name=name;\n   this.breed=breed;\n   this.color=color;\n   this.sex=sex;\n}\n\ntheDog = new Dog(&quot;Gabby&quot;, &quot;Lab&quot;, &quot;chocolate&quot;, &quot;girl&quot;);\n</pre>\n<p>Calling the <code>toSource</code> method of <code>theDog</code> displays the JavaScript source that defines the object:</p>\n<pre class = \"eval\">\ntheDog.toSource();\n</pre>\n<p>returns</p>\n<pre class = \"eval\">\n({name:&quot;Gabby&quot;, breed:&quot;Lab&quot;, color:&quot;chocolate&quot;, sex:&quot;girl&quot;})\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></p>\n\n<p></p>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Built-in toSource methods",
			"Examples",
			"Example: Using toSource",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToString",
		"title": "Object.ToString",
		"_id": "4eea8501a4c86c4dba0000ab",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMSScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>object</em>.toString()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Every object has a <code>toString()</code> method that is automatically called when the object is to be represented as a text value or when an object is referred to in a manner in which a string is expected. By default, the <code>toString()</code> method is inherited by every object descended from <code>Object</code>. If this method is not overridden in a custom object, <code>toString()</code> returns &quot;[object <em>type</em>]&quot;, where <code><em>type</em></code> is the object type. The following code illustrates this:</p>\n<pre class = \"eval\">\nvar o = new Object();\no.toString();           // returns [object Object]\n</pre>\n<div class = \"note\">Starting in JavaScript 1.8.5 <code>toString()</code> called on <code>null</code> returns <code>[object <em>Null</em>]</code>, and <code>undefined</code> returns <code>[object <em>Undefined</em>]</code>, as defined in the 5th Edition of ECMAScript and a subsequent Errata. See <a title = \"en/JavaScript/Reference/Global Objects/Object/toString#Using toString to detect object type\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString#Using_toString_to_detect_object_type\">Using toString to detect object type</a>.</div>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_5\"><span id = \"Overriding_the_default_toString_method\"></span><h4 class = \"editable\">Overriding the default <code>toString</code> method</h4>\n<p>You can create a function to be called in place of the default <code>toString()</code> method. The <code>toString()</code> method takes no arguments and should return a string. The <code>toString()</code> method you create can be any value you want, but it will be most useful if it carries information about the object.</p>\n<p>The following code defines the <code>Dog</code> object type and creates <code>theDog</code>, an object of type <code>Dog</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">function Dog(name,breed,color,sex) {\n   this.name=name;\n   this.breed=breed;\n   this.color=color;\n   this.sex=sex;\n}\n\ntheDog = new Dog(&quot;Gabby&quot;,&quot;Lab&quot;,&quot;chocolate&quot;,&quot;female&quot;);</pre>\r\n        \n<p>If you call the <code>toString()</code> method on this custom object, it returns the default value inherited from <code>Object</code>:</p>\n<pre class = \"eval\">\ntheDog.toString(); //returns [object Object]\n</pre>\n<p>The following code creates and assigns <code>dogToString()</code> to override the default <code>toString()</code> method. This function generates a string containing the name, breed, color, and sex of the object, in the form &quot;<code>property = value;</code>&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">Dog.prototype.toString = function dogToString() {\n  var ret = &quot;Dog &quot; + this.name + &quot; is a &quot; + this.sex + &quot; &quot; + this.color + &quot; &quot; + this.breed;\n  return ret;\n}</pre>\r\n        \n<p>With the preceding code in place, any time <code>theDog</code> is used in a string context, JavaScript automatically calls the <code>dogToString()</code> function, which returns the following string:</p>\n<pre class = \"eval\">\nDog Gabby is a female chocolate Lab\n</pre>\n</div><div id = \"section_6\"><span id = \"Using_toString_to_detect_object_type\"></span><span id = \"Using_toString()_to_detect_object_class\"></span><h4 class = \"editable\">Using toString() to detect object class</h4>\n<p><code>toString()</code> can be used with every object and allows you to get its class. To use the <code>Object.prototype.toString()</code> with every object, you need to call <code>Function.prototype.call()</code> or <code>Function.prototype.apply()</code> on it, passing the object you want to inspect as the first parameter called <code>thisArg</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">var toString = Object.prototype.toString;\n\ntoString.call(new Date); // [object Date]\ntoString.call(new String); // [object String]\ntoString.call(Math); // [object Math]\n\n//Since JavaScript 1.8.5\ntoString.call(undefined); // [object Undefined]\ntoString.call(null); // [object Null]</pre>\r\n        </div></div>",
			"<div id = \"section_5\"><span id = \"Overriding_the_default_toString_method\"></span><h4 class = \"editable\">Overriding the default <code>toString</code> method</h4>\n<p>You can create a function to be called in place of the default <code>toString()</code> method. The <code>toString()</code> method takes no arguments and should return a string. The <code>toString()</code> method you create can be any value you want, but it will be most useful if it carries information about the object.</p>\n<p>The following code defines the <code>Dog</code> object type and creates <code>theDog</code>, an object of type <code>Dog</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">function Dog(name,breed,color,sex) {\n   this.name=name;\n   this.breed=breed;\n   this.color=color;\n   this.sex=sex;\n}\n\ntheDog = new Dog(&quot;Gabby&quot;,&quot;Lab&quot;,&quot;chocolate&quot;,&quot;female&quot;);</pre>\r\n        \n<p>If you call the <code>toString()</code> method on this custom object, it returns the default value inherited from <code>Object</code>:</p>\n<pre class = \"eval\">\ntheDog.toString(); //returns [object Object]\n</pre>\n<p>The following code creates and assigns <code>dogToString()</code> to override the default <code>toString()</code> method. This function generates a string containing the name, breed, color, and sex of the object, in the form &quot;<code>property = value;</code>&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">Dog.prototype.toString = function dogToString() {\n  var ret = &quot;Dog &quot; + this.name + &quot; is a &quot; + this.sex + &quot; &quot; + this.color + &quot; &quot; + this.breed;\n  return ret;\n}</pre>\r\n        \n<p>With the preceding code in place, any time <code>theDog</code> is used in a string context, JavaScript automatically calls the <code>dogToString()</code> function, which returns the following string:</p>\n<pre class = \"eval\">\nDog Gabby is a female chocolate Lab\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"Using_toString_to_detect_object_type\"></span><span id = \"Using_toString()_to_detect_object_class\"></span><h4 class = \"editable\">Using toString() to detect object class</h4>\n<p><code>toString()</code> can be used with every object and allows you to get its class. To use the <code>Object.prototype.toString()</code> with every object, you need to call <code>Function.prototype.call()</code> or <code>Function.prototype.apply()</code> on it, passing the object you want to inspect as the first parameter called <code>thisArg</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">var toString = Object.prototype.toString;\n\ntoString.call(new Date); // [object Date]\ntoString.call(new String); // [object String]\ntoString.call(Math); // [object Math]\n\n//Since JavaScript 1.8.5\ntoString.call(undefined); // [object Undefined]\ntoString.call(null); // [object Null]</pre>\r\n        </div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">toSource</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">valueOf</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Examples",
			"Overriding the default toString method",
			"Using toString() to detect object class",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf",
		"title": "Object.ValueOf",
		"_id": "4eea8501a4c86c4dba0000ac",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the primitive value of the specified object\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nvalueOf()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>JavaScript calls the <code>valueOf</code> method to convert an object to a primitive value. You rarely need to invoke the <code>valueOf</code> method yourself; JavaScript automatically invokes it when encountering an object where a primitive value is expected.\n</p><p>By default, the <code>valueOf</code> method is inherited by every object descended from <code>Object</code>. Every built-in core object overrides this method to return an appropriate value. If an object has no primitive value, <code>valueOf</code> returns the object itself, which is displayed as:\n</p>\n<pre>\n[object Object]\n</pre>\n<p>You can use <code>valueOf</code> within your own code to convert a built-in object into a primitive value. When you create a custom object, you can override <code>Object.valueOf</code> to call a custom method instead of the default <code>Object</code> method.\n</p>\n<div id = \"section_5\"><span id = \"Overriding_valueOf_for_custom_objects\"></span><h4 class = \"editable\"> Overriding <code>valueOf</code> for custom objects </h4>\n<p>You can create a function to be called in place of the default <code>valueOf</code> method. Your function must take no arguments.\n</p><p>Suppose you have an object type <code>myNumberType</code> and you want to create a <code>valueOf</code> method for it. The following code assigns a user-defined function to the object's <code>valueOf</code> method:\n</p>\n<pre>\nmyNumberType.prototype.valueOf = new Function(functionText)\n</pre>\n<p>With the preceding code in place, any time an object of type <code>myNumberType</code> is used in a context where it is to be represented as a primitive value, JavaScript automatically calls the function defined in the preceding code.\n</p><p>An object's <code>valueOf</code> method is usually invoked by JavaScript, but you can invoke it yourself as follows:\n</p>\n<pre>\nmyNumber.valueOf()\n</pre>\n</div><div id = \"section_6\"><span id = \"Note\"></span><h4 class = \"editable\">Note</h4>\n<p>Objects in string contexts convert via the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code> method, which is different from <code>String</code> objects converting to string primitives using <code>valueOf</code>. All objects have a string conversion, if only &quot;<code>[object <em>type</em>]</code>&quot;. But many objects do not convert to number, boolean, or function.</p></div></div>",
			"<div id = \"section_5\"><span id = \"Overriding_valueOf_for_custom_objects\"></span><h4 class = \"editable\"> Overriding <code>valueOf</code> for custom objects </h4>\n<p>You can create a function to be called in place of the default <code>valueOf</code> method. Your function must take no arguments.\n</p><p>Suppose you have an object type <code>myNumberType</code> and you want to create a <code>valueOf</code> method for it. The following code assigns a user-defined function to the object's <code>valueOf</code> method:\n</p>\n<pre>\nmyNumberType.prototype.valueOf = new Function(functionText)\n</pre>\n<p>With the preceding code in place, any time an object of type <code>myNumberType</code> is used in a context where it is to be represented as a primitive value, JavaScript automatically calls the function defined in the preceding code.\n</p><p>An object's <code>valueOf</code> method is usually invoked by JavaScript, but you can invoke it yourself as follows:\n</p>\n<pre>\nmyNumber.valueOf()\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"Note\"></span><h4 class = \"editable\">Note</h4>\n<p>Objects in string contexts convert via the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code> method, which is different from <code>String</code> objects converting to string primitives using <code>valueOf</code>. All objects have a string conversion, if only &quot;<code>[object <em>type</em>]</code>&quot;. But many objects do not convert to number, boolean, or function.</p></div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/parseInt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseInt\">parseInt</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Overriding valueOf for custom objects ",
			"Note",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop",
		"title": "Array.pop",
		"_id": "4eea8502a4c86c4dba0000ad",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Removes the last element from an array and returns that element.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> <em>array</em>.pop() </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>pop</code> method removes the last element from an array and returns that value to the caller.</p>\n<p><code>pop</code> is intentionally generic; this method can be <a title = \"en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">called</a> or <a title = \"en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">applied</a> to objects resembling arrays. Objects which do not contain a <code>length</code> property reflecting the last in a series of consecutive, zero-based numerical properties may not behave in any meaningful manner.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n<div id = \"section_5\"><span id = \"Example:_Removing_the_last_element_of_an_array\"></span><h4 class = \"editable\">Example: Removing the last element of an array</h4>\n<p>The following code creates the myFish array containing four elements, then removes its last element.</p>\n<pre>\nmyFish = [&quot;angel&quot;, &quot;clown&quot;, &quot;mandarin&quot;, &quot;surgeon&quot;];\npopped = myFish.pop();\n</pre>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Example:_Removing_the_last_element_of_an_array\"></span><h4 class = \"editable\">Example: Removing the last element of an array</h4>\n<p>The following code creates the myFish array containing four elements, then removes its last element.</p>\n<pre>\nmyFish = [&quot;angel&quot;, &quot;clown&quot;, &quot;mandarin&quot;, &quot;surgeon&quot;];\npopped = myFish.pop();\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_Also\"></span><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"><br/>\n<table class = \"compat-table\" style = \"font-size: 15px; margin-bottom: 1.286em; border-collapse: collapse; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"> <tbody> <tr> <th style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); text-align: left; font-weight: bold; background-position: initial initial; background-repeat: initial initial; \">Feature</th> <th style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); text-align: left; font-weight: bold; background-position: initial initial; background-repeat: initial initial; \">Firefox (Gecko)</th> <th style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); text-align: left; font-weight: bold; background-position: initial initial; background-repeat: initial initial; \">Chrome</th> <th style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); text-align: left; font-weight: bold; background-position: initial initial; background-repeat: initial initial; \">Internet Explorer</th> <th style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); text-align: left; font-weight: bold; background-position: initial initial; background-repeat: initial initial; \">Opera</th> <th style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); text-align: left; font-weight: bold; background-position: initial initial; background-repeat: initial initial; \">Safari</th> </tr> <tr> <td style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); text-align: left; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); vertical-align: top; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; \">Basic support</td> <td style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); text-align: left; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); vertical-align: top; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; \">1.0 (1.7)\n</td> <td>1.0</td> <td style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); text-align: left; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); vertical-align: top; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; \">5.5</td> <td style = \"font-family: inherit; font-size: inherit; color: inherit; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); text-align: left; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); vertical-align: top; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; \">&nbsp;</td> <td>&nbsp;</td> </tr> </tbody> <tbody> </tbody> <tbody> </tbody>\n</table>\n</div>\n<p><br/>\n<br/>\nSee Also</p>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Example",
			"Example: Removing the last element of an array",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse",
		"title": "Array.reverse",
		"_id": "4eea8502a4c86c4dba0000ae",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Reverses an array in place.&nbsp; The first array element becomes the last and the last becomes the first.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\" title = \"en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.reverse()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>reverse</code> method transposes the elements of the calling array object in place, mutating the array, and returning a reference to the array.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Reversing_the_elements_in_an_array\"></span><h4 class = \"editable\">Example: Reversing the elements in an array</h4>\n<p>The following example creates an array myArray, containing three elements, then reverses the array.</p>\n<pre class = \"eval\">\nvar myArray = [&quot;one&quot;, &quot;two&quot;, &quot;three&quot;];\nmyArray.reverse();\n</pre>\n<p>This code changes <code>myArray</code> so that:</p>\n<ul> <li><code>myArray[0]</code> is &quot;three&quot;</li> <li><code>myArray[1]</code> is &quot;two&quot;</li> <li><code>myArray[2]</code> is &quot;one&quot;</li>\n</ul>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Reversing_the_elements_in_an_array\"></span><h4 class = \"editable\">Example: Reversing the elements in an array</h4>\n<p>The following example creates an array myArray, containing three elements, then reverses the array.</p>\n<pre class = \"eval\">\nvar myArray = [&quot;one&quot;, &quot;two&quot;, &quot;three&quot;];\nmyArray.reverse();\n</pre>\n<p>This code changes <code>myArray</code> so that:</p>\n<ul> <li><code>myArray[0]</code> is &quot;three&quot;</li> <li><code>myArray[1]</code> is &quot;two&quot;</li> <li><code>myArray[2]</code> is &quot;one&quot;</li>\n</ul>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/sort\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort\">sort</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Reversing the elements in an array",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift",
		"title": "Array.shift",
		"_id": "4eea8504a4c86c4dba0000af",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Removes the first element from an array and returns that element. This method changes the length of the array.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.shift()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>shift</code> method removes the element at the zeroeth index and shifts the values at consecutive indexes down, then returns the removed value.</p>\n<p><code>shift</code> is intentionally generic; this method can be <a title = \"en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">called</a> or <a title = \"en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">applied</a> to objects resembling arrays. Objects which do not contain a <code>length</code> property reflecting the last in a series of consecutive, zero-based numerical properties may not behave in any meaningful manner.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_5\"><span id = \"Example:_Removing_an_element_from_an_array\"></span><h4 class = \"editable\">Example: Removing an element from an array</h4>\n<p>The following code displays the <code>myFish</code> array before and after removing its first element. It also displays the removed element:</p>\n<pre class = \"eval\">\n// assumes a println function is defined\nvar myFish = [&quot;angel&quot;, &quot;clown&quot;, &quot;mandarin&quot;, &quot;surgeon&quot;];\nprintln(&quot;myFish before: &quot; + myFish);\nvar shifted = myFish.shift();\nprintln(&quot;myFish after: &quot; + myFish);\nprintln(&quot;Removed this element: &quot; + shifted);\n</pre>\n<p>This example displays the following:</p>\n<pre class = \"eval\">\nmyFish before: angel,clown,mandarin,surgeon\nmyFish after: clown,mandarin,surgeon\nRemoved this element: angel\n</pre>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Example:_Removing_an_element_from_an_array\"></span><h4 class = \"editable\">Example: Removing an element from an array</h4>\n<p>The following code displays the <code>myFish</code> array before and after removing its first element. It also displays the removed element:</p>\n<pre class = \"eval\">\n// assumes a println function is defined\nvar myFish = [&quot;angel&quot;, &quot;clown&quot;, &quot;mandarin&quot;, &quot;surgeon&quot;];\nprintln(&quot;myFish before: &quot; + myFish);\nvar shifted = myFish.shift();\nprintln(&quot;myFish after: &quot; + myFish);\nprintln(&quot;Removed this element: &quot; + shifted);\n</pre>\n<p>This example displays the following:</p>\n<pre class = \"eval\">\nmyFish before: angel,clown,mandarin,surgeon\nmyFish after: clown,mandarin,surgeon\nRemoved this element: angel\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Array/unshift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift\">unshift</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Examples",
			"Example: Removing an element from an array",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort",
		"title": "Array.sort",
		"_id": "4eea8505a4c86c4dba0000b0",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Sorts the elements of an array in place and returns the array.</p>\n<p>Works across all browsers.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.sort([<em>compareFunction</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>compareFunction</code>&nbsp;</dt> <dd>Specifies a function that defines the sort order. If omitted, the array is sorted lexicographically (in dictionary order) according to the string conversion of each element.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If <code>compareFunction</code> is not supplied, elements are sorted by converting them to strings and comparing strings in lexicographic (&quot;dictionary&quot; or &quot;telephone book,&quot; not numerical) order. For example, &quot;80&quot; comes before &quot;9&quot; in lexicographic order, but in a numeric sort 9 comes before 80.</p>\n<p>If <code>compareFunction</code> is supplied, the array elements are sorted according to the return value of the compare function. If <code>a</code> and <code>b</code> are two elements being compared, then:</p>\n<ul> <li>If <code>compareFunction(a, b)</code> is less than 0, sort <code>a</code> to a lower index than <code>b</code>.</li>\n</ul>\n<ul> <li>If <code>compareFunction(a, b)</code> returns 0, leave <code>a</code> and <code>b</code> unchanged with respect to each other, but sorted with respect to all different elements. Note: the ECMAscript standard does not guarantee this behaviour, and thus not all browsers (e.g. Mozilla versions dating back to at least 2003) respect this.</li>\n</ul>\n<ul> <li>If <code>compareFunction(a, b)</code> is greater than 0, sort <code>b</code> to a lower index than <code>a</code>.</li>\n</ul>\n<ul> <li><code>compareFunction(a, b)</code> must always returns the same value when given a specific pair of elements a and b as its two arguments. If inconsistent results are returned then the sort order is undefined</li>\n</ul>\n<p>So, the compare function has the following form:</p>\n\r\n          <pre name = \"code\" class = \"js\">function compare(a, b)\n{\n  if (a is less than b by some ordering criterion)\n     return -1;\n  if (a is greater than b by the ordering criterion)\n     return 1;\n  // a must be equal to b\n  return 0;\n}</pre>\r\n        \n<p>To compare numbers instead of strings, the compare function can simply subtract <code>b</code> from <code>a</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">function compareNumbers(a, b)\n{\n  return a - b;\n}</pre>\r\n        \n<p>Some implementations of JavaScript implement a stable sort: the index partial order of <code>a</code> and <code>b</code> does not change if <code>a</code> and <code>b</code> are equal. If <code>a</code>'s index was less than <code>b</code>'s before sorting, it will be after sorting, no matter how <code>a</code> and <code>b</code> move due to sorting.</p>\n<p>Sort is stable in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a> and all Mozilla-based browsers starting with <a title = \"en/Gecko\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Gecko\">Gecko</a> 1.9 (see \n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=224128\" class = \"external\" title = \"RESOLVED FIXED - Array.sort isn't a stable sort (switch to MergeSort)\">\nbug 224128</a>\n).</p>\n<p>The behavior of the <code>sort</code> method changed between JavaScript 1.1 and JavaScript 1.2.</p>\n<p>In JavaScript 1.1, on some platforms, the <code>sort</code> method does not work. This method works on all platforms for JavaScript 1.2.</p>\n<p>In JavaScript 1.2, this method no longer converts <a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\">undefined</a> elements to <code>null</code>; instead it sorts them to the high end of the array. For example, assume you have this script:</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = [];\na[0] = &quot;Ant&quot;;\na[5] = &quot;Zebra&quot;;\n\n// assumes a print function is defined\nfunction writeArray(x)\n{\n  for (i = 0; i &lt; x.length; i++)\n  {\n    print(x[i]);\n    if (i &lt; x.length-1)\n      print(&quot;, &quot;);\n  }\n}\n\nwriteArray(a);\na.sort();\nprint(&quot;\\n&quot;);\nwriteArray(a);</pre>\r\n        \n<p>In JavaScript 1.1, JavaScript prints:</p>\n<pre class = \"eval\">\nant, null, null, null, null, zebra\nant, null, null, null, null, zebra\n</pre>\n<p>In JavaScript 1.2, JavaScript prints:</p>\n<pre class = \"eval\">\nant, undefined, undefined, undefined, undefined, zebra\nant, zebra, undefined, undefined, undefined, undefined\n</pre>\n<p>The sort()&nbsp;method can be conveniently used with <a class = \"internal\" title = \"en/Core JavaScript 1.5 Guide/Working with Closures\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Closures\">closures</a>:&nbsp;</p>\n\r\n          <pre name = \"code\" class = \"js\">var numbers = [4, 2, 5, 1, 3];\nnumbers.sort(function(a, b) {\n    return a - b;\n});\nprint(numbers);</pre>\r\n        \n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Creating.2C_displaying.2C_and_sorting_an_array\"></span><h4 class = \"editable\">Example: Creating, displaying, and sorting an array</h4>\n<p>The following example creates four arrays and displays the original array, then the sorted arrays. The numeric arrays are sorted without, then with, a compare function.</p>\n\r\n          <pre name = \"code\" class = \"js\">var stringArray = [&quot;Blue&quot;, &quot;Humpback&quot;, &quot;Beluga&quot;];\nvar numericStringArray = [&quot;80&quot;, &quot;9&quot;, &quot;700&quot;];\nvar numberArray = [40, 1, 5, 200];\nvar mixedNumericArray = [&quot;80&quot;, &quot;9&quot;, &quot;700&quot;, 40, 1, 5, 200];\n\nfunction compareNumbers(a, b)\n{\n  return a - b;\n}\n\n// again, assumes a print function is defined\nprint(&quot;stringArray: &quot; + stringArray.join() +&quot;\\n&quot;);\nprint(&quot;Sorted: &quot; + stringArray.sort() +&quot;\\n\\n&quot;);\n\nprint(&quot;numberArray: &quot; + numberArray.join() +&quot;\\n&quot;);\nprint(&quot;Sorted without a compare function: &quot; + numberArray.sort() +&quot;\\n&quot;);\nprint(&quot;Sorted with compareNumbers: &quot; + numberArray.sort(compareNumbers) +&quot;\\n\\n&quot;);\n\nprint(&quot;numericStringArray: &quot; + numericStringArray.join() +&quot;\\n&quot;);\nprint(&quot;Sorted without a compare function: &quot; + numericStringArray.sort() +&quot;\\n&quot;);\nprint(&quot;Sorted with compareNumbers: &quot; + numericStringArray.sort(compareNumbers) +&quot;\\n\\n&quot;);\n\nprint(&quot;mixedNumericArray: &quot; + mixedNumericArray.join() +&quot;\\n&quot;);\nprint(&quot;Sorted without a compare function: &quot; + mixedNumericArray.sort() +&quot;\\n&quot;);\nprint(&quot;Sorted with compareNumbers: &quot; + mixedNumericArray.sort(compareNumbers) +&quot;\\n\\n&quot;);</pre>\r\n        \n<p>This example produces the following output. As the output shows, when a compare function is used, numbers sort correctly whether they are numbers or numeric strings.</p>\n<pre class = \"eval\">\nstringArray: Blue,Humpback,Beluga\nSorted: Beluga,Blue,Humpback\n\nnumberArray: 40,1,5,200\nSorted without a compare function: 1,200,40,5\nSorted with compareNumbers: 1,5,40,200\n\nnumericStringArray: 80,9,700\nSorted without a compare function: 700,80,9\nSorted with compareNumbers: 9,80,700\n\nmixedNumericArray: 80,9,700,40,1,5,200\nSorted without a compare function: 1,200,40,5,700,80,9\nSorted with compareNumbers: 1,5,9,40,80,200,700\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Creating.2C_displaying.2C_and_sorting_an_array\"></span><h4 class = \"editable\">Example: Creating, displaying, and sorting an array</h4>\n<p>The following example creates four arrays and displays the original array, then the sorted arrays. The numeric arrays are sorted without, then with, a compare function.</p>\n\r\n          <pre name = \"code\" class = \"js\">var stringArray = [&quot;Blue&quot;, &quot;Humpback&quot;, &quot;Beluga&quot;];\nvar numericStringArray = [&quot;80&quot;, &quot;9&quot;, &quot;700&quot;];\nvar numberArray = [40, 1, 5, 200];\nvar mixedNumericArray = [&quot;80&quot;, &quot;9&quot;, &quot;700&quot;, 40, 1, 5, 200];\n\nfunction compareNumbers(a, b)\n{\n  return a - b;\n}\n\n// again, assumes a print function is defined\nprint(&quot;stringArray: &quot; + stringArray.join() +&quot;\\n&quot;);\nprint(&quot;Sorted: &quot; + stringArray.sort() +&quot;\\n\\n&quot;);\n\nprint(&quot;numberArray: &quot; + numberArray.join() +&quot;\\n&quot;);\nprint(&quot;Sorted without a compare function: &quot; + numberArray.sort() +&quot;\\n&quot;);\nprint(&quot;Sorted with compareNumbers: &quot; + numberArray.sort(compareNumbers) +&quot;\\n\\n&quot;);\n\nprint(&quot;numericStringArray: &quot; + numericStringArray.join() +&quot;\\n&quot;);\nprint(&quot;Sorted without a compare function: &quot; + numericStringArray.sort() +&quot;\\n&quot;);\nprint(&quot;Sorted with compareNumbers: &quot; + numericStringArray.sort(compareNumbers) +&quot;\\n\\n&quot;);\n\nprint(&quot;mixedNumericArray: &quot; + mixedNumericArray.join() +&quot;\\n&quot;);\nprint(&quot;Sorted without a compare function: &quot; + mixedNumericArray.sort() +&quot;\\n&quot;);\nprint(&quot;Sorted with compareNumbers: &quot; + mixedNumericArray.sort(compareNumbers) +&quot;\\n\\n&quot;);</pre>\r\n        \n<p>This example produces the following output. As the output shows, when a compare function is used, numbers sort correctly whether they are numbers or numeric strings.</p>\n<pre class = \"eval\">\nstringArray: Blue,Humpback,Beluga\nSorted: Beluga,Blue,Humpback\n\nnumberArray: 40,1,5,200\nSorted without a compare function: 1,200,40,5\nSorted with compareNumbers: 1,5,40,200\n\nnumericStringArray: 80,9,700\nSorted without a compare function: 700,80,9\nSorted with compareNumbers: 9,80,700\n\nmixedNumericArray: 80,9,700,40,1,5,200\nSorted without a compare function: 1,200,40,5,700,80,9\nSorted with compareNumbers: 1,5,9,40,80,200,700\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">join</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/reverse\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reverse\">reverse</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Creating, displaying, and sorting an array",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource",
		"title": "Array.toSource",
		"_id": "4eea8507a4c86c4dba0000b1",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the source code of the array.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\" title = \"en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><em>array</em>.toSource()</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>toSource</code> method returns the following values:\n</p><p>\n</p>\n<ul><li> For the built-in <code>Array</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:\n</li></ul>\n<pre class = \"eval\">function Array() {\n    [native code]\n}\n</pre>\n<ul><li> For instances of <code>Array</code>, <code>toSource</code> returns a string representing the source code.\n</li></ul>\n<p>This method is usually called internally by JavaScript and not explicitly in code. You can call <code>toSource</code> while debugging to examine the contents of an array.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Examining_the_source_code_of_an_array\"></span><h4 class = \"editable\"> Example: Examining the source code of an array </h4>\n<p>To examine the source code of an array:\n</p>\n<pre class = \"eval\">alpha = new Array(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;);\nalpha.toSource()                    //returns [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Examining_the_source_code_of_an_array\"></span><h4 class = \"editable\"> Example: Examining the source code of an array </h4>\n<p>To examine the source code of an array:\n</p>\n<pre class = \"eval\">alpha = new Array(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;);\nalpha.toSource()                    //returns [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Array/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString\">toString</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Examining the source code of an array ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat",
		"title": "Array.concat",
		"_id": "4eea8507a4c86c4dba0000b2",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a new array comprised of this array joined with other array(s) and/or value(s).</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\" title = \"en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.concat(<em>value1</em>, <em>value2</em>, ..., <em>valueN</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>value<em>N</em></code>&nbsp;</dt> <dd>Arrays and/or values to concatenate to the resulting array.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>concat</code> creates a new array consisting of the elements in the <code>this</code> object on which it is called, followed in order by, for each argument, the elements of that argument (if the argument is an array) or the argument itself (if the argument is not an array).</p>\n<p><code>concat</code> does not alter <code>this</code> or any of the arrays provided as arguments but instead returns a &quot;one level deep&quot; copy that contains copies of the same elements combined from the original arrays. Elements of the original arrays are copied into the new array as follows:</p>\n<ul> <li>Object references (and not the actual object): <code>concat</code> copies object references into the new array. Both the original and new array refer to the same object. That is, if a referenced object is modified, the changes are visible to both the new and original arrays.</li>\n</ul>\n<ul> <li>Strings and numbers (not <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/String\">String</a> and <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Number\">Number</a> objects): <code>concat</code> copies the values of strings and numbers into the new array.</li>\n</ul>\n<p>Any operation on the new array will have no effect on the original arrays, and vice versa.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Concatenating_two_arrays\"></span><h4 class = \"editable\">Example: Concatenating two arrays</h4>\n<p>The following code concatenates two arrays:</p>\n\r\n          <pre name = \"code\" class = \"js\">var alpha = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;];\nvar numeric = [1, 2, 3];\n\n// creates array [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, 1, 2, 3]; alpha and numeric are unchanged\nvar alphaNumeric = alpha.concat(numeric);</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Example:_Concatenating_three_arrays\"></span><h4 class = \"editable\">Example: Concatenating three arrays</h4>\n<p>The following code concatenates three arrays:</p>\n\r\n          <pre name = \"code\" class = \"js\">var num1 = [1, 2, 3];\nvar num2 = [4, 5, 6];\nvar num3 = [7, 8, 9];\n\n// creates array [1, 2, 3, 4, 5, 6, 7, 8, 9]; num1, num2, num3 are unchanged\nvar nums = num1.concat(num2, num3);</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example:_Concatenating_values_to_an_array\"></span><h4 class = \"editable\">Example: Concatenating values to an array</h4>\n<p>The following code concatenates three values to an array:</p>\n\r\n          <pre name = \"code\" class = \"js\">var alpha = ['a', 'b', 'c'];\n\n// creates array [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, 1, 2, 3], leaving alpha unchanged\nvar alphaNumeric = alpha.concat(1, [2, 3]);</pre>\r\n        \n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Concatenating_two_arrays\"></span><h4 class = \"editable\">Example: Concatenating two arrays</h4>\n<p>The following code concatenates two arrays:</p>\n\r\n          <pre name = \"code\" class = \"js\">var alpha = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;];\nvar numeric = [1, 2, 3];\n\n// creates array [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, 1, 2, 3]; alpha and numeric are unchanged\nvar alphaNumeric = alpha.concat(numeric);</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Concatenating_three_arrays\"></span><h4 class = \"editable\">Example: Concatenating three arrays</h4>\n<p>The following code concatenates three arrays:</p>\n\r\n          <pre name = \"code\" class = \"js\">var num1 = [1, 2, 3];\nvar num2 = [4, 5, 6];\nvar num3 = [7, 8, 9];\n\n// creates array [1, 2, 3, 4, 5, 6, 7, 8, 9]; num1, num2, num3 are unchanged\nvar nums = num1.concat(num2, num3);</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Concatenating_values_to_an_array\"></span><h4 class = \"editable\">Example: Concatenating values to an array</h4>\n<p>The following code concatenates three values to an array:</p>\n\r\n          <pre name = \"code\" class = \"js\">var alpha = ['a', 'b', 'c'];\n\n// creates array [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, 1, 2, 3], leaving alpha unchanged\nvar alphaNumeric = alpha.concat(1, [2, 3]);</pre>\r\n        \n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Concatenating two arrays",
			"Example: Concatenating three arrays",
			"Example: Concatenating values to an array"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift",
		"title": "Array.unshift",
		"_id": "4eea8508a4c86c4dba0000b3",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Adds one or more elements to the beginning of an array and returns the new length of the array.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>arrayName</em>.unshift(<em>element1</em>, ..., <em>elementN</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>element1, ..., element<em>N</em></code></dt> <dd>The elements to add to the front of the array.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Parameters\"></span><span id = \"Returns\"></span><h3 class = \"editable\">Returns</h3>\n<p>The new <code><a href = \"length\" rel = \"internal\" title = \"en/JavaScript/Reference/Global_Objects/Array/length\">length</a></code> property of the object upon which the method was called.</p>\n<dl>\n</dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>unshift</code> method inserts the given values to the beginning of an array-like object.</p>\n<p><code>unshift</code> is intentionally generic; this method can be <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">called</a> or <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">applied</a> to objects resembling arrays. Objects which do not contain a <code>length</code> property reflecting the last in a series of consecutive, zero-based numerical properties may not behave in any meaningful manner.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_7\"><span id = \"Example:_Adding_elements_to_an_array\"></span><h4 class = \"editable\">Example: Adding elements to an array</h4>\n<p>The following code displays the <code>myFish</code> array before and after adding elements to it.</p>\n<pre class = \"eval\">\n// assumes a println function exists\nmyFish = [&quot;angel&quot;, &quot;clown&quot;];\nprintln(&quot;myFish before: &quot; + myFish);\nunshifted = myFish.unshift(&quot;drum&quot;, &quot;lion&quot;);\nprintln(&quot;myFish after: &quot; + myFish);\nprintln(&quot;New length: &quot; + unshifted);\n</pre>\n<p>This example displays the following:</p>\n<pre class = \"eval\">\nmyFish before: [&quot;angel&quot;, &quot;clown&quot;]\nmyFish after: [&quot;drum&quot;, &quot;lion&quot;, &quot;angel&quot;, &quot;clown&quot;]\nNew length: 4\n</pre>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Adding_elements_to_an_array\"></span><h4 class = \"editable\">Example: Adding elements to an array</h4>\n<p>The following code displays the <code>myFish</code> array before and after adding elements to it.</p>\n<pre class = \"eval\">\n// assumes a println function exists\nmyFish = [&quot;angel&quot;, &quot;clown&quot;];\nprintln(&quot;myFish before: &quot; + myFish);\nunshifted = myFish.unshift(&quot;drum&quot;, &quot;lion&quot;);\nprintln(&quot;myFish after: &quot; + myFish);\nprintln(&quot;New length: &quot; + unshifted);\n</pre>\n<p>This example displays the following:</p>\n<pre class = \"eval\">\nmyFish before: [&quot;angel&quot;, &quot;clown&quot;]\nmyFish after: [&quot;drum&quot;, &quot;lion&quot;, &quot;angel&quot;, &quot;clown&quot;]\nNew length: 4\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/pop\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop\">pop</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/shift\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/shift\">shift</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Returns",
			"Description",
			"Examples",
			"Example: Adding elements to an array",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toString",
		"title": "Array.toString",
		"_id": "4eea8508a4c86c4dba0000b4",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the specified array and its elements.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.toString()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n<div class = \"geckoVersionNote\"> <p>\n<div class = \"geckoVersionHeading\">JavaScript 1.8.5 note</div></p> <p>Starting in&nbsp;JavaScript 1.8.5, and consistent with ECMAScript 5th edition semantics, the <code>toString()</code>&nbsp;method is generic and can be used with any object. If the object has a&nbsp;<code>join()</code>&nbsp;method, it will be called and that value will be returned. &nbsp;Otherwise <a title = \"en/JavaScript/Reference/Global Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString()</code></a>&nbsp;will be called, and the resulting value will be returned.</p>\n</div>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a> object overrides the <code>toString</code> method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a>. For Array objects, the <code>toString</code> method joins the array and returns one string containing each array element separated by commas. For example, the following code creates an array and uses <code>toString</code> to convert the array to a string.</p>\n<pre>var monthNames = ['Jan', 'Feb', 'Mar', 'Apr'];\nvar myVar = monthNames.toString(); // assigns &quot;Jan,Feb,Mar,Apr&quot; to myVar.\n</pre>\n<p>JavaScript calls the <code>toString</code> method automatically when an array is to be represented as a text value or when an array is referred to in a string concatenation.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Array/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/toSource\">toSource</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf",
		"title": "Array.lastIndexOf",
		"_id": "4eea850aa4c86c4dba0000b5",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at <code>fromIndex</code>.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.lastIndexOf(<em>searchElement</em>[, <em>fromIndex</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>searchElement</code></dt> <dd>Element to locate in the array.</dd> <dt><code>fromIndex</code></dt> <dd>The index at which to start searching backwards. Defaults to the array's length, i.e. the whole array will be searched. If the index is greater than or equal to the length of the array, the whole array will be searched. If negative, it is taken as the offset from the end of the array. Note that even when the index is negative, the array is still searched from back to front. If the calculated index is less than 0, -1 is returned, i.e. the array will not be searched.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>lastIndexOf</code> compares <code>searchElement</code> to elements of the Array using strict equality (the same method used by the ===, or triple-equals, operator).</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h3 class = \"editable\">Compatibility</h3>\n<p><code>lastIndexOf</code> is a recent addition to the ECMA-262 standard; as such it may not be present in other implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of <code>lastIndexOf</code> in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming&nbsp;<code style = \"color: inherit; font-weight: inherit; \">Object</code>,&nbsp;<code style = \"color: inherit; font-weight: inherit; \">TypeError</code>,&nbsp;<code>Number</code>, <code>Math.floor</code>, <code>Math.abs</code>, and <code>Math.min</code> have their original values. </p>\n\r\n          <pre name = \"code\" class = \"js\">if (!Array.prototype.lastIndexOf)\n{\n  Array.prototype.lastIndexOf = function(searchElement /*, fromIndex*/)\n  {\n    &quot;use strict&quot;;\n\n    if (this == null)\n      throw new TypeError();\n\n    var t = Object(this);\n    var len = t.length &gt;&gt;&gt; 0;\n    if (len === 0)\n      return -1;\n\n    var n = len;\n    if (arguments.length &gt; 1)\n    {\n      n = Number(arguments[1]);\n      if (n != n)\n        n = 0;\n      else if (n != 0 &amp;&amp; n != (1 / 0) &amp;&amp; n != -(1 / 0))\n        n = (n &gt; 0 || -1) * Math.floor(Math.abs(n));\n    }\n\n    var k = n &gt;= 0\n          ? Math.min(n, len - 1)\n          : len - Math.abs(n);\n\n    for (; k &gt;= 0; k--)\n    {\n      if (k in t &amp;&amp; t[k] === searchElement)\n        return k;\n    }\n    return -1;\n  };\n}</pre>\r\n        \n<p>Again, note that this implementation aims for absolute compatibility with <code>lastIndexOf</code> in Firefox and the SpiderMonkey JavaScript engine, including in several cases which are arguably edge cases. If you intend to use this in real-world applications, you may be able to calculate <code>from</code> with less complicated code if you ignore those cases.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_7\"><span id = \"Example:_Using_lastIndexOf\"></span><h4 class = \"editable\">Example: Using lastIndexOf</h4>\n<p>The following example uses <code>lastIndexOf</code> to locate values in an array.</p>\n<pre class = \"eval\">var array = [2, 5, 9, 2];\nvar index = array.lastIndexOf(2);\n// index is 3\nindex = array.lastIndexOf(7);\n// index is -1\nindex = array.lastIndexOf(2, 3);\n// index is 3\nindex = array.lastIndexOf(2, 2);\n// index is 0\nindex = array.lastIndexOf(2, -2);\n// index is 0\nindex = array.lastIndexOf(2, -1);\n// index is 3\n</pre>\n</div><div id = \"section_8\"><span id = \"Example:_Finding_all_the_occurrences_of_an_element\"></span><h4 class = \"editable\">Example: Finding all the occurrences of an element</h4>\n<p>The following example uses <code>lastIndexOf</code> to find all the indices of an element in a given array, using <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a> to add them to another array as they are found.</p>\n<pre class = \"eval\">var indices = [];\nvar idx = array.lastIndexOf(element);\nwhile (idx&nbsp;!= -1)\n{\n  indices.push(idx);\n  idx = (idx &gt; 0&nbsp;? array.lastIndexOf(element, idx - 1)&nbsp;: -1);\n}\n</pre>\n<p>Note that we have to handle the case <code>idx == 0</code> separately here because the element will always be found regardless of the <code>fromIndex</code> parameter if it is the first element of the array. This is different from the <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a> method.</p>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_lastIndexOf\"></span><h4 class = \"editable\">Example: Using lastIndexOf</h4>\n<p>The following example uses <code>lastIndexOf</code> to locate values in an array.</p>\n<pre class = \"eval\">var array = [2, 5, 9, 2];\nvar index = array.lastIndexOf(2);\n// index is 3\nindex = array.lastIndexOf(7);\n// index is -1\nindex = array.lastIndexOf(2, 3);\n// index is 3\nindex = array.lastIndexOf(2, 2);\n// index is 0\nindex = array.lastIndexOf(2, -2);\n// index is 0\nindex = array.lastIndexOf(2, -1);\n// index is 3\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Finding_all_the_occurrences_of_an_element\"></span><h4 class = \"editable\">Example: Finding all the occurrences of an element</h4>\n<p>The following example uses <code>lastIndexOf</code> to find all the indices of an element in a given array, using <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">push</a> to add them to another array as they are found.</p>\n<pre class = \"eval\">var indices = [];\nvar idx = array.lastIndexOf(element);\nwhile (idx&nbsp;!= -1)\n{\n  indices.push(idx);\n  idx = (idx &gt; 0&nbsp;? array.lastIndexOf(element, idx - 1)&nbsp;: -1);\n}\n</pre>\n<p>Note that we have to handle the case <code>idx == 0</code> separately here because the element will always be found regardless of the <code>fromIndex</code> parameter if it is the first element of the array. This is different from the <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a> method.</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n</div>",
			"<div id = \"section_10\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">indexOf</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Example: Using lastIndexOf",
			"Example: Finding all the occurrences of an element",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter",
		"title": "Array.filter",
		"_id": "4eea850ba4c86c4dba0000b6",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Creates a new array with all elements that pass the test implemented by the provided function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.filter(<em>callback</em>[, <em>thisObject</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>callback</code></dt> <dd>Function to test each element of the array.</dd> <dt><code>thisObject</code></dt> <dd>Object to use as <code>this</code> when executing <code>callback</code>.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>filter</code> calls a provided <code>callback</code> function once for each element in an array, and constructs a new array of all the values for which <code>callback</code> returns a true value. <code>callback</code> is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values. Array elements which do not pass the <code>callback</code> test are simply skipped, and are not included in the new array.</p>\n<p><code>callback</code> is invoked with three arguments: the value of the element, the index of the element, and the Array object being traversed.</p>\n<p>If a <code>thisObject</code> parameter is provided to <code>filter</code>, it will be used as the <code>this</code> for each invocation of the <code>callback</code>. If it is not provided, or is <code>null</code>, the global object associated with <code>callback</code> is used instead.</p>\n<p><code>filter</code> does not mutate the array on which it is called.</p>\n<p>The range of elements processed by <code>filter</code> is set before the first invocation of <code>callback</code>. Elements which are appended to the array after the call to <code>filter</code> begins will not be visited by <code>callback</code>. If existing elements of the array are changed, or deleted, their value as passed to <code>callback</code> will be the value at the time <code>filter</code> visits them; elements that are deleted are not visited.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h3 class = \"editable\">Compatibility</h3>\n<p><code>filter</code> is a JavaScript extension to the ECMA-262 standard; as such it may not be present in other implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of <code>filter</code> in ECMA-262 implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming&nbsp;<code style = \"color: inherit; font-weight: inherit; \">Object</code>&nbsp;and&nbsp;<code style = \"color: inherit; font-weight: inherit; \">TypeError</code>&nbsp;have their original values, that&nbsp;<code style = \"color: inherit; font-weight: inherit; \">fun.call</code>&nbsp;evaluates to the original value of&nbsp;<code style = \"color: inherit; font-weight: inherit; \"><a style = \"text-decoration: none; color: rgb(4, 137, 183) !important; cursor: default; \" title = \"en/JavaScript/Reference/Global Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">Function.prototype.call</a></code>, and that <code><a title = \"en/JavaScript/Reference/Global Objects/Array/push\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push\">Array.prototype.push</a></code> has its original value.&nbsp;</p>\n\r\n          <pre name = \"code\" class = \"js\">if (!Array.prototype.filter)\n{\n  Array.prototype.filter = function(fun /*, thisp */)\n  {\n    &quot;use strict&quot;;\n\n    if (this == null)\n      throw new TypeError();\n\n    var t = Object(this);\n    var len = t.length &gt;&gt;&gt; 0;\n    if (typeof fun != &quot;function&quot;)\n      throw new TypeError();\n\n    var res = [];\n    var thisp = arguments[1];\n    for (var i = 0; i &lt; len; i++)\n    {\n      if (i in t)\n      {\n        var val = t[i]; // in case fun mutates this\n        if (fun.call(thisp, val, i, t))\n          res.push(val);\n      }\n    }\n\n    return res;\n  };\n}</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_7\"><span id = \"Example:_Filtering_out_all_small_values\"></span><h4 class = \"editable\">Example: Filtering out all small values</h4>\n<p>The following example uses <code>filter</code> to create a filtered array that has all elements with values less than 10 removed.</p>\n\r\n          <pre name = \"code\" class = \"js\">function isBigEnough(element, index, array) {\n  return (element &gt;= 10);\n}\nvar filtered = [12, 5, 8, 130, 44].filter(isBigEnough);\n// filtered is [12, 130, 44]</pre>\r\n        \n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Filtering_out_all_small_values\"></span><h4 class = \"editable\">Example: Filtering out all small values</h4>\n<p>The following example uses <code>filter</code> to create a filtered array that has all elements with values less than 10 removed.</p>\n\r\n          <pre name = \"code\" class = \"js\">function isBigEnough(element, index, array) {\n  return (element &gt;= 10);\n}\nvar filtered = [12, 5, 8, 130, 44].filter(isBigEnough);\n// filtered is [12, 130, 44]</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Example: Filtering out all small values",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach",
		"title": "Array.forEach",
		"_id": "4eea850ba4c86c4dba0000b7",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Executes a provided function once per array element.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>array</em>.forEach(<em>callback</em>[, <em>thisArg</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>callback</code></dt> <dd>Function to execute for each element.</dd> <dt><code>thisArg</code></dt> <dd>Object to use as <code>this</code> when executing <code>callback</code>.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>forEach</code> executes the provided function (<code>callback</code>) once for each element present in the array. <code>callback</code> is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values.</p>\n<p><code>callback</code> is invoked with <strong>three arguments</strong>:</p>\n<ul> <li>the <strong>element value</strong></li> <li>the <strong>element index</strong></li> <li>the <strong>array being traversed</strong></li>\n</ul>\n<p>If a <code>thisArg</code> parameter is provided to <code>forEach</code>, it will be used as the <code>this</code> value for each <code>callback</code> invocation as if <code>callback.call(thisArg, element, index, array)</code> was called. If <code>thisArg</code> is <code>undefined</code> or <code>null</code>, the <code>this</code> value within the function depends on whether the function is in <a title = \"en/JavaScript/Strict_mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Strict_mode\">strict mode</a> or not (passed value if in strict mode, global object if in non-strict mode).</p>\n<p>The range of elements processed by <code>forEach</code> is set before the first invocation of <code>callback</code>. Elements which are appended to the array after the call to <code>forEach</code> begins will not be visited by <code>callback</code>. If existing elements of the array are changed, or deleted, their value as passed to <code>callback</code> will be the value at the time <code>forEach</code> visits them; elements that are deleted are not visited.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<p><code>forEach</code> is a recent addition to the ECMA-262 standard; as such it may not be present in other implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of <code>forEach</code> in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming <code>Object</code> and <code>TypeError</code> have their original values and that <code>callback.call</code>&nbsp;evaluates to the original value of <code><a title = \"en/JavaScript/Reference/Global Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">Function.prototype.call</a></code>. </p>\n\r\n          <pre name = \"code\" class = \"js\">// Production steps of ECMA-262, Edition 5, 15.4.4.18\n// Reference: http://es5.github.com/#x15.4.4.18\nif ( !Array.prototype.forEach ) {\n\n  Array.prototype.forEach = function( callback, thisArg ) {\n\n    var T, k;\n\n    if ( this == null ) {\n      throw new TypeError( &quot; this is null or not defined&quot; );\n    }\n\n    // 1. Let O be the result of calling ToObject passing the |this| value as the argument.\n    var O = Object(this);\n\n    // 2. Let lenValue be the result of calling the Get internal method of O with the argument &quot;length&quot;.\n    // 3. Let len be ToUint32(lenValue).\n    var len = O.length &gt;&gt;&gt; 0; // Hack to convert O.length to a UInt32\n\n    // 4. If IsCallable(callback) is false, throw a TypeError exception.\n    // See: http://es5.github.com/#x9.11\n    if ( {}.toString.call(callback) != &quot;[object Function]&quot; ) {\n      throw new TypeError( callback + &quot; is not a function&quot; );\n    }\n\n    // 5. If thisArg was supplied, let T be thisArg; else let T be undefined.\n    if ( thisArg ) {\n      T = thisArg;\n    }\n\n    // 6. Let k be 0\n    k = 0;\n\n    // 7. Repeat, while k &lt; len\n    while( k &lt; len ) {\n\n      var kValue;\n\n      // a. Let Pk be ToString(k).\n      //   This is implicit for LHS operands of the in operator\n      // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk.\n      //   This step can be combined with c\n      // c. If kPresent is true, then\n      if ( k in O ) {\n\n        // i. Let kValue be the result of calling the Get internal method of O with argument Pk.\n        kValue = O[ k ];\n\n        // ii. Call the Call internal method of callback with T as the this value and\n        // argument list containing kValue, k, and O.\n        callback.call( T, kValue, k, O );\n      }\n      // d. Increase k by 1.\n      k++;\n    }\n    // 8. return undefined\n  };\n}</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_7\"><span id = \"Example:_Printing_the_contents_of_an_array\"></span><span id = \"Printing_the_contents_of_an_array\"></span><h3 class = \"editable\">Printing the contents of an array</h3>\n<p>The following code logs a line for each element in an array:</p>\n\r\n          <pre name = \"code\" class = \"js\">function logArrayElements(element, index, array) {\n    console.log(&quot;a[&quot; + index + &quot;] = &quot; + element);\n}\n[2, 5, 9].forEach(logArrayElements);\n// logs:\n// a[0] = 2\n// a[1] = 5\n// a[2] = 9</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"An_object_copy_function\"></span><h3 class = \"editable\">An object copy function</h3>\n<p>The following code creates a copy of a given object. There are different ways to create a copy of an object. This one is just one of them here to explain how <code>Array.prototype.forEach</code> works. It uses a couple of new ECMAScript 5 Object.* functions.</p>\n\r\n          <pre name = \"code\" class = \"js\">function copy(o){\n  var copy = Object.create( Object.getPrototypeOf(o) );\n  var propNames = Object.getOwnPropertyNames(o);\n  propNames.forEach(function(name){\n                      var desc = Object.getOwnPropertyDescriptor(o, name);\n                      Object.defineProperty(copy, name, desc);\n                    });\n  return copy;\n}\n\n\nvar o1 = {a:1, b:2};\nvar o2 = copy(o1); // o2 looks like o1 now</pre>\r\n        \n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Printing_the_contents_of_an_array\"></span><span id = \"Printing_the_contents_of_an_array\"></span><h3 class = \"editable\">Printing the contents of an array</h3>\n<p>The following code logs a line for each element in an array:</p>\n\r\n          <pre name = \"code\" class = \"js\">function logArrayElements(element, index, array) {\n    console.log(&quot;a[&quot; + index + &quot;] = &quot; + element);\n}\n[2, 5, 9].forEach(logArrayElements);\n// logs:\n// a[0] = 2\n// a[1] = 5\n// a[2] = 9</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"An_object_copy_function\"></span><h3 class = \"editable\">An object copy function</h3>\n<p>The following code creates a copy of a given object. There are different ways to create a copy of an object. This one is just one of them here to explain how <code>Array.prototype.forEach</code> works. It uses a couple of new ECMAScript 5 Object.* functions.</p>\n\r\n          <pre name = \"code\" class = \"js\">function copy(o){\n  var copy = Object.create( Object.getPrototypeOf(o) );\n  var propNames = Object.getOwnPropertyNames(o);\n  propNames.forEach(function(name){\n                      var desc = Object.getOwnPropertyDescriptor(o, name);\n                      Object.defineProperty(copy, name, desc);\n                    });\n  return copy;\n}\n\n\nvar o1 = {a:1, b:2};\nvar o2 = copy(o1); // o2 looks like o1 now</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Printing the contents of an array",
			"An object copy function",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every",
		"title": "Array.every",
		"_id": "4eea850ca4c86c4dba0000b8",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Tests whether all elements in the array pass the test implemented by the provided function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>array</em>.every(<em>callback</em>[, <em>thisObject</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>callback</code></dt> <dd>Function to test for each element.</dd> <dt><code>thisObject</code></dt> <dd>Object to use as <code>this</code> when executing <code>callback</code>.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>every</code> executes the provided <code>callback</code> function once for each element present in the array until it finds one where <code>callback</code> returns a false value. If such an element is found, the <code>every</code> method immediately returns <code>false</code>. Otherwise, if <code>callback</code> returned a true value for all elements, <code>every</code> will return <code>true</code>. <code>callback</code> is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values.</p>\n<p><code>callback</code> is invoked with three arguments: the value of the element, the index of the element, and the Array object being traversed.</p>\n<p>If a <code>thisObject</code> parameter is provided to <code>every</code>, it will be used as the <code>this</code> for each invocation of the <code>callback</code>. If it is not provided, or is <code>null</code>, the global object associated with <code>callback</code> is used instead.</p>\n<p><code>every</code> does not mutate the array on which it is called.</p>\n<p>The range of elements processed by <code>every</code> is set before the first invocation of <code>callback</code>. Elements which are appended to the array after the call to <code>every</code> begins will not be visited by <code>callback</code>. If existing elements of the array are changed, their value as passed to <code>callback</code> will be the value at the time <code>every</code> visits them; elements that are deleted are not visited.</p>\n<p><code>every</code> acts like the &quot;for all&quot; quantifier in mathematics. In particular, for an empty array, it returns true. (It is <a class = \"external\" rel = \"external\" href = \"http://en.wikipedia.org/wiki/Vacuous_truth#Vacuous_truths_in_mathematics\" title = \"http://en.wikipedia.org/wiki/Vacuous_truth#Vacuous_truths_in_mathematics\" target = \"_blank\">vacuously true</a> that all elements of the <a class = \"external\" rel = \"external\" href = \"http://en.wikipedia.org/wiki/Empty_set#Common_problems\" title = \"http://en.wikipedia.org/wiki/Empty_set#Common_problems\" target = \"_blank\">empty set</a> satisfy any given condition.)</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<p><code>every</code> is a recent addition to the ECMA-262 standard; as such it may not be present in other implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of <code>every</code> in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming&nbsp;<code style = \"color: inherit; font-weight: inherit; \">Object</code>&nbsp;and&nbsp;<code style = \"color: inherit; font-weight: inherit; \">TypeError</code>&nbsp;have their original values and that&nbsp;<code style = \"color: inherit; font-weight: inherit; \">fun.call</code>&nbsp;evaluates to the original value of&nbsp;<code style = \"color: inherit; font-weight: inherit; \"><a href = \"/en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" style = \"text-decoration: none; color: rgb(4, 121, 167); \">Function.prototype.call</a></code>. &nbsp;</p>\n\r\n          <pre name = \"code\" class = \"js\">if (!Array.prototype.every)\n{\n  Array.prototype.every = function(fun /*, thisp */)\n  {\n    &quot;use strict&quot;;\n\n    if (this == null)\n      throw new TypeError();\n\n    var t = Object(this);\n    var len = t.length &gt;&gt;&gt; 0;\n    if (typeof fun != &quot;function&quot;)\n      throw new TypeError();\n\n    var thisp = arguments[1];\n    for (var i = 0; i &lt; len; i++)\n    {\n      if (i in t &amp;&amp; !fun.call(thisp, t[i], i, t))\n        return false;\n    }\n\n    return true;\n  };\n}</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_7\"><span id = \"Example:_Testing_size_of_all_array_elements\"></span><h3 class = \"editable\">Example: Testing size of all array elements</h3>\n<p>The following example tests whether all elements in the array are bigger than 10.</p>\n\r\n          <pre name = \"code\" class = \"js\">function isBigEnough(element, index, array) {\n  return (element &gt;= 10);\n}\nvar passed = [12, 5, 8, 130, 44].every(isBigEnough);\n// passed is false\npassed = [12, 54, 18, 130, 44].every(isBigEnough);\n// passed is true</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Testing_size_of_all_array_elements\"></span><h3 class = \"editable\">Example: Testing size of all array elements</h3>\n<p>The following example tests whether all elements in the array are bigger than 10.</p>\n\r\n          <pre name = \"code\" class = \"js\">function isBigEnough(element, index, array) {\n  return (element &gt;= 10);\n}\nvar passed = [12, 5, 8, 130, 44].every(isBigEnough);\n// passed is false\npassed = [12, 54, 18, 130, 44].every(isBigEnough);\n// passed is true</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Example: Testing size of all array elements",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map",
		"title": "Array.map",
		"_id": "4eea850da4c86c4dba0000b9",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Creates a new array with the results of calling a provided function on every element in this array.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>array</em>.map(<em>callback</em>[, <em>thisArg</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>callback</code></dt> <dd>Function that produces an element of the new Array from an element of the current one.</dd> <dt><code>thisArg</code></dt> <dd>Object to use as <code>this</code> when executing <code>callback</code>.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>map</code> calls a provided <code>callback</code> function once for each element in an array, in order, and constructs a new array from the results. <code>callback</code> is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values.</p>\n<p><code>callback</code> is invoked with three arguments: the value of the element, the index of the element, and the Array object being traversed.</p>\n<p>If a <code>thisArg</code> parameter is provided to <code>map</code>, it will be used as the <code>this</code> for each invocation of the <code>callback</code>. If it is not provided, or is <code>null</code>, the global object associated with <code>callback</code> is used instead.</p>\n<p><code>map</code> does not mutate the array on which it is called.</p>\n<p>The range of elements processed by <code>map</code> is set before the first invocation of <code>callback</code>. Elements which are appended to the array after the call to <code>map</code> begins will not be visited by <code>callback</code>. If existing elements of the array are changed, or deleted, their value as passed to <code>callback</code> will be the value at the time <code>map</code> visits them; elements that are deleted are not visited.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<p><code>map</code> is a recent addition to the ECMA-262 standard; as such it may not be present in other implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of <code>map</code> in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming&nbsp;<code style = \"color: inherit; font-weight: inherit; \">Object</code>,&nbsp;<code style = \"color: inherit; font-weight: inherit; \">TypeError</code>, and <code>Array</code> have their original values and that&nbsp;<code style = \"color: inherit; font-weight: inherit; \">callback.call</code>&nbsp;evaluates to the original value of&nbsp;<code style = \"color: inherit; font-weight: inherit; \"><a style = \"text-decoration: none; color: rgb(4, 121, 167); \" rel = \"internal\" href = \"/en/JavaScript/Reference/Global_Objects/Function/call\">Function.prototype.call</a></code>. &nbsp;</p>\n\r\n          <pre name = \"code\" class = \"js\">// Production steps of ECMA-262, Edition 5, 15.4.4.19\n// Reference: http://es5.github.com/#x15.4.4.19\nif (!Array.prototype.map) {\n  Array.prototype.map = function(callback, thisArg) {\n\n    var T, A, k;\n\n    if (this == null) {\n      throw new TypeError(&quot; this is null or not defined&quot;);\n    }\n\n    // 1. Let O be the result of calling ToObject passing the |this| value as the argument.\n    var O = Object(this);\n\n    // 2. Let lenValue be the result of calling the Get internal method of O with the argument &quot;length&quot;.\n    // 3. Let len be ToUint32(lenValue).\n    var len = O.length &gt;&gt;&gt; 0;\n\n    // 4. If IsCallable(callback) is false, throw a TypeError exception.\n    // See: http://es5.github.com/#x9.11\n    if ({}.toString.call(callback) != &quot;[object Function]&quot;) {\n      throw new TypeError(callback + &quot; is not a function&quot;);\n    }\n\n    // 5. If thisArg was supplied, let T be thisArg; else let T be undefined.\n    if (thisArg) {\n      T = thisArg;\n    }\n\n    // 6. Let A be a new array created as if by the expression new Array(len) where Array is\n    // the standard built-in constructor with that name and len is the value of len.\n    A = new Array(len);\n\n    // 7. Let k be 0\n    k = 0;\n\n    // 8. Repeat, while k &lt; len\n    while(k &lt; len) {\n\n      var kValue, mappedValue;\n\n      // a. Let Pk be ToString(k).\n      //   This is implicit for LHS operands of the in operator\n      // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk.\n      //   This step can be combined with c\n      // c. If kPresent is true, then\n      if (k in O) {\n\n        // i. Let kValue be the result of calling the Get internal method of O with argument Pk.\n        kValue = O[ k ];\n\n        // ii. Let mappedValue be the result of calling the Call internal method of callback\n        // with T as the this value and argument list containing kValue, k, and O.\n        mappedValue = callback.call(T, kValue, k, O);\n\n        // iii. Call the DefineOwnProperty internal method of A with arguments\n        // Pk, Property Descriptor {Value: mappedValue, Writable: true, Enumerable: true, Configurable: true},\n        // and false.\n\n        // In browsers that support Object.defineProperty, use the following:\n        // Object.defineProperty(A, Pk, { value: mappedValue, writable: true, enumerable: true, configurable: true });\n\n        // For best browser support, use the following:\n        A[ k ] = mappedValue;\n      }\n      // d. Increase k by 1.\n      k++;\n    }\n\n    // 9. return A\n    return A;\n  };      \n}</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_7\"><span id = \"Example:_Pluralizing_the_words_.28strings.29_in_an_array\"></span><span id = \"Example:_Pluralizing_the_words_(strings)_in_an_array\"></span><h3 class = \"editable\">Example: Pluralizing the words (strings) in an array</h3>\n<p>The following code creates an array of &quot;plural&quot; forms of nouns from an array of their singular forms.</p>\n\r\n          <pre name = \"code\" class = \"js\">function fuzzyPlural(single) {\n  return single.replace(/o/g, 'e');\n}\n\nvar words = [&quot;foot&quot;, &quot;goose&quot;, &quot;moose&quot;];\nconsole.log(words.map(fuzzyPlural));\n\n// [&quot;feet&quot;, &quot;geese&quot;, &quot;meese&quot;]</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example:_Mapping_an_array_of_numbers_to_an_array_of_square_roots\"></span><h3 class = \"editable\">Example: Mapping an array of numbers to an array of square roots</h3>\n<p>The following code takes an array of numbers and creates a new array containing the square roots of the numbers in the first array.</p>\n\r\n          <pre name = \"code\" class = \"js\">var numbers = [1, 4, 9];\nvar roots = numbers.map(Math.sqrt);\n/* roots is now [1, 2, 3], numbers is still [1, 4, 9] */</pre>\r\n        \n</div><div id = \"section_9\"><span id = \"Example:_using_map_generically\"></span><h3 class = \"editable\">Example: using <code>map</code> generically</h3>\n<p>This example shows how to use map on a <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/String\">string</a> to get an array of bytes in the ASCII encoding representing the character values:</p>\n\r\n          <pre name = \"code\" class = \"js\">var map = Array.prototype.map\nvar a = map.call(&quot;Hello World&quot;, function(x) { return x.charCodeAt(0); })\n// a now equals [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]</pre>\r\n        \n</div><div id = \"section_10\"><span id = \"Tricky_use_case\"></span><h3 class = \"editable\">Tricky use case</h3>\n<p><a class = \" external\" rel = \"external\" href = \"http://www.wirfs-brock.com/allen/posts/166\" title = \"http://www.wirfs-brock.com/allen/posts/166\" target = \"_blank\">(inspired by this blog post)</a></p>\n<p>It is common to use the callback with one argument (the element being traversed). Some functions are also commonly used with one argument. These habits may lead to confusing behaviors.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Consider:\n[&quot;1&quot;, &quot;2&quot;, &quot;3&quot;].map(parseInt);\n// While one could expect [1, 2, 3]\n// The actual result is [1, NaN, NaN]\n\n// parseInt is often used with one argument, but takes two. The second being the radix\n// To the callback function, Array.prototype.map passes 3 arguments: the element, the index, the array\n// The third argument is ignored by parseInt, but not the second one, hence the possible confusion.\n// See the blog post for more details</pre>\r\n        \n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Pluralizing_the_words_.28strings.29_in_an_array\"></span><span id = \"Example:_Pluralizing_the_words_(strings)_in_an_array\"></span><h3 class = \"editable\">Example: Pluralizing the words (strings) in an array</h3>\n<p>The following code creates an array of &quot;plural&quot; forms of nouns from an array of their singular forms.</p>\n\r\n          <pre name = \"code\" class = \"js\">function fuzzyPlural(single) {\n  return single.replace(/o/g, 'e');\n}\n\nvar words = [&quot;foot&quot;, &quot;goose&quot;, &quot;moose&quot;];\nconsole.log(words.map(fuzzyPlural));\n\n// [&quot;feet&quot;, &quot;geese&quot;, &quot;meese&quot;]</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Mapping_an_array_of_numbers_to_an_array_of_square_roots\"></span><h3 class = \"editable\">Example: Mapping an array of numbers to an array of square roots</h3>\n<p>The following code takes an array of numbers and creates a new array containing the square roots of the numbers in the first array.</p>\n\r\n          <pre name = \"code\" class = \"js\">var numbers = [1, 4, 9];\nvar roots = numbers.map(Math.sqrt);\n/* roots is now [1, 2, 3], numbers is still [1, 4, 9] */</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"Example:_using_map_generically\"></span><h3 class = \"editable\">Example: using <code>map</code> generically</h3>\n<p>This example shows how to use map on a <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/String\">string</a> to get an array of bytes in the ASCII encoding representing the character values:</p>\n\r\n          <pre name = \"code\" class = \"js\">var map = Array.prototype.map\nvar a = map.call(&quot;Hello World&quot;, function(x) { return x.charCodeAt(0); })\n// a now equals [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]</pre>\r\n        \n</div>",
			"<div id = \"section_10\"><span id = \"Tricky_use_case\"></span><h3 class = \"editable\">Tricky use case</h3>\n<p><a class = \" external\" rel = \"external\" href = \"http://www.wirfs-brock.com/allen/posts/166\" title = \"http://www.wirfs-brock.com/allen/posts/166\" target = \"_blank\">(inspired by this blog post)</a></p>\n<p>It is common to use the callback with one argument (the element being traversed). Some functions are also commonly used with one argument. These habits may lead to confusing behaviors.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Consider:\n[&quot;1&quot;, &quot;2&quot;, &quot;3&quot;].map(parseInt);\n// While one could expect [1, 2, 3]\n// The actual result is [1, NaN, NaN]\n\n// parseInt is often used with one argument, but takes two. The second being the radix\n// To the callback function, Array.prototype.map passes 3 arguments: the element, the index, the array\n// The third argument is ignored by parseInt, but not the second one, hence the possible confusion.\n// See the blog post for more details</pre>\r\n        \n</div>",
			"<div id = \"section_11\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Example: Pluralizing the words (strings) in an array",
			"Example: Mapping an array of numbers to an array of square roots",
			"Example: using map generically",
			"Tricky use case",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some",
		"title": "Array.some",
		"_id": "4eea850fa4c86c4dba0000ba",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Tests whether some element in the array passes the test implemented by the provided function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.some(<em>callback</em>[, <em>thisObject</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>callback</code></dt> <dd>Function to test for each element.</dd> <dt><code>thisObject</code></dt> <dd>Object to use as <code>this</code> when executing <code>callback</code>.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>some</code> executes the <code>callback</code> function once for each element present in the array until it finds one where <code>callback</code> returns a true value. If such an element is found, <code>some</code> immediately returns <code>true</code>. Otherwise, <code>some</code> returns <code>false</code>. <code>callback</code> is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values.</p>\n<p><code>callback</code> is invoked with three arguments: the value of the element, the index of the element, and the Array object being traversed.</p>\n<p>If a <code>thisObject</code> parameter is provided to <code>some</code>, it will be used as the <code>this</code> for each invocation of the <code>callback</code>. If it is not provided, or is <code>null</code>, the global object associated with <code>callback</code> is used instead.</p>\n<p><code>some</code> does not mutate the array on which it is called.</p>\n<p>The range of elements processed by <code>some</code> is set before the first invocation of <code>callback</code>. Elements that are appended to the array after the call to <code>some</code> begins will not be visited by <code>callback</code>. If an existing, unvisited element of the array is changed by <code>callback</code>, its value passed to the visiting <code>callback</code> will be the value at the time that <code>some</code> visits that element's index; elements that are deleted are not visited.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h3 class = \"editable\">Compatibility</h3>\n<p><code>some</code> is a recent addition to the ECMA-262 standard; as such it may not be present in other implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of <code>some</code> in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming&nbsp;<code style = \"color: inherit; font-weight: inherit; \">Object&nbsp;</code>and&nbsp;<code style = \"color: inherit; font-weight: inherit; \">TypeError</code>&nbsp;have their original values and that&nbsp;<code style = \"color: inherit; font-weight: inherit; \">fun.call</code>&nbsp;evaluates to the original value of&nbsp;<code style = \"color: inherit; font-weight: inherit; \"><a href = \"/en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" style = \"text-decoration: none; color: rgb(4, 121, 167); \">Function.prototype.call</a></code>. &nbsp;</p>\n<p>&nbsp;</p>\n<p>&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt; &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;</p>\n<pre class = \"eval\">if (!Array.prototype.some)\n{\n  Array.prototype.some = function(fun /*, thisp */)\n  {\n    &quot;use strict&quot;;\n\n    if (this == null)\n      throw new TypeError();\n\n    var t = Object(this);\n    var len = t.length &gt;&gt;&gt; 0;\n    if (typeof fun&nbsp;!= &quot;function&quot;)\n      throw new TypeError();\n\n    var thisp = arguments[1];\n    for (var i = 0; i &lt; len; i++)\n    {\n      if (i in t &amp;&amp; fun.call(thisp, t[i], i, t))\n        return true;\n    }\n\n    return false;\n  };\n}\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_7\"><span id = \"Example:_Testing_size_of_all_array_elements\"></span><h4 class = \"editable\">Example: Testing size of all array elements</h4>\n<p>The following example tests whether some element in the array is bigger than 10.</p>\n<pre class = \"eval\">function isBigEnough(element, index, array) {\n  return (element &gt;= 10);\n}\nvar passed = [2, 5, 8, 1, 4].some(isBigEnough);\n// passed is false\npassed = [12, 5, 8, 1, 4].some(isBigEnough);\n// passed is true\n</pre>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Testing_size_of_all_array_elements\"></span><h4 class = \"editable\">Example: Testing size of all array elements</h4>\n<p>The following example tests whether some element in the array is bigger than 10.</p>\n<pre class = \"eval\">function isBigEnough(element, index, array) {\n  return (element &gt;= 10);\n}\nvar passed = [2, 5, 8, 1, 4].some(isBigEnough);\n// passed is false\npassed = [12, 5, 8, 1, 4].some(isBigEnough);\n// passed is true\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Example: Testing size of all array elements",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/ReduceRight",
		"title": "Array.ReduceRight",
		"_id": "4eea8510a4c86c4dba0000bb",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\"><code>Array</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>array</em>.reduceRight(<em>callback</em>[, <em>initialValue</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>callback</code></dt> <dd>Function to execute on each value in the array.</dd> <dt><code>initialValue</code></dt> <dd>Object to use as the first argument to the first call of the <code>callback</code>.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>reduceRight</code> executes the callback function once for each element present in the array, excluding holes in the array, receiving four arguments: the initial value (or value from the previous callback call), the value of the current element, the current index, and the array over which iteration is occurring.</p>\n<p>The call to the reduceRight <code>callback</code> would look something like this:</p>\n<pre class = \"eval\">array.reduceRight(function(previousValue, currentValue, index, array) {\n    // ...\n});\n</pre>\n<p>The first time the function is called, the <code>previousValue</code> and <code>currentValue</code> can be one of two values. If an <code>initialValue</code> was provided in the call to <code>reduceRight</code>, then <code>previousValue</code> will be equal to <code>initialValue</code> and <code>currentValue</code> will be equal to the last value in the array. If no <code>initialValue</code> was provided, then <code>previousValue</code> will be equal to the last value in the array and <code>currentValue</code> will be equal to the second-to-last value.</p>\n<p>Some example run-throughs of the function would look like this:</p>\n\r\n          <pre name = \"code\" class = \"js\">[0, 1, 2, 3, 4].reduceRight(function(previousValue, currentValue, index, array) {\n    return previousValue + currentValue;\n});\n\n// First call\npreviousValue = 4, currentValue = 3, index = 3\n\n// Second call\npreviousValue = 7, currentValue = 2, index = 2\n\n// Third call\npreviousValue = 9, currentValue = 1, index = 1\n\n// Fourth call\npreviousValue = 10, currentValue = 0, index = 0\n\n// array is always the object [0,1,2,3,4] upon which reduceRight was called\n\n// Return Value: 10</pre>\r\n        \n<p>And if you were to provide an <code>initialValue</code>, the result would look like this:</p>\n\r\n          <pre name = \"code\" class = \"js\">[0, 1, 2, 3, 4].reduceRight(function(previousValue, currentValue, index, array) {\n    return previousValue + currentValue;\n}, 10);\n\n// First call\npreviousValue = 10, currentValue = 4, index = 4\n\n// Second call\npreviousValue = 14, currentValue = 3, index = 3\n\n// Third call\npreviousValue = 17, currentValue = 2, index = 2\n\n// Fourth call\npreviousValue = 19, currentValue = 1, index = 1\n\n// Fifth call\npreviousValue = 20, currentValue = 0, index = 0\n\n// array is always the object [0,1,2,3,4] upon which reduceRight was called\n\n// Return Value: 20</pre>\r\n        \n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h3 class = \"editable\">Compatibility</h3>\n<p><code>reduceRight</code> is a recent addition to the ECMA-262 standard; as such it may not be present in other implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of <code>reduceRight</code> in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming&nbsp;<code style = \"color: inherit; font-weight: inherit; \">Object</code>&nbsp;and&nbsp;<code style = \"color: inherit; font-weight: inherit; \">TypeError</code>&nbsp;have their original value&nbsp;and that&nbsp;<code style = \"color: inherit; font-weight: inherit; \">callbackfn.call</code>&nbsp;evaluates to the original value of&nbsp;<code style = \"color: inherit; font-weight: inherit; \"><a style = \"text-decoration: none; color: rgb(4, 137, 183) !important; cursor: default; \" title = \"en/JavaScript/Reference/Global Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">Function.prototype.call</a></code>. &nbsp;</p>\n\r\n          <pre name = \"code\" class = \"js\">if (!Array.prototype.reduceRight)\n{\n  Array.prototype.reduceRight = function(callbackfn /*, initialValue */)\n  {\n    &quot;use strict&quot;;\n\n    if (this == null)\n      throw new TypeError();\n\n    var t = Object(this);\n    var len = t.length &gt;&gt;&gt; 0;\n    if (typeof callbackfn != &quot;function&quot;)\n      throw new TypeError();\n\n    // no value to return if no initial value, empty array\n    if (len === 0 &amp;&amp; arguments.length === 1)\n      throw new TypeError();\n\n    var k = len - 1;\n    var accumulator;\n    if (arguments.length &gt;= 2)\n    {\n      accumulator = arguments[1];\n    }\n    else\n    {\n      do\n      {\n        if (k in this)\n        {\n          accumulator = this[k--];\n          break;\n        }\n\n        // if array contains no values, no initial value to return\n        if (--k &lt; 0)\n          throw new TypeError();\n      }\n      while (true);\n    }\n\n    while (k &gt;= 0)\n    {\n      if (k in t)\n        accumulator = callbackfn.call(undefined, accumulator, t[k], k, t);\n      k--;\n    }\n\n    return accumulator;\n  };\n}</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_7\"><span id = \"Example:_Sum_up_all_values_within_an_array\"></span><h4 class = \"editable\">Example: Sum up all values within an array</h4>\n\r\n          <pre name = \"code\" class = \"js\">var total = [0, 1, 2, 3].reduceRight(function(a, b) {\n    return a + b;\n});\n// total == 6</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example:_Flatten_an_array_of_arrays\"></span><h4 class = \"editable\">Example: Flatten an array of arrays</h4>\n\r\n          <pre name = \"code\" class = \"js\">var flattened = [[0, 1], [2, 3], [4, 5]].reduceRight(function(a, b) {\n    return a.concat(b);\n}, []);\n// flattened is [4, 5, 2, 3, 0, 1]</pre>\r\n        \n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Sum_up_all_values_within_an_array\"></span><h4 class = \"editable\">Example: Sum up all values within an array</h4>\n\r\n          <pre name = \"code\" class = \"js\">var total = [0, 1, 2, 3].reduceRight(function(a, b) {\n    return a + b;\n});\n// total == 6</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Flatten_an_array_of_arrays\"></span><h4 class = \"editable\">Example: Flatten an array of arrays</h4>\n\r\n          <pre name = \"code\" class = \"js\">var flattened = [[0, 1], [2, 3], [4, 5]].reduceRight(function(a, b) {\n    return a.concat(b);\n}, []);\n// flattened is [4, 5, 2, 3, 0, 1]</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"En/Core_JavaScript_1.5_Reference/Global_Objects/Array/Reduce\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/Reduce\">reduce</a></li>\n</ul>\n</div>",
			"<div id = \"section_10\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>3.0 (1.9)\n</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td>10.5</td> <td>4.0</td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Example: Sum up all values within an array",
			"Example: Flatten an array of arrays",
			"See Also",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/Reduce",
		"title": "Array.Reduce",
		"_id": "4eea8510a4c86c4dba0000bc",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><var style = \"font-style: italic;\">array</var>.reduce(<var style = \"font-style: italic;\">callback</var><span style = \"font-style: italic;\">[</span>, <var style = \"font-style: italic;\">initialValue</var><span style = \"font-style: italic;\">]</span>)</code></p>\n</div>",
			"<div id = \"section_2\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>callback</code></dt> <dd>Function to execute on each value in the array, taking four arguments: <dl> <dt><code>previousValue</code></dt> <dd>The value previously returned in the last invocation of the callback, or <code>initialValue</code>, if supplied. (See below.)</dd> <dt><code>currentValue</code></dt> <dd>The current element being processed in the array.</dd> <dt><code>index</code></dt> <dd>The index of the current element being processed in the array.</dd> <dt><code>array</code></dt> <dd>The array <code>reduce</code> was called upon.</dd> </dl> </dd> <dt><code>initialValue</code></dt> <dd>Object to use as the first argument to the first call of the <code>callback</code>.</dd>\n</dl>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>reduce</code> executes the <code>callback</code> function once for each element present in the array, excluding holes in the array, receiving four arguments: the initial value (or value from the previous <code>callback</code> call), the value of the current element, the current index, and the array over which iteration is occurring.</p>\n<p>The first time the callback is called, <code>previousValue</code> and <code>currentValue</code> can be one of two values. If <code>initialValue</code> is provided in the call to <code>reduce</code>, then <code>previousValue</code> will be equal to <code>initialValue</code> and <code>currentValue</code> will be equal to the first value in the array. If no <code>initialValue</code> was provided, then <code>previousValue</code> will be equal to the first value in the array and <code>currentValue</code> will be equal to the second.</p>\n<p>Suppose the following use of <code>reduce</code> occurred:</p>\n\r\n          <pre name = \"code\" class = \"js\">[0,1,2,3,4].reduce(function(previousValue, currentValue, index, array){\n  return previousValue + currentValue;\n});</pre>\r\n        \n<p>The callback would be invoked four times, with the arguments and return values in each call being as follows:</p>\n<table border = \"1\" cellpadding = \"1\" cellspacing = \"1\" style = \"width: 100%; table-layout: fixed;\"> <thead> <tr> <th scope = \"col\">&nbsp;</th> <th scope = \"col\"><code>previousValue<br/> </code></th> <th scope = \"col\"><code>currentValue<br/> </code></th> <th scope = \"col\"><code>index</code></th> <th scope = \"col\"><code>array</code></th> <th scope = \"col\">return value</th> </tr> </thead> <tbody> <tr> <th scope = \"row\">first call</th> <td><code>0<br/> </code></td> <td><code>1<br/> </code></td> <td><code>1<br/> </code></td> <td><code>[0,1,2,3,4]</code></td> <td><code>1<br/> </code></td> </tr> <tr> <th scope = \"row\">second call</th> <td><code>1<br/> </code></td> <td><code>2<br/> </code></td> <td><code>2<br/> </code></td> <td><code>[0,1,2,3,4]</code></td> <td><code>3<br/> </code></td> </tr> <tr> <th scope = \"row\">third call</th> <td><code>3<br/> </code></td> <td><code>3<br/> </code></td> <td><code>3<br/> </code></td> <td><code>[0,1,2,3,4]</code></td> <td><code>6<br/> </code></td> </tr> <tr> <th scope = \"row\">fourth call</th> <td><code>6<br/> </code></td> <td><code>4<br/> </code></td> <td><code>4<br/> </code></td> <td><code>[0,1,2,3,4]</code></td> <td><code>10<br/> </code></td> </tr> </tbody>\n</table>\n<p>The value returned by <code>reduce</code> would be that of the last callback invocation (<code>10</code>).</p>\n<p>If you were to provide an initial value as the second argument to <code>reduce</code>, the result would look like this:</p>\n\r\n          <pre name = \"code\" class = \"js\">[0,1,2,3,4].reduce(function(previousValue, currentValue, index, array){\n  return previousValue + currentValue;\n}, 10);</pre>\r\n        \n<table border = \"1\" cellpadding = \"1\" cellspacing = \"1\" style = \"width: 100%; table-layout: fixed;\"> <thead> <tr> <th scope = \"col\">&nbsp;</th> <th scope = \"col\"><code>previousValue<br/> </code></th> <th scope = \"col\"><code>currentValue<br/> </code></th> <th scope = \"col\"><code>index</code></th> <th scope = \"col\"><code>array</code></th> <th scope = \"col\">return value</th> </tr> </thead> <tbody> <tr> <th scope = \"row\">first call</th> <td><code>10<br/> </code></td> <td><code>0<br/> </code></td> <td><code>0<br/> </code></td> <td><code>[0,1,2,3,4]</code></td> <td><code>10<br/> </code></td> </tr> <tr> <th scope = \"row\">second call</th> <td><code>10<br/> </code></td> <td><code>1<br/> </code></td> <td><code>1</code></td> <td><code>[0,1,2,3,4]</code></td> <td><code>11<br/> </code></td> </tr> <tr> <th scope = \"row\">third call</th> <td><code>11<br/> </code></td> <td><code>2<br/> </code></td> <td><code>2<br/> </code></td> <td><code>[0,1,2,3,4]</code></td> <td><code>13<br/> </code></td> </tr> <tr> <th scope = \"row\">fourth call</th> <td><code>13<br/> </code></td> <td><code>3<br/> </code></td> <td><code>3<br/> </code></td> <td><code>[0,1,2,3,4]</code></td> <td><code>16<br/> </code></td> </tr> <tr> <th scope = \"row\">fifth call</th> <td><code>16</code></td> <td><code>4</code></td> <td><code>4</code></td> <td><code>[0,1,2,3,4]</code></td> <td><code>20<br/> </code></td> </tr> </tbody>\n</table>\n<p>The value returned by <code>reduce</code> this time would be, of course, <code>20</code>.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<p><code>Array.prototype.reduce</code> is an ECMAScript 5 addition; as such it may not be present in other implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of <code>reduce</code> in implementations which do not natively support it.</p>\n\r\n          <pre name = \"code\" class = \"js\">if ( !Array.prototype.reduce ) {\n  Array.prototype.reduce = function reduce(accumulator){\n        var i, l = this.length, curr;\n        \n        if(typeof accumulator !== &quot;function&quot;) // ES5 : &quot;If IsCallable(callbackfn) is false, throw a TypeError exception.&quot;\n          throw new TypeError(&quot;First argument is not callable&quot;);\n\n        if((l == 0 || l === null) &amp;&amp; (arguments.length &lt;= 1))// == on purpose to test 0 and false.\n          throw new TypeError(&quot;Array length is 0 and no second argument&quot;);\n        \n        if(arguments.length &lt;= 1){\n          curr = this[0]; // Increase i to start searching the secondly defined element in the array\n          i = 1; // start accumulating at the second element\n        }\n        else{\n          curr = arguments[1];\n        }\n        \n        for(i = i || 0 ; i &lt; l ; ++i){\n          if(i in this)\n            curr = accumulator.call(undefined, curr, this[i], i, this);\n        }\n        \n        return curr;\n      };\n  }</pre>\r\n        \n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Example:_Sum_up_all_values_within_an_array\"></span><h3 class = \"editable\">Example: Sum up all values within an array</h3>\n\r\n          <pre name = \"code\" class = \"js\">var total = [0, 1, 2, 3].reduce(function(a, b) {\n    return a + b;\n});\n// total == 6</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Example:_Flatten_an_array_of_arrays\"></span><h3 class = \"editable\">Example: Flatten an array of arrays</h3>\n\r\n          <pre name = \"code\" class = \"js\">var flattened = [[0, 1], [2, 3], [4, 5]].reduce(function(a, b) {\n    return a.concat(b);\n});\n// flattened is [0, 1, 2, 3, 4, 5]</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Sum_up_all_values_within_an_array\"></span><h3 class = \"editable\">Example: Sum up all values within an array</h3>\n\r\n          <pre name = \"code\" class = \"js\">var total = [0, 1, 2, 3].reduce(function(a, b) {\n    return a + b;\n});\n// total == 6</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Flatten_an_array_of_arrays\"></span><h3 class = \"editable\">Example: Flatten an array of arrays</h3>\n\r\n          <pre name = \"code\" class = \"js\">var flattened = [[0, 1], [2, 3], [4, 5]].reduce(function(a, b) {\n    return a.concat(b);\n});\n// flattened is [0, 1, 2, 3, 4, 5]</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h2 class = \"editable\">See Also</h2>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Objects/Array/reduceRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/ReduceRight\">reduceRight</a></li>\n</ul>\n<div id = \"section_9\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>3.0 (1.9)\n</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td>10.5</td> <td>4.0</td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div></div>",
			"<div id = \"section_9\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>3.0 (1.9)\n</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td>10.5</td> <td>4.0</td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div>"
		],
		"sectionNames": [
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Example: Sum up all values within an array",
			"Example: Flatten an array of arrays",
			"See Also",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays",
		"title": "JavaScript typed arrays",
		"_id": "4eea8512a4c86c4dba0000bd",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Buffers_and_views:.C2.A0typed_array_architecture\"></span><h2 class = \"editable\">Buffers and views:&nbsp;typed array architecture</h2>\n<p>To achieve maximum flexibility and efficiency, JavaScript typed arrays split the implementation into a <strong>buffer</strong> and a <strong>view</strong>. A buffer (implemented by the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> class) is an object representing a chunk of data; it has no format to speak of, and offers no mechanism for accessing its contents. In order to access the memory contained in a buffer, you need to use a view. A view provides a context&mdash;that is, a data type, starting offset, and number of elements&mdash;that turns the data into an actual typed array. Views are implemented by the <a title = \"en/JavaScript typed arrays/ArrayBufferView\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView\"><code>ArrayBufferView</code></a> class and its subclasses.</p>\n<p><div class = \"wiki-tree\"><ul><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\" title = \"en/JavaScript_typed_arrays/ArrayBuffer\" pageid = \"57153\">ArrayBuffer</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView\" title = \"en/JavaScript_typed_arrays/ArrayBufferView\" pageid = \"57154\">ArrayBufferView</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/DataView\" title = \"en/JavaScript_typed_arrays/DataView\" pageid = \"66445\">DataView</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array\" title = \"en/JavaScript_typed_arrays/Float32Array\" pageid = \"62451\">Float32Array</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array\" title = \"en/JavaScript_typed_arrays/Float64Array\" pageid = \"62453\">Float64Array</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array\" title = \"en/JavaScript_typed_arrays/Int16Array\" pageid = \"62446\">Int16Array</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array\" title = \"en/JavaScript_typed_arrays/Int32Array\" pageid = \"62449\">Int32Array</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array\" title = \"en/JavaScript_typed_arrays/Int8Array\" pageid = \"57155\">Int8Array</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array\" title = \"en/JavaScript_typed_arrays/Uint16Array\" pageid = \"62448\">Uint16Array</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array\" title = \"en/JavaScript_typed_arrays/Uint32Array\" pageid = \"62450\">Uint32Array</a></li><li><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array\" title = \"en/JavaScript_typed_arrays/Uint8Array\" pageid = \"62445\">Uint8Array</a></li></ul></div></p>\n</div>",
			"<div id = \"section_2\"><span id = \"Using_views_with_buffers\"></span><h2 class = \"editable\">Using views with buffers</h2>\n<p>Let's create a 16-byte buffer:</p>\n\r\n          <pre name = \"code\" class = \"js\">var buffer = new ArrayBuffer(16);</pre>\r\n        \n<p>At this point, we have a chunk of memory whose bytes are all pre-initialized to 0. There's not a lot we can do with it, though. We can confirm that it is indeed 16 bytes long, and that's about it:</p>\n\r\n          <pre name = \"code\" class = \"js\">if (buffer.byteLength == 16) {\n  alert(&quot;Yes, it's 16 bytes.&quot;);\n} else {\n  alert(&quot;Oh no, it's the wrong size!&quot;);\n}</pre>\r\n        \n<p>Before we can really work with this buffer, we need to create a view. Let's create a view that treats the data in the buffer as an array of 32-bit signed integers:</p>\n\r\n          <pre name = \"code\" class = \"js\">var int32View = new Int32Array(buffer);</pre>\r\n        \n<p>Now we can access the fields in the array just like a normal array:</p>\n\r\n          <pre name = \"code\" class = \"js\">for (var i=0; i&lt;int32View.length; i++) {\n  int32View[i] = i*2;\n}</pre>\r\n        \n<p>This fills out the 4 entries in the array (4 entries at 4 bytes each makes 16 total bytes) with the values 0, 2, 4, and 6.</p>\n<div id = \"section_3\"><span id = \"Multiple_views_on_the_same_data\"></span><h3 class = \"editable\">Multiple views on the same data</h3>\n<p>Things start to get really interesting when you consider that you can create multiple views onto the same data. For example, given the code above, we can continue like this:</p>\n\r\n          <pre name = \"code\" class = \"js\">var int16View = new Int16Array(buffer);\n\nfor (var i=0; i&lt;int16View.length; i++) {\n  console.log(&quot;Entry &quot; + i + &quot;: &quot; + int16View[i]);\n}</pre>\r\n        \n<p>Here we create a 16-bit integer view that shares the same buffer as the existing 32-bit view and we output all the values in the buffer as 16-bit integers. Now we get the output 0, 0, 2, 0, 4, 0, 6, 0.</p>\n<p>You can go a step farther, though. Consider this:</p>\n\r\n          <pre name = \"code\" class = \"js\">int16View[0] = 32;\nconsole.log(&quot;Entry 0 in the 32-bit array is now &quot; + int32View[0]);</pre>\r\n        \n<p>The output from this is &quot;Entry 0 in the 32-bit array is now 32&quot;. In other words, the two arrays are indeed simply views on the same data buffer, treating it as different formats. You can do this with any <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">view types</a>.</p>\n</div></div>",
			"<div id = \"section_3\"><span id = \"Multiple_views_on_the_same_data\"></span><h3 class = \"editable\">Multiple views on the same data</h3>\n<p>Things start to get really interesting when you consider that you can create multiple views onto the same data. For example, given the code above, we can continue like this:</p>\n\r\n          <pre name = \"code\" class = \"js\">var int16View = new Int16Array(buffer);\n\nfor (var i=0; i&lt;int16View.length; i++) {\n  console.log(&quot;Entry &quot; + i + &quot;: &quot; + int16View[i]);\n}</pre>\r\n        \n<p>Here we create a 16-bit integer view that shares the same buffer as the existing 32-bit view and we output all the values in the buffer as 16-bit integers. Now we get the output 0, 0, 2, 0, 4, 0, 6, 0.</p>\n<p>You can go a step farther, though. Consider this:</p>\n\r\n          <pre name = \"code\" class = \"js\">int16View[0] = 32;\nconsole.log(&quot;Entry 0 in the 32-bit array is now &quot; + int32View[0]);</pre>\r\n        \n<p>The output from this is &quot;Entry 0 in the 32-bit array is now 32&quot;. In other words, the two arrays are indeed simply views on the same data buffer, treating it as different formats. You can do this with any <a title = \"en/JavaScript typed arrays/ArrayBufferView#Typed array subclasses\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses\">view types</a>.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Working_with_complex_data_structures\"></span><h2 class = \"editable\">Working with complex data structures</h2>\n<p>By combining a single buffer with multiple views of different types, starting at different offsets into the buffer, you can interact with data objects containing multiple data types. This lets you, for example, interact with complex data structures from <a title = \"en/WebGL\" rel = \"internal\" href = \"https://developer.mozilla.org/en/WebGL\">WebGL</a>, data files, or C structures you need to use while using <a title = \"en/js-ctypes\" rel = \"internal\" href = \"https://developer.mozilla.org/en/js-ctypes\">js-ctypes</a>.</p>\n<p>Consider this C structure:</p>\n\r\n          <pre name = \"code\" class = \"c\">struct someStruct {\n  unsigned long id;\n  char username[16];\n  float amountDue;\n};</pre>\r\n        \n<p>You can access a buffer containing data in this format like this:</p>\n\r\n          <pre name = \"code\" class = \"js\">var buffer = new ArrayBuffer(24);\n\n// ... read the data into the buffer ...\n\nvar idView = new Uint32Array(buffer, 0, 1);\nvar usernameView = new Uint8Array(buffer, 4, 16);\nvar amountDueView = new Float32Array(buffer, 20, 1);</pre>\r\n        \n<p>Then you can access, for example, the amount due with <code>amountDueView[0]</code>.</p>\n<div class = \"note\"><strong>Note:</strong> The <a class = \"external\" title = \"http://en.wikipedia.org/wiki/Data_structure_alignment\" rel = \"external\" href = \"http://en.wikipedia.org/wiki/Data_structure_alignment\" target = \"_blank\">data structure alignment</a> in a C structure is platform-dependent. Take precautions and considerations for these padding differences.</div>\n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<p>Typed arrays are available in WebKit as well. Chrome 7 includes support for <code>ArrayBuffer</code>, <code>Float32Array</code>, <code>Int16Array</code>, and <code>Uint8Array</code>. Chrome 9 adds support for <code>DataView</code> objects.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Specification\"></span><h2 class = \"editable\">Specification</h2>\n<ul> <li><a class = \"link-https\" title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Arrays</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Buffers and views:&nbsp;typed array architecture",
			"Using views with buffers",
			"Multiple views on the same data",
			"Working with complex data structures",
			"Compatibility",
			"Specification"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype",
		"title": "Function.prototype",
		"_id": "4eea8513a4c86c4dba0000be",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a> prototype object. </p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><a title = \"en/JavaScript/Reference/Global Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a> objects inherit from <code>Function.prototype</code>. Modifications to the <code>Function.prototype</code> object are propagated to all <code>Function</code> instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/arguments\">arguments</a>\n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n</dt> <dd>An array corresponding to the arguments passed to a function. This is deprecated as property of <code>Function</code>, use the <a title = \"en/JavaScript/Reference/Functions/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a> object available within the function instead.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/arity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/arity\">arity</a>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since JavaScript 1.8.6</span></dt> <dd>Specifies the number of arguments expected by the function. Use the <a title = \"en/JavaScript/Reference/Global_Objects/Function/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length\">length</a> property instead.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/caller\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/caller\">caller</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Specifies the function that invoked the currently executing function.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/constructor\">constructor</a></dt> <dd>Specifies the function that creates an object's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length\">length</a></dt> <dd>Specifies the number of arguments expected by the function.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Function/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/name\">name</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>The name of the function.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div></div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply</a></code></dt> <dd>Applies the method of another object in the context of a different object (the calling object); arguments can be passed as an Array object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/bind\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind\">bind</a></code>&nbsp;\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span>\n</dt> <dd>Creates a new function which, when called, itself calls this function in the context of the provided value, with a given sequence of arguments preceding any provided when the new function was called.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a></code></dt> <dd>Calls (executes) a method of another object in the context of a different object (the calling object); arguments can be passed as they are.</dd> <dt><a title = \"en/JavaScript/Reference/Global Objects/Function/isGenerator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/isGenerator\"><code>isGenerator</code></a> \n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires JavaScript 1.8.6</span>\n</dt> <dd>Returns <code>true</code> if the function is a <a title = \"en/Core JavaScript 1.5 Guide/Iterators and Generators#Generators.3a a better way to build Iterators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Iterators_and_Generators#Generators.3a_a_better_way_to_build_Iterators\">generator</a>; otherwise returns <code>false</code>.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toSource\">toSource</a></code>&nbsp;<span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dt> <dd>Returns a string representing the source code of the function. Overrides the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.toSource</a></code> method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Function/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toString\">toString</a></code></dt> <dd>Returns a string representing the source code of the function. Overrides the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a></code> method.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n\n<p></p>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/arguments",
		"title": "Function.arguments",
		"_id": "4eea8514a4c86c4dba0000bf",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>An array-like object corresponding to the arguments passed to a function.\n</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Use the <code><a title = \"en/JavaScript/Reference/functions and function scope/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/functions_and_function_scope/arguments\">arguments</a></code> object available within functions instead of <code>Function.arguments</code>.</p></div>",
			"<div id = \"section_3\"><span id = \"Notes\"></span><h3 class = \"editable\"> Notes </h3>\n<p>In the case of recursion, i.e. if function <code>f</code> appears several times on the call stack, the value of <code>f.arguments</code> represents the arguments corresponding to the most recent invocation of the function.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Example\"></span><h3 class = \"editable\"> Example </h3>\n<pre class = \"eval\">function f(n) { g(n-1) }\nfunction g(n) {\n  print(&quot;before: &quot; + g.arguments[0]);\n  if(n&gt;0)\n    f(n);\n  print(&quot;after: &quot; + g.arguments[0]);\n}\nf(2)\n</pre>\n<p>outputs:\n</p>\n<pre class = \"eval\">before: 1\nbefore: 0\nafter: 0\nafter: 1\n</pre>\n\n\n</div>"
		],
		"sectionNames": [
			" Summary ",
			"Description",
			" Notes ",
			" Example "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/arity",
		"title": "Function.arity",
		"_id": "4eea8516a4c86c4dba0000c0",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Specifies the number of arguments expected by the function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p class = \"note\">The <code>arity</code> property no longer exists and has been replaced by the <code><a title = \"en/JavaScript/Reference/Global_Objects/Function/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length\">Function.prototype.length</a></code> property.</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length",
		"title": "Function.length",
		"_id": "4eea8516a4c86c4dba0000c1",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Specifies the number of arguments expected by the function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>length</code> is a property of a function object, and indicates how many arguments the function expects, i.e. the number of formal parameters. By contrast, <code><a title = \"en/JavaScript/Reference/Functions_and_function_scope/arguments/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments/length\">arguments.length</a></code> is local to a function and provides the number of arguments actually passed to the function.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n\r\n          <pre name = \"code\" class = \"js\">console.log((function () {}).length);  /* 0 */\nconsole.log((function (a) {}).length); /* 1 */\nconsole.log((function (a, b) {}).length); /* 2 etc. */</pre>\r\n        \n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Example"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/constructor",
		"title": "Function.constructor",
		"_id": "4eea8517a4c86c4dba0000c2",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a reference to the <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>See <a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\">Object.constructor</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/caller",
		"title": "Function.caller",
		"_id": "4eea8517a4c86c4dba0000c3",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the function that invoked the specified function.</p>\n<p>This property is not part of ECMA-262 Edition 3 standard. It is implemented at least in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a> (the JavaScript engine used in Mozilla) (see \n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=65683\" class = \"external\" title = \"RESOLVED FIXED - Function objects should have a caller property\">\nbug 65683</a>\n), V8 (the JavaScript engine used in Chrome) and JScript.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If the function <code>f</code> was invoked by the top level code, the value of <code>f.caller</code> is <code>null</code>, otherwise it's the function that called <code>f</code></p>\n<p>This property replaces deprecated <a title = \"En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments/caller\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments/caller\">arguments.caller</a>.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Notes\"></span><h3 class = \"editable\">Notes</h3>\n<p>Note that in case of recursion, you can't reconstruct the call stack using this property. Consider:</p>\n<pre class = \"eval\">\nfunction f(n) { g(n-1) }\nfunction g(n) { if(n&gt;0) f(n); else stop() }\nf(2)\n</pre>\n<p>At the moment <code>stop()</code> is called the call stack will be:</p>\n<pre class = \"eval\">\nf(2) -&gt; g(1) -&gt; f(1) -&gt; g(0) -&gt; stop()\n</pre>\n<p>The following is true:</p>\n<pre class = \"eval\">\nstop.caller === g &amp;&amp; f.caller === g &amp;&amp; g.caller === f\n</pre>\n<p>so if you tried to get the stack trace in the <code>stop()</code> function like this:</p>\n<pre class = \"eval\">\nvar f = stop;\nvar stack = &quot;Stack trace:&quot;;\nwhile (f) {\n  stack += &quot;\\n&quot; + f.name;\n  f = f.caller;\n}\n</pre>\n<p>the loop would never stop.</p>\n<p>The special property <code>__caller__</code>, which returned the activation object of the caller thus allowing to reconstruct the stack, was removed for security reasons.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_5\"><span id = \"Example:_Checking_the_value_of_a_function.27s_caller_property\"></span><span id = \"Example:_Checking_the_value_of_a_function's_caller_property\"></span><h4 class = \"editable\">Example: Checking the value of a function's <code>caller</code> property</h4>\n<p>The following code checks the value a function's <code>caller</code> property.</p>\n<pre class = \"eval\">\nfunction myFunc() {\n   if (myFunc.caller == null) {\n      return (&quot;The function was called from the top!&quot;);\n   } else\n      return (&quot;This function's caller was &quot; + myFunc.caller);\n}\n</pre>\n<p>&nbsp;</p>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Example:_Checking_the_value_of_a_function.27s_caller_property\"></span><span id = \"Example:_Checking_the_value_of_a_function's_caller_property\"></span><h4 class = \"editable\">Example: Checking the value of a function's <code>caller</code> property</h4>\n<p>The following code checks the value a function's <code>caller</code> property.</p>\n<pre class = \"eval\">\nfunction myFunc() {\n   if (myFunc.caller == null) {\n      return (&quot;The function was called from the top!&quot;);\n   } else\n      return (&quot;This function's caller was &quot; + myFunc.caller);\n}\n</pre>\n<p>&nbsp;</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Browser_Support\"></span><h3 class = \"editable\">Browser Support</h3>\n<p>Function.caller is currently supported by all major browsers:&nbsp;Firefox, Safari, Chrome, Opera and IE. &nbsp;<a title = \"http://dl.dropbox.com/u/534786/callertest.html\" class = \" external\" rel = \"external\" href = \"http://dl.dropbox.com/u/534786/callertest.html\" target = \"_blank\">Test page with results</a>.</p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Notes",
			"Examples",
			"Example: Checking the value of a function's caller property",
			"Browser Support"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/name",
		"title": "Function.name",
		"_id": "4eea8518a4c86c4dba0000c4",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>The name of the function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The name property returns the name of a function, or an empty string for anonymous functions:</p>\n<pre class = \"eval\">function doSomething() {}\nalert(doSomething.name); // alerts &quot;doSomething&quot;\n</pre>\n<p>Functions created with the syntax <code>new <a title = \"Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a>(...)</code> or just <code><a title = \"Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></code><code>(...)</code> have their name property set to &quot;anonymous&quot; on Firefox and Safari, or to an empty string on Chrome and Opera. This property is not supported on Internet Explorer.</p>\n<p>Note that in these examples anonymous functions are created, so <code>name</code> returns an empty string:</p>\n<pre class = \"eval\">var f = function() { };\nvar object = {\n  someMethod: function() {}\n};\n\nalert(f.name == &quot;&quot;); // true\nalert(object.someMethod.name == &quot;&quot;); // also true\n</pre>\n<p>You can define a function with a name in a <a title = \"En/Core_JavaScript_1.5_Reference/Functions#Function_constructor_vs._function_declaration_vs._function_expression\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Functions#Function_constructor_vs._function_declaration_vs._function_expression\">function expression</a>:</p>\n<pre class = \"eval\">var object = {\n  someMethod: function object_someMethod() {}\n};\nalert(object.someMethod.name); // alerts &quot;object_someMethod&quot;\n\ntry { object_someMethod } catch(e) { alert(e); }\n// ReferenceError: object_someMethod is not defined\n</pre>\n<p>You cannot change the <code>name</code> of a function, this property is read-only:</p>\n<pre class = \"eval\">var object = {\n  // anonymous\n  someMethod: function(){}\n};\nobject.someMethod.name = &quot;someMethod&quot;;\nalert(object.someMethod.name); // empty string, someMethod is anonymous\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<p>You can use <code>obj.constructor.name</code> to check the &quot;class&quot; of an object:</p>\n<pre class = \"eval\">function a()\n{\n}\n\nvar b = new a();\nalert(b.constructor.name); //Alerts &quot;a&quot;\n</pre>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Examples"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind",
		"title": "Function.bind",
		"_id": "4eea8519a4c86c4dba0000c5",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Creates a new function that, when called, itself calls this function in the context of the provided <code>this</code> value, with a given sequence of arguments preceding any provided when the new function was called.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>fun</em>.bind(<em>thisArg</em>[, <em>arg1</em>[, <em>arg2</em>[, ...]]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>thisArg</dt> <dd>The value to be passed as the <code>this</code> parameter to the target function when the bound function is called. &nbsp;The value is ignored if the bound function is constructed using the <a title = \"en/JavaScript/Reference/Operators/Special Operators/new Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/new\"><code>new</code> operator</a>.</dd> <dt>arg1, arg2, ...</dt> <dd>Arguments to prepend to arguments provided to the bound function when invoking the target function.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The <code>bind</code> function creates a new function (a <em>bound function</em>) with the same function body (internal <a title = \"Call\" rel = \"internal\" href = \"https://developer.mozilla.org/Call\" class = \"new \">Call</a> attribute in ECMAScript 5 terms) as the function it is being called on (the bound function's <em>target function</em>) with the <code>this</code> value bound to the first argument of <code>bind</code>, which cannot be overridden. <code>bind</code> also accepts leading default arguments to provide to the target function when the bound function is called. &nbsp;A bound function may also be constructed using the <code>new</code> operator: doing so acts as though the target function had instead been constructed. &nbsp;The provided <code>this</code> value is ignored, while prepended arguments are provided to the emulated function.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<p>The <code>bind</code> function is a recent addition to ECMA-262, 5th edition; as such it may not be present in all browsers. You can partially work around this by inserting the following code at the beginning of your scripts, allowing use of much of the functionality of <code>bind</code> in implementations that do not natively support it.</p>\n\r\n          <pre name = \"code\" class = \"js\">if (!Function.prototype.bind) {\n  Function.prototype.bind = function (oThis) {\n    if (typeof this !== &quot;function&quot;) {\n      // closest thing possible to the ECMAScript 5 internal IsCallable function\n      throw new TypeError(&quot;Function.prototype.bind - what is trying to be bound is not callable&quot;);\n    }\n\n    var aArgs = Array.prototype.slice.call(arguments, 1), \n        fToBind = this, \n        fNOP = function () {},\n        fBound = function () {\n          return fToBind.apply(this instanceof fNOP\n                                 ? this\n                                 : oThis || window,\n                               aArgs.concat(Array.prototype.slice.call(arguments)));\n        };\n\n    fNOP.prototype = this.prototype;\n    fBound.prototype = new fNOP();\n\n    return fBound;\n  };\n}</pre>\r\n        \n<p>Some of the many differences (there may well be others, as this list does not seriously attempt to be exhaustive) between this algorithm and the specified algorithm are:</p>\n<ul> <li>The partial implementation relies <code>Array.prototype.slice</code>, <code>Array.prototype.concat</code>, <code>Function.prototype.call</code> and <code>Function.prototype.apply</code>, built-in methods to have their original values.</li> <li>The partial implementation creates functions that do not have immutable &quot;poison pill&quot; <code>caller</code> and <code>arguments</code> properties that throw a <code>TypeError</code> upon get, set, or deletion. (This could be added if the implementation supports <a title = \"en/JavaScript/Reference/Global Objects/Object/defineProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty\"><code>Object.defineProperty</code></a>, or partially implemented [without throw-on-delete behavior] if the implementation supports the <a title = \"en/JavaScript/Reference/Global Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\"><code>__defineGetter__</code></a> and <a title = \"en/JavaScript/Reference/Global Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\"><code>__defineSetter__</code></a> extensions.)</li> <li>The partial implementation creates functions that have a <code>prototype</code> property. (Proper bound functions have none.)</li> <li>The partial implementation creates bound functions whose <code>length</code> property does not agree with that mandated by ECMA-262: it creates functions with length 0, while a full implementation, depending on the length of the target function and the number of pre-specified arguments, may return a non-zero length.</li>\n</ul>\n<p>If you choose to use this partial implementation, <strong>you must not rely on those cases where behavior deviates from ECMA-262, 5th edition!</strong> With some care, however (and perhaps with additional modification to suit specific needs), this partial implementation may be a reasonable bridge to the time when <code>bind</code> is widely implemented according to the specification.</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_7\"><span id = \"Creating_a_bound_function\"></span><h3 class = \"editable\">Creating a bound function</h3>\n<p>The simplest use of <code>bind</code> is to make a function that, no matter how it is called, is called with a particular <code>this</code> value. &nbsp;A common mistake for new JavaScript programmers is to extract a method from an object, then to later call that function and expect it to use the original object as its <code>this</code> (e.g. by using that method in callback-based code). &nbsp;Without special care, however, the original object is usually lost. &nbsp;Creating a bound function from the function, using the original object, neatly solves this problem:</p>\n\r\n          <pre name = \"code\" class = \"js\">var x = 9; \nvar module = {\n  x: 81,\n  getX: function() { return this.x; }\n};\n\nmodule.getX(); // 81\n\nvar getX = module.getX;\ngetX(); // 9, because in this case, &quot;this&quot; refers to the global object\n\n// create a new function with 'this' bound to module\nvar boundGetX = getX.bind(module);\nboundGetX(); // 81</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Currying\"></span><h3 class = \"editable\">Currying</h3>\n<p>The next simplest use of <code>bind</code> is to make a function with pre-specified initial arguments. These arguments (if any) follow the provided <code>this</code> value and are then inserted at the start of the arguments passed to the target function, followed by the arguments passed to the bound function, whenever the bound function is called.</p>\n\r\n          <pre name = \"code\" class = \"js\">function list() {\n  return Array.prototype.slice.call(arguments);\n}\n\nvar list1 = list(1, 2, 3); // [1, 2, 3]\n\n//  Create a function with a preset leading argument\nvar leadingZeroList = list.bind(undefined, 37);\n\nvar list2 = leadingZeroList(); // [37]\nvar list3 = leadingZeroList(1, 2, 3); // [37, 1, 2, 3]</pre>\r\n        \n</div><div id = \"section_9\"><span id = \"Bound_functions_used_as_constructors\"></span><h3 class = \"editable\">Bound functions used as constructors</h3>\n<p>Bound functions are automatically suitable for use with the <code>new</code> operator to construct new instances created by the target function. When a bound function is used to construct a value, the provided <code>this</code> is ignored. However, provided arguments are still prepended to the constructor call:</p>\n\r\n          <pre name = \"code\" class = \"js\">function Point(x, y) {\n  this.x = x;\n  this.y = y;\n}\n\nPoint.prototype.toString = function() { \n  return this.x + &quot;,&quot; + this.y; \n};\n\nvar p = new Point(1, 2);\np.toString(); // &quot;1,2&quot;\n\n\nvar emptyObj = {};\nvar YAxisPoint = Point.bind(emptyObj, 0 /* x */);\n\nvar axisPoint = new YAxisPoint(5);\naxisPoint.toString(); //  &quot;0,5&quot;\n\naxisPoint instanceof Point; // true\naxisPoint instanceof YAxisPoint; // true\nnew Point(17, 42) instanceof YAxisPoint; // false with native bind // true, when using the above polyfill</pre>\r\n        \n<p>Note that you need do nothing special to create a bound function for use with <code>new</code>. The corollary is that you need do nothing special to create a bound function to be called plainly, even if you would rather require the bound function to only be called using <code>new</code>. If you wish to support use of a bound function only using <code>new</code>, or only by calling it, the target function must enforce that restriction.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Example can be run directly in your JavaScript console\n// ...continuing from above\n\n// Can still be called as a normal function (although usually this is undesired)\nYAxisPoint(13);\n\nemptyObj.x + &quot;,&quot; + emptyObj.y;\n// &gt;  &quot;0,13&quot;</pre>\r\n        \n</div><div id = \"section_10\"><span id = \"Supplemental\"></span><span id = \"Creating_Shortcuts\"></span><h3 class = \"editable\"><span style = \"font-size: 20px; line-height: 27px; \">Creating Shortcuts</span></h3>\n<div> <p><code>bind</code>&nbsp;is also helpful in cases where you want to create a shortcut to a function which requires a specific <code>this</code> value.</p> <p>Take&nbsp;<code>Array.prototype.slice</code>, for example, which you want to use for converting an array-like object to a real array. You could create a shortcut like this:</p> <pre>\nvar slice = Array.prototype.slice;\n\n// ...\n\nslice.call(arguments);</pre> <p>With&nbsp;<code>bind</code>, this can be simplified to the following. <code>slice</code> will be a bound function to the <code>.call</code> function of <code>Function.prototype</code>, with the <code>this </code>value set to the <code>.slice</code> function of <code>Array.prototype</code>. This means that additional <code>.call</code> calls can be eliminated:</p> <pre>\nvar slice = Function.prototype.call.bind(Array.prototype.slice);\n\n// ...\n\nslice(arguments);</pre>\n</div>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Creating_a_bound_function\"></span><h3 class = \"editable\">Creating a bound function</h3>\n<p>The simplest use of <code>bind</code> is to make a function that, no matter how it is called, is called with a particular <code>this</code> value. &nbsp;A common mistake for new JavaScript programmers is to extract a method from an object, then to later call that function and expect it to use the original object as its <code>this</code> (e.g. by using that method in callback-based code). &nbsp;Without special care, however, the original object is usually lost. &nbsp;Creating a bound function from the function, using the original object, neatly solves this problem:</p>\n\r\n          <pre name = \"code\" class = \"js\">var x = 9; \nvar module = {\n  x: 81,\n  getX: function() { return this.x; }\n};\n\nmodule.getX(); // 81\n\nvar getX = module.getX;\ngetX(); // 9, because in this case, &quot;this&quot; refers to the global object\n\n// create a new function with 'this' bound to module\nvar boundGetX = getX.bind(module);\nboundGetX(); // 81</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Currying\"></span><h3 class = \"editable\">Currying</h3>\n<p>The next simplest use of <code>bind</code> is to make a function with pre-specified initial arguments. These arguments (if any) follow the provided <code>this</code> value and are then inserted at the start of the arguments passed to the target function, followed by the arguments passed to the bound function, whenever the bound function is called.</p>\n\r\n          <pre name = \"code\" class = \"js\">function list() {\n  return Array.prototype.slice.call(arguments);\n}\n\nvar list1 = list(1, 2, 3); // [1, 2, 3]\n\n//  Create a function with a preset leading argument\nvar leadingZeroList = list.bind(undefined, 37);\n\nvar list2 = leadingZeroList(); // [37]\nvar list3 = leadingZeroList(1, 2, 3); // [37, 1, 2, 3]</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"Bound_functions_used_as_constructors\"></span><h3 class = \"editable\">Bound functions used as constructors</h3>\n<p>Bound functions are automatically suitable for use with the <code>new</code> operator to construct new instances created by the target function. When a bound function is used to construct a value, the provided <code>this</code> is ignored. However, provided arguments are still prepended to the constructor call:</p>\n\r\n          <pre name = \"code\" class = \"js\">function Point(x, y) {\n  this.x = x;\n  this.y = y;\n}\n\nPoint.prototype.toString = function() { \n  return this.x + &quot;,&quot; + this.y; \n};\n\nvar p = new Point(1, 2);\np.toString(); // &quot;1,2&quot;\n\n\nvar emptyObj = {};\nvar YAxisPoint = Point.bind(emptyObj, 0 /* x */);\n\nvar axisPoint = new YAxisPoint(5);\naxisPoint.toString(); //  &quot;0,5&quot;\n\naxisPoint instanceof Point; // true\naxisPoint instanceof YAxisPoint; // true\nnew Point(17, 42) instanceof YAxisPoint; // false with native bind // true, when using the above polyfill</pre>\r\n        \n<p>Note that you need do nothing special to create a bound function for use with <code>new</code>. The corollary is that you need do nothing special to create a bound function to be called plainly, even if you would rather require the bound function to only be called using <code>new</code>. If you wish to support use of a bound function only using <code>new</code>, or only by calling it, the target function must enforce that restriction.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Example can be run directly in your JavaScript console\n// ...continuing from above\n\n// Can still be called as a normal function (although usually this is undesired)\nYAxisPoint(13);\n\nemptyObj.x + &quot;,&quot; + emptyObj.y;\n// &gt;  &quot;0,13&quot;</pre>\r\n        \n</div>",
			"<div id = \"section_10\"><span id = \"Supplemental\"></span><span id = \"Creating_Shortcuts\"></span><h3 class = \"editable\"><span style = \"font-size: 20px; line-height: 27px; \">Creating Shortcuts</span></h3>\n<div> <p><code>bind</code>&nbsp;is also helpful in cases where you want to create a shortcut to a function which requires a specific <code>this</code> value.</p> <p>Take&nbsp;<code>Array.prototype.slice</code>, for example, which you want to use for converting an array-like object to a real array. You could create a shortcut like this:</p> <pre>\nvar slice = Array.prototype.slice;\n\n// ...\n\nslice.call(arguments);</pre> <p>With&nbsp;<code>bind</code>, this can be simplified to the following. <code>slice</code> will be a bound function to the <code>.call</code> function of <code>Function.prototype</code>, with the <code>this </code>value set to the <code>.slice</code> function of <code>Array.prototype</code>. This means that additional <code>.call</code> calls can be eliminated:</p> <pre>\nvar slice = Function.prototype.call.bind(Array.prototype.slice);\n\n// ...\n\nslice(arguments);</pre>\n</div>\n</div>",
			"<div id = \"section_11\"><span id = \"Supplemental\"></span><h2 class = \"editable\">Supplemental</h2>\n<p>One interesting wrinkle of bound functions working &quot;as expected&quot; with the <code>new</code> operator is that it is now possible to implement what one might call &quot;<code>Function.prototype.construct</code>&quot;, an analog to <code><a title = \"en/JavaScript/Reference/Global Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">Function.prototype.apply</a></code> that takes an array of values as its sole argument,&nbsp;constructing this function with the provided arguments using the <code>new</code> operator:</p>\n\r\n          <pre name = \"code\" class = \"js\">// Function.prototype.construct will work with the Function.prototype.bind defined above\n\nif (!Function.prototype.construct) { \n  Function.prototype.construct = function(aArgs) {\n\n    if (aArgs.constructor !== Array)\n      throw new TypeError(&quot;second argument to Function.prototype.construct must be an array&quot;);\n\n    var aBoundArgs = Array.prototype.concat.apply([null], aArgs), \n        fBound = this.bind.apply(this, aBoundArgs);\n        \n    return new fBound();\n\n  };\n}\n\n// Now consider the string &quot;2011-7-16 19:35:46&quot;. Without an analog of the Function.apply method for constructors,\n// you would run a lot of steps in order to construct a Date object from it:\n\nvar aDateArgs = &quot;2011-7-16 19:35:46&quot;.split(/[- :]/),\n    oMyDate1 = new Date(aDateArgs[0], aDateArgs[1], aDateArgs[2], aDateArgs[3], aDateArgs[4], aDateArgs[5]);\nalert(oMyDate1.toLocaleString());\n\n\n// With the Function.construct method we could do the same thing with a single step:\nvar oMyDate2 = Date.construct(&quot;2011-7-16 19:35:46&quot;.split(/[- :]/));\nalert(oMyDate2.toLocaleString());\n\n// Here is another example:\n\nfunction Point(x, y) {\n  this.x = x;\n  this.y = y;\n}\n\nPoint.prototype.toString = function() { \n  return this.x + &quot;,&quot; + this.y; \n};\n\nalert(Point.construct([2, 4]).toString()); // &quot;2,4&quot;</pre>\r\n        \n<p>But note well: the efficiency of constructing a new function every time you wish to construct an object by invoking a bound function via <code>new</code> with a variable number of arguments is questionable. Your code will be faster and more efficient if you use <code>Function.prototype.apply</code> instead, with normal call syntax rather than using <code>new</code> operator-based syntax.</p>\n</div>",
			"<div id = \"section_12\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4</td> <td>7</td> <td>9</td> <td>11.60</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a>.</p>\n</div>",
			"<div id = \"section_13\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><code><a title = \"en/JavaScript/Reference/Global Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">Function.prototype.apply</a></code></li> <li><code><a title = \"en/JavaScript/Reference/Global Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">Function.prototype.call</a></code></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Examples",
			"Creating a bound function",
			"Currying",
			"Bound functions used as constructors",
			"Creating Shortcuts",
			"Supplemental",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply",
		"title": "Function.apply",
		"_id": "4eea8519a4c86c4dba0000c6",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Calls a function with a given <code>this</code> value and <code>arguments</code> provided as an array.</p>\n<div class = \"note\"><strong>NOTE:</strong>&nbsp;While the syntax of this function is almost identical to that of&nbsp;<code style = \"font-style: inherit; \"><a href = \"/en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" title = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call()</a></code>, the fundamental difference is that&nbsp;<code style = \"font-style: inherit; \">call()</code>&nbsp;accepts an argument list, while&nbsp;<code style = \"font-style: inherit; \">apply()</code>&nbsp;accepts a single array of arguments.</div>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\" scope = \"row\">Method of <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMA-262 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>fun</em>.apply(<em>thisArg</em>[, <em>argsArray</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 style = \"position: static; z-index: auto; \" class = \"editable\">Parameters</h2>\n<dl> <dt><code>thisArg</code></dt> <dd style = \"position: static; z-index: auto; \"></dd>\n</dl>\n<dl> <dd style = \"position: relative; z-index: 0; \">The value of&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">this</code>&nbsp;provided for the call to&nbsp;<em><code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">fun</code></em>. &nbsp;Note that this may not be the actual value seen by the method: if the method is a function in non-strict mode code,&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">null</code>&nbsp;and&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">undefined</code>&nbsp;will be replaced with the global object, and primitive values will be boxed. <div id = \"WebKit-Editing-Delete-Container\" style = \"-webkit-user-drag: none; -webkit-user-select: none; -webkit-user-modify: none; visibility: hidden; position: absolute; cursor: default; top: 0px; right: 0px; bottom: 0px; left: 0px; \"><img alt = \"\" id = \"WebKit-Editing-Delete-Button\" style = \"position: absolute; z-index: 1000000; top: -15px; left: -17px; width: 30px; height: 30px; visibility: visible;\"/></div> </dd>\n</dl>\n<dl> <dt><code>argsArray</code></dt> <dd>An array like object, specifying the arguments with which <em><code>fun</code></em> should be called, or <code>null</code> or <a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/undefined\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined\">undefined</a> if no arguments should be provided to the function.</dd>\n</dl>\n<p>\n<div style = \"border: 0px none ; margin: 10px 0px; padding: 0px 10px; background-color: rgb(254, 244, 156); text-align: center;\"><p style = \"margin: 4px 0px; font-weight: bold;\"><a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a> note</p><p style = \"margin: 4px 0px;\">Starting in JavaScript 1.8.5 (Firefox 4), this method works according to the ECMAScript 5 specification. That is, the arguments can be a generic array-like object instead of an array. See \n<a rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=562448\" class = \"external\" title = \"RESOLVED FIXED - ES5 Function.prototype.apply does not require argArray be either Array or arguments\">\nbug 562448</a>\n for details on this change.</p></div></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>You can assign a different <code>this</code> object when calling an existing function. <code>this</code> refers to the current object, the calling object. With <code>apply</code>, you can write a method once and then inherit it in another object, without having to rewrite the method for the new object.</p>\n<p><code>apply</code> is very similar to <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a></code>, except for the type of arguments it supports. You can use an arguments array instead of a named set of parameters. With <code>apply</code>, you can use an array literal, for example, <code><em>fun</em>.apply(this, ['eat', 'bananas'])</code>, or an <code>Array</code> object, for example, <code><em>fun</em>.apply(this, new Array('eat', 'bananas'))</code>.</p>\n<p>You can also use <code><a title = \"En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a></code> for the <code>argsArray</code> parameter. <code>arguments</code> is a local variable of a function. It can be used for all unspecified arguments of the called object. Thus, you do not have to know the arguments of the called object when you use the <code>apply</code> method. You can use <code>arguments</code> to pass all the arguments to the called object. The called object is then responsible for handling the arguments.</p>\n<p>Since ECMAScript 5th Edition you can also use any kind of object which is array like, so in practice this means it's going to have a property <code>length</code> and integer properties in the range <code>[0...length)</code>. As an example you can now use a <a title = \"en/DOM/NodeList\" rel = \"internal\" href = \"https://developer.mozilla.org/En/DOM/NodeList\">NodeList</a> or a own custom object like <code>{'length': 2, '0': 'eat', '1':&nbsp;'bananas'}</code>.</p>\n<p><div class = \"note\"><strong>Note:</strong>&nbsp;Most browsers, including Chrome 14 and Internet Explorer 9, still do not accept array like objects and will throw an exception.</div>\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Using_apply_to_chain_constructors\"></span><h3 class = \"editable\">Using <code>apply</code> to chain constructors</h3>\n<p>You can use <code>apply</code> to chain constructors for an object, similar to Java. In the following example, the constructor for the <code>Product</code> object is defined with two parameters, <code>name</code> and <code>value</code>. Two other functions <code>Food</code> and <code>Toy</code> invoke <code>Product</code> passing <code>this</code> and <code>arguments</code>. Product initializes the properties name and price, both specialized functions define the category. In this example, the <code>arguments</code> object is fully passed to the product constructor and corresponds to the two defined parameters.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Product(name, price) {\n  this.name = name;\n  this.price = price;\n\n  if (price &lt; 0)\n    throw RangeError('Cannot create product &quot;' + name + '&quot; with a negative price');\n  return this;\n}\n\nfunction Food(name, price) {\n  Product.apply(this, arguments);\n  this.category = 'food';\n}\nFood.prototype = new Product();\n\nfunction Toy(name, price) {\n  Product.apply(this, arguments);\n  this.category = 'toy';\n}\nToy.prototype = new Product();\n\nvar cheese = new Food('feta', 5);\nvar fun = new Toy('robot', 40);</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"apply_and_built-in_functions\"></span><h3 class = \"editable\">apply and built-in functions</h3>\n<p>Clever usage of <code>apply</code> allows you to use built-ins functions for some tasks that otherwise probably would have been written by looping over the array values. As an example here we are going to use Math.max/Math.min to find out the maximum/minimum value in an array.</p>\n\r\n          <pre name = \"code\" class = \"js\">/* min/max number in an array */\nvar numbers = [5, 6, 2, 3, 7];\n\n/* using Math.min/Math.max apply */\nvar max = Math.max.apply(null, numbers); /* This about equal to Math.max(numbers[0], ...) or Math.max(5, 6, ..) */\nvar min = Math.min.apply(null, numbers);\n\n/* vs. simple loop based algorithm */\nmax = -Infinity, min = +Infinity;\n\nfor (var i = 0; i &lt; numbers.length; i++) {\n  if (numbers[i] &gt; max)\n    max = numbers[i];\n  if (numbers[i] &lt; min) \n    min = numbers[i];\n}</pre>\r\n        \n<p>But beware: in using <code>apply</code> this way, you run the risk of exceeding the JavaScript engine's argument length limit. The consequences of applying a function with too many arguments (think more than tens of thousands of arguments) vary across engines, because the limit (indeed even the nature of any excessively-large-stack behavior) is unspecified. Some engines will throw an exception. More perniciously, others will arbitrarily limit the number of arguments actually passed to the applied function. (To illustrate this latter case: if such an engine had a limit of four arguments [actual limits are of course significantly higher], it would be as if the arguments <code>5, 6, 2, 3</code> had been passed to <code>apply</code> in the examples above, rather than the full array.)&nbsp; If your value array might grow into the tens of thousands, use a hybrid strategy: apply your function to chunks of the array at a time:</p>\n\r\n          <pre name = \"code\" class = \"js\">function minOfArray(arr)\n{\n  var min = Infinity;\n  var QUANTUM = 32768;\n  for (var i = 0, len = arr.length; i &lt; len; i += QUANTUM)\n  {\n    var submin = Math.min.apply(null, numbers.slice(i, Math.min(i + QUANTUM, len)));\n    min = Math.min(submin, min);\n  }\n  return min;\n}\n\nvar min = minOfArray([5, 6, 2, 3, 7]);</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Using_apply_to_chain_constructors\"></span><h3 class = \"editable\">Using <code>apply</code> to chain constructors</h3>\n<p>You can use <code>apply</code> to chain constructors for an object, similar to Java. In the following example, the constructor for the <code>Product</code> object is defined with two parameters, <code>name</code> and <code>value</code>. Two other functions <code>Food</code> and <code>Toy</code> invoke <code>Product</code> passing <code>this</code> and <code>arguments</code>. Product initializes the properties name and price, both specialized functions define the category. In this example, the <code>arguments</code> object is fully passed to the product constructor and corresponds to the two defined parameters.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Product(name, price) {\n  this.name = name;\n  this.price = price;\n\n  if (price &lt; 0)\n    throw RangeError('Cannot create product &quot;' + name + '&quot; with a negative price');\n  return this;\n}\n\nfunction Food(name, price) {\n  Product.apply(this, arguments);\n  this.category = 'food';\n}\nFood.prototype = new Product();\n\nfunction Toy(name, price) {\n  Product.apply(this, arguments);\n  this.category = 'toy';\n}\nToy.prototype = new Product();\n\nvar cheese = new Food('feta', 5);\nvar fun = new Toy('robot', 40);</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"apply_and_built-in_functions\"></span><h3 class = \"editable\">apply and built-in functions</h3>\n<p>Clever usage of <code>apply</code> allows you to use built-ins functions for some tasks that otherwise probably would have been written by looping over the array values. As an example here we are going to use Math.max/Math.min to find out the maximum/minimum value in an array.</p>\n\r\n          <pre name = \"code\" class = \"js\">/* min/max number in an array */\nvar numbers = [5, 6, 2, 3, 7];\n\n/* using Math.min/Math.max apply */\nvar max = Math.max.apply(null, numbers); /* This about equal to Math.max(numbers[0], ...) or Math.max(5, 6, ..) */\nvar min = Math.min.apply(null, numbers);\n\n/* vs. simple loop based algorithm */\nmax = -Infinity, min = +Infinity;\n\nfor (var i = 0; i &lt; numbers.length; i++) {\n  if (numbers[i] &gt; max)\n    max = numbers[i];\n  if (numbers[i] &lt; min) \n    min = numbers[i];\n}</pre>\r\n        \n<p>But beware: in using <code>apply</code> this way, you run the risk of exceeding the JavaScript engine's argument length limit. The consequences of applying a function with too many arguments (think more than tens of thousands of arguments) vary across engines, because the limit (indeed even the nature of any excessively-large-stack behavior) is unspecified. Some engines will throw an exception. More perniciously, others will arbitrarily limit the number of arguments actually passed to the applied function. (To illustrate this latter case: if such an engine had a limit of four arguments [actual limits are of course significantly higher], it would be as if the arguments <code>5, 6, 2, 3</code> had been passed to <code>apply</code> in the examples above, rather than the full array.)&nbsp; If your value array might grow into the tens of thousands, use a hybrid strategy: apply your function to chunks of the array at a time:</p>\n\r\n          <pre name = \"code\" class = \"js\">function minOfArray(arr)\n{\n  var min = Infinity;\n  var QUANTUM = 32768;\n  for (var i = 0, len = arr.length; i &lt; len; i += QUANTUM)\n  {\n    var submin = Math.min.apply(null, numbers.slice(i, Math.min(i + QUANTUM, len)));\n    min = Math.min(submin, min);\n  }\n  return min;\n}\n\nvar min = minOfArray([5, 6, 2, 3, 7]);</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h2 class = \"editable\">See Also</h2>\n<p><a title = \"/en/JavaScript/Reference/Global_Objects/Function/call\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call\">call</a>, <a title = \"/en/JavaScript/Reference/Global_Objects/Function/bind\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind\">bind</a>, <a title = \"en/JavaScript/Reference/Functions_and_function_scope/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Using apply to chain constructors",
			"apply and built-in functions",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call",
		"title": "Function.call",
		"_id": "4eea851ba4c86c4dba0000c7",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Calls a function with a given <code>this</code> value and arguments provided individually.</p>\n<div class = \"note\"><strong>NOTE:</strong> While the syntax of this function is almost identical to that of&nbsp;<code><a title = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply()</a></code>, the fundamental difference is that <code>call()</code> accepts an argument list, while <code>apply()</code> accepts a single array of arguments.</div>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>fun</em>.call(<em>thisArg</em>[, <em>arg1</em>[, <em>arg2</em>[, ...]]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 style = \"position: static; z-index: auto; \" class = \"editable\">Parameters</h2>\n<dl> <dt><code>thisArg</code></dt> <dd>The value of <code>this</code> provided for the call to&nbsp;<em><code>fun</code></em>. &nbsp;Note that this may not be the actual value seen by the method: if the method is a function in <a title = \"en/JavaScript/Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/Strict_mode\">non-strict mode</a> code, <code>null</code> and <code>undefined</code> will be replaced with the global object, and primitive values will be boxed.</dd>\n</dl>\n<dl> <dt><code>arg1, arg2, ...</code></dt> <dd>Arguments for the object.</dd>\n</dl></div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>You can assign a different <code>this</code> object when calling an existing function. <code>this</code> refers to the current object, the calling object.</p>\n<p>With <code>call</code>, you can write a method once and then inherit it in another object, without having to rewrite the method for the new object.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Using_call_to_chain_constructors_for_an_object\"></span><h3 class = \"editable\">Using <code>call</code> to chain constructors for an object</h3>\n<p>You can use <code>call</code> to chain constructors for an object, similar to Java.&nbsp;In the following example, the constructor for the&nbsp;<code>Product</code>&nbsp;object is defined with two parameters, <code>name</code>&nbsp;and&nbsp;<code>value</code>. Two other functions&nbsp;<code>Food</code>&nbsp;and&nbsp;<code>Toy</code>&nbsp;invoke&nbsp;<code>Product</code>&nbsp;passing&nbsp;<code>this</code>&nbsp;and&nbsp;<code>name</code>&nbsp;and&nbsp;<code>value</code>. Product initializes the properties name and price, both specialized functions define the category.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Product(name, price) {\n  this.name = name;\n  this.price = price;\n\n  if (price &lt; 0)\n    throw RangeError('Cannot create product &quot;' + name + '&quot; with a negative price');\n  return this;\n}\n\nfunction Food(name, price) {\n  Product.call(this, name, price);\n  this.category = 'food';\n}\nFood.prototype = new Product();\n\nfunction Toy(name, price) {\n  Product.call(this, name, price);\n  this.category = 'toy';\n}\nToy.prototype = new Product();\n\nvar cheese = new Food('feta', 5);\nvar fun = new Toy('robot', 40);</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Using_call_to_invoke_an_anonymous_function\"></span><h3 class = \"editable\">Using <code>call</code> to invoke an anonymous function</h3>\n<p>In this purely constructed example, we create anonymous function and use <code>call</code> to invoke it on every object in an array. The main purpose of the anonymous function here is to add a print function to every object, which is able to print the right index of the object in the array. Passing the object as <code>this</code> value was not strictly necessary, but is done for explanatory purpose.</p>\n\r\n          <pre name = \"code\" class = \"js\">var animals = [\n  {species: 'Lion', name: 'King'},\n  {species: 'Whale', name: 'Fail'}\n];\n\nfor (var i = 0; i &lt; animals.length; i++) {\n  (function (i) { \n    this.print = function () { \n      console.log('#' + i  + ' ' + this.species + ': ' + this.name); \n    } \n  }).call(animals[i], i);\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Using_call_to_chain_constructors_for_an_object\"></span><h3 class = \"editable\">Using <code>call</code> to chain constructors for an object</h3>\n<p>You can use <code>call</code> to chain constructors for an object, similar to Java.&nbsp;In the following example, the constructor for the&nbsp;<code>Product</code>&nbsp;object is defined with two parameters, <code>name</code>&nbsp;and&nbsp;<code>value</code>. Two other functions&nbsp;<code>Food</code>&nbsp;and&nbsp;<code>Toy</code>&nbsp;invoke&nbsp;<code>Product</code>&nbsp;passing&nbsp;<code>this</code>&nbsp;and&nbsp;<code>name</code>&nbsp;and&nbsp;<code>value</code>. Product initializes the properties name and price, both specialized functions define the category.</p>\n\r\n          <pre name = \"code\" class = \"js\">function Product(name, price) {\n  this.name = name;\n  this.price = price;\n\n  if (price &lt; 0)\n    throw RangeError('Cannot create product &quot;' + name + '&quot; with a negative price');\n  return this;\n}\n\nfunction Food(name, price) {\n  Product.call(this, name, price);\n  this.category = 'food';\n}\nFood.prototype = new Product();\n\nfunction Toy(name, price) {\n  Product.call(this, name, price);\n  this.category = 'toy';\n}\nToy.prototype = new Product();\n\nvar cheese = new Food('feta', 5);\nvar fun = new Toy('robot', 40);</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Using_call_to_invoke_an_anonymous_function\"></span><h3 class = \"editable\">Using <code>call</code> to invoke an anonymous function</h3>\n<p>In this purely constructed example, we create anonymous function and use <code>call</code> to invoke it on every object in an array. The main purpose of the anonymous function here is to add a print function to every object, which is able to print the right index of the object in the array. Passing the object as <code>this</code> value was not strictly necessary, but is done for explanatory purpose.</p>\n\r\n          <pre name = \"code\" class = \"js\">var animals = [\n  {species: 'Lion', name: 'King'},\n  {species: 'Whale', name: 'Fail'}\n];\n\nfor (var i = 0; i &lt; animals.length; i++) {\n  (function (i) { \n    this.print = function () { \n      console.log('#' + i  + ' ' + this.species + ': ' + this.name); \n    } \n  }).call(animals[i], i);\n}</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h2 class = \"editable\">See Also</h2>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\">apply</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Using call to chain constructors for an object",
			"Using call to invoke an anonymous function",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/isGenerator",
		"title": "Function.isGenerator",
		"_id": "4eea851ba4c86c4dba0000c8",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Determines whether or not a function is a <a title = \"en/Core JavaScript 1.5 Guide/Iterators and Generators#Generators.3a a better way to build Iterators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Iterators_and_Generators#Generators.3a_a_better_way_to_build_Iterators\">generator</a>.</p>\n<table class = \"standard-table\"> <thead> <tr> <th scope = \"row\" colspan = \"2\" class = \"header\">Method of <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None (Harmony Proposal)</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>result</em> = <em>fun</em>.isGenerator()</code></p></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>This method lets you determine whether or not a function is a <a title = \"en/Core JavaScript 1.5 Guide/Iterators and Generators#Generators.3a a better way to build Iterators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Iterators_and_Generators#Generators.3a_a_better_way_to_build_Iterators\">generator</a>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n\r\n          <pre name = \"code\" class = \"js\">function f() {}\nfunction g() {\n  yield 42;\n}\nconsole.log(&quot;f.isGenerator() = &quot; + f.isGenerator());\nconsole.log(&quot;g.isGenerator() = &quot; + g.isGenerator());</pre>\r\n        \n<p>The output from this code is:</p>\n<pre>\nf.isGenerator()&nbsp;= false\ng.isGenerator()&nbsp;= true \n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/Core JavaScript 1.5 Guide/Iterators and Generators\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Iterators_and_Generators\">Iterators and generators</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toSource",
		"title": "Function.toSource",
		"_id": "4eea851ca4c86c4dba0000c9",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the source code for the function.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\" title = \"en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<pre class = \"eval\">var sourceString = <em>function</em>.toSource();\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>toSource</code> method returns the following values:\n</p><p>\n</p>\n<ul><li> For the built-in <code>Function</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:\n</li></ul>\n<pre class = \"eval\">function Function() {\n   [native code]\n}\n</pre>\n<ul><li> For custom functions, <code>toSource</code> returns the JavaScript source that defines the object as a string.\n</li></ul>\n<p>This method is usually called internally by JavaScript and not explicitly in code. You can call <code>toSource</code> while debugging to examine the contents of an object.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<ul><li><a title = \"en/JavaScript/Reference/Global_Objects/Function/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toString\">toString</a>\n</li><li><a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.prototype.valueOf</a>\n</li></ul> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/toString",
		"title": "Function.toString",
		"_id": "4eea851ca4c86c4dba0000ca",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Returns a string representing the source code of the function.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><var>function</var>.toString(<var>indentation</var>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>indentation</dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> The amount of spaces to indent the string representation of the source code. If <code>indentation</code> is less than or equal to <code>-1</code>, most unnecessary spaces are removed.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function\">Function</a></code> object overrides the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code> method inherited from <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></code>; it does not inherit <code>Object.prototype.toString</code>. For <code>Function</code> objects, the <code>toString</code> method returns a string representation of the object in the form of a function declaration.&nbsp; That is, toString decompiles the function, and the string returned includes the <code>function</code> keyword, the argument list, curly braces, and the source of the function body.</p>\n<p>JavaScript calls the <code>toString</code> method automatically when a <code>Function</code> is to be represented as a text value, e.g. when a function is concatenated with a string.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<p><code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a></code></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/MAX_VALUE",
		"title": "Number.MAX_VALUE",
		"_id": "4eea851ea4c86c4dba0000cb",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>The maximum numeric value representable in JavaScript.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\" title = \"en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>MAX_VALUE</code> property has a value of approximately 1.79E+308. Values larger than <code>MAX_VALUE</code> are represented as &quot;<code>Infinity</code>&quot;.\n</p><p>Because <code>MAX_VALUE</code> is a static property of <code>Number</code>, you always use it as <code>Number.MAX_VALUE</code>, rather than as a property of a <code>Number</code> object you created.\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_4\"><span id = \"Example:_Using_MAX_VALUE\"></span><h4 class = \"editable\"> Example: Using <code>MAX_VALUE</code> </h4>\n<p>The following code multiplies two numeric values. If the result is less than or equal to <code>MAX_VALUE</code>, the <code>func1</code> function is called; otherwise, the <code>func2</code> function is called.\n</p>\n<pre class = \"eval\">if (num1 * num2 &lt;= Number.MAX_VALUE)\n   func1();\nelse\n   func2();\n</pre> </div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_MAX_VALUE\"></span><h4 class = \"editable\"> Example: Using <code>MAX_VALUE</code> </h4>\n<p>The following code multiplies two numeric values. If the result is less than or equal to <code>MAX_VALUE</code>, the <code>func1</code> function is called; otherwise, the <code>func2</code> function is called.\n</p>\n<pre class = \"eval\">if (num1 * num2 &lt;= Number.MAX_VALUE)\n   func1();\nelse\n   func2();\n</pre> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Description ",
			" Examples ",
			" Example: Using MAX_VALUE "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/MIN_VALUE",
		"title": "Number.MIN_VALUE",
		"_id": "4eea851fa4c86c4dba0000cc",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>The smallest positive numeric value representable in JavaScript.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\" title = \"en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>MIN_VALUE</code> property is the number closest to 0, not the most negative number, that JavaScript can represent.</p>\n<p><code>MIN_VALUE</code> has a value of approximately 5e-324. Values smaller than <code>MIN_VALUE</code> (&quot;underflow values&quot;) are converted to 0.</p>\n<p>Because <code>MIN_VALUE</code> is a static property of <code>Number</code>, you always use it as <code>Number.MIN_VALUE</code>, rather than as a property of a <code>Number</code> object you created.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_4\"><span id = \"Example:_Using_MIN_VALUE\"></span><h4 class = \"editable\">Example: Using <code>MIN_VALUE</code></h4>\n<p>The following code divides two numeric values. If the result is greater than or equal to <code>MIN_VALUE</code>, the <code>func1</code> function is called; otherwise, the <code>func2</code> function is called.</p>\n<pre>\nif (num1 / num2 &gt;= Number.MIN_VALUE)\n   func1()\nelse\n   func2()\n</pre> <p></p></div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_MIN_VALUE\"></span><h4 class = \"editable\">Example: Using <code>MIN_VALUE</code></h4>\n<p>The following code divides two numeric values. If the result is greater than or equal to <code>MIN_VALUE</code>, the <code>func1</code> function is called; otherwise, the <code>func2</code> function is called.</p>\n<pre>\nif (num1 / num2 &gt;= Number.MIN_VALUE)\n   func1()\nelse\n   func2()\n</pre> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Examples",
			"Example: Using MIN_VALUE"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY",
		"title": "Number.NEGATIVE_INFINITY",
		"_id": "4eea851fa4c86c4dba0000cd",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>A value representing the negative Infinity value.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\" title = \"en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The value of <code>Number.NEGATIVE_INFINITY</code> is the same as the negative value of the global object's <a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\">Infinity</a> property.</p>\n<p>This value behaves slightly differently than mathematical infinity:</p>\n<ul> <li>Any positive value, including POSITIVE_INFINITY, multiplied by NEGATIVE_INFINITY is NEGATIVE_INFINITY.</li> <li>Any negative value, including NEGATIVE_INFINITY, multiplied by NEGATIVE_INFINITY is POSITIVE_INFINITY.</li> <li>Zero multiplied by NEGATIVE_INFINITY is NaN.</li> <li>NaN multiplied by NEGATIVE_INFINITY is NaN.</li> <li>NEGATIVE_INFINITY, divided by any negative value except NEGATIVE_INFINITY, is POSITIVE_INFINITY.</li> <li>NEGATIVE_INFINITY, divided by any positive value except POSITIVE_INFINITY, is NEGATIVE_INFINITY.</li> <li>NEGATIVE_INFINITY, divided by either NEGATIVE_INFINITY or POSITIVE_INFINITY, is NaN.</li> <li>Any number divided by NEGATIVE_INFINITY is Zero.</li>\n</ul>\n<p>Several JavaScript methods (such as the <code>Number</code> constructor, <code>parseFloat</code>, and <code>parseInt</code>) return <code>NaN</code> if the value specified in the parameter is significantly lower than <code>Number.MIN_VALUE</code>.</p>\n<p>You might use the <code>Number.NEGATIVE_INFINITY</code> property to indicate an error condition that returns a finite number in case of success. Note, however, that <a title = \"en/JavaScript/Reference/Global_Objects/isFinite\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isFinite\">isFinite</a> would be more appropriate in such a case.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n<p>In the following example, the variable smallNumber is assigned a value that is smaller than the minimum value. When the <code>if</code> statement executes, smallNumber has the value &quot;<code>-Infinity</code>&quot;, so smallNumber is set to a more manageable value before continuing.</p>\n<pre>\nvar smallNumber = (-Number.MAX_VALUE) * 2\nif (smallNumber == Number.NEGATIVE_INFINITY) {\n smallNumber = returnFinite();\n}\n</pre>\n</div>",
			"<div id = \"section_4\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\">Infinity</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY\">POSITIVE_INFINITY</a>, <a title = \"en/JavaScript/Reference/Global_Objects/isFinite\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isFinite\">isFinite</a></p>\n<p>&nbsp;</p> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Example",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/NaN",
		"title": "Number.NaN",
		"_id": "4eea8520a4c86c4dba0000ce",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>A value representing Not-A-Number.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>Number.NaN</code> is the same thing than <a title = \"en/JavaScript/Reference/Global_Objects/NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN\"><code>NaN</code></a>. <a title = \"en/JavaScript/Reference/Global_Objects/NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN\">See the <code>NaN</code> page for more info</a>.</p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY",
		"title": "Number.POSITIVE_INFINITY",
		"_id": "4eea8523a4c86c4dba0000cf",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>A value representing the positive Infinity value.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The value of <code>Number.POSITIVE_INFINITY</code> is the same as the value of the global object's <a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\">Infinity</a> property.</p>\n<p>This value behaves slightly differently than mathematical infinity:</p>\n<ul> <li>Any positive value, including POSITIVE_INFINITY, multiplied by POSITIVE_INFINITY is POSITIVE_INFINITY.</li> <li>Any negative value, including NEGATIVE_INFINITY, multiplied by POSITIVE_INFINITY is NEGATIVE_INFINITY.</li> <li>Zero multiplied by POSITIVE_INFINITY is NaN.</li> <li>NaN multiplied by POSITIVE_INFINITY is NaN.</li> <li>POSITIVE_INFINITY, divided by any negative value except NEGATIVE_INFINITY, is NEGATIVE_INFINITY.</li> <li>POSITIVE_INFINITY, divided by any positive value except POSITIVE_INFINITY, is POSITIVE_INFINITY.</li> <li>POSITIVE_INFINITY, divided by either NEGATIVE_INFINITY or POSITIVE_INFINITY, is NaN.</li> <li>Any number divided by POSITIVE_INFINITY is Zero.</li>\n</ul>\n<p>Several JavaScript methods (such as the <code>Number</code> constructor, <code>parseFloat</code>, and <code>parseInt</code>) return <code>NaN</code> if the value specified in the parameter is significantly higher than <code>Number.MAX_VALUE</code>.</p>\n<p>You might use the <code>Number.POSITIVE_INFINITY</code> property to indicate an error condition that returns a finite number in case of success. Note, however, that <a title = \"en/JavaScript/Reference/Global_Objects/isFinite\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isFinite\">isFinite</a> would be more appropriate in such a case.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n<p>In the following example, the variable bigNumber is assigned a value that is larger than the maximum value. When the <code>if</code> statement executes, bigNumber has the value &quot;<code>Infinity</code>&quot;, so bigNumber is set to a more manageable value before continuing.</p>\n<pre>\nvar bigNumber = Number.MAX_VALUE * 2\nif (bigNumber == Number.POSITIVE_INFINITY) {\n bigNumber = returnFinite();\n}\n</pre>\n</div>",
			"<div id = \"section_4\"><span id = \"See_Also\"></span><h2 class = \"editable\">See Also</h2>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\">Infinity</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY\">NEGATIVE_INFINITY</a>, <a title = \"en/JavaScript/Reference/Global_Objects/isFinite\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isFinite\">isFinite</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Example",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/prototype",
		"title": "Number.prototype",
		"_id": "4eea8523a4c86c4dba0000d0",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the prototype for the <a title = \"en/JavaScript/Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\">Number</a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>All <code>Number</code> instances inherit from <code>Number.prototype</code>. The prototype object of the <a title = \"en/JavaScript/Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\">Number</a> constructor can be modified to affect all <code>Number</code> instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/constructor\">constructor</a></dt> <dd>Returns the function that created this object's instance. By default this is the <a title = \"en/JavaScript/Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\">Number</a> object.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toExponential\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toExponential\">toExponential</a></dt> <dd>Returns a string representing the number in exponential notation.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">toFixed</a></dt> <dd>Returns a string representing the number in fixed-point notation.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/ToLocaleString\">toLocaleString</a></dt> <dd>Returns a human readable string representing the number using the locale of the environment. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toLocaleString\">Object.prototype.toLocaleString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toPrecision\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toPrecision\">toPrecision</a></dt> <dd>Returns a string representing the number to a specified precision in fixed-point or exponential notation.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource\">toSource</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Returns an object literal representing the specified Number object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">toString</a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Number/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/valueOf\">valueOf</a></dt> <dd>Returns the primitive value of the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.prototype.valueOf</a> method.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n\n<p></p>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/constructor",
		"title": "Number.constructor",
		"_id": "4eea8524a4c86c4dba0000d1",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a reference to the <a title = \"En/Core_JavaScript_1.5_Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Number\">Number</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\" title = \"en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>See <a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\">Object.constructor</a>.\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toExponential",
		"title": "Number.toExponential",
		"_id": "4eea8524a4c86c4dba0000d2",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the Number object in exponential notation</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\" title = \"en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><em>number</em>.toExponential( [<em>fractionDigits</em>] )</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameter\"></span><h3 class = \"editable\"> Parameter </h3>\n<dl><dt> fractionDigits\n</dt><dd> An integer specifying the number of digits after the decimal point. Defaults to as many digits as necessary to specify the number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Returns\"></span><h3 class = \"editable\"> Returns </h3>\n<p>A string representing a Number object in exponential notation with one digit before the decimal point, rounded to <code>fractionDigits</code> digits after the decimal point. If the <code>fractionDigits</code> argument is omitted, the number of digits after the decimal point defaults to the number of digits necessary to represent the value uniquely.\n</p><p>If you use the <code>toExponential</code> method for a numeric literal and the numeric literal has no exponent and no decimal point, leave a space before the dot that precedes the method call to prevent the dot from being interpreted as a decimal point.\n</p><p>If a number has more digits that requested by the <code>fractionDigits</code> parameter, the number is rounded to the nearest number represented by <code>fractionDigits</code> digits. See the discussion of rounding in the description of the <a title = \"en/JavaScript/Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">toFixed</a> method, which also applies to <code>toExponential</code>.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Example\"></span><h3 class = \"editable\"> Example </h3>\n<pre>\nvar num=77.1234;\n\nalert(&quot;num.toExponential() is &quot; + num.toExponential()); //displays 7.71234e+1\n\nalert(&quot;num.toExponential(4) is &quot; + num.toExponential(4)); //displays 7.7123e+1\n\nalert(&quot;num.toExponential(2) is &quot; + num.toExponential(2)); //displays 7.71e+1\n\nalert(&quot;77.1234.toExponential() is &quot; + 77.1234.toExponential()); //displays 7.71234e+1\n\nalert(&quot;77 .toExponential() is &quot; + 77 .toExponential()); //displays 7.7e+1\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">Number.toFixed()</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Number/toPrecision\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toPrecision\">Number.toPrecision()</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">Number.toString()</a>\n</p> </div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Parameter ",
			" Returns ",
			" Example ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed",
		"title": "Number.toFixed",
		"_id": "4eea8525a4c86c4dba0000d3",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Formats a number using fixed-point notation</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>number</em>.toFixed( [<em>digits</em>] )</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameter\"></span><h3 class = \"editable\">Parameter</h3>\n<dl> <dt>digits</dt> <dd>The number of digits to appear after the decimal point; this may be a value between 0 and 20, inclusive, and implementations may optionally support a larger range of values. If this argument is omitted, it is treated as 0.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Returns\"></span><h3 class = \"editable\">Returns</h3>\n<p>A string representation of <code>number</code> that does not use exponential notation and has exactly <code>digits</code> digits after the decimal place. The number is rounded if necessary, and the fractional part is padded with zeros if necessary so that it has the specified length. If <code>number</code> is greater than 1e+21, this method simply calls <code>Number.toString()</code> and returns a string in exponential notation.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Throws\"></span><h3 class = \"editable\">Throws</h3>\n<dl> <dt>RangeError</dt> <dd>If digits is too small or too large. Values between 0 and 20, inclusive, will not cause a <code>RangeError</code>. Implementations are allowed to support larger and smaller values as well.</dd>\n</dl>\n<dl> <dt>TypeError</dt> <dd>If this method is invoked on an object that is not a <code>Number</code>.</dd>\n</dl>\n</div>",
			"<div id = \"section_6\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n<pre>\nvar n = 12345.6789;\n\nn.toFixed();              // Returns &quot;12346&quot;: note rounding, no fractional part\n\nn.toFixed(1);             // Returns &quot;12345.7&quot;: note rounding\n\nn.toFixed(6);             // Returns &quot;12345.678900&quot;: note added zeros\n\n(1.23e+20).toFixed(2);    // Returns &quot;123000000000000000000.00&quot;\n\n(1.23e-10).toFixed(2);    // Returns &quot;0.00&quot;\n\n2.34.toFixed(1);          // Returns &quot;2.3&quot;\n\n-2.34.toFixed(1);         // Returns -2.3 (due to operator precedence, negative numbers don't return a string...)\n\n(-2.24).toFixed(1);       // Returns &quot;-2.3&quot; (...unless you use parentheses)\n<br/></pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Number/toExponential\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toExponential\">Number.toExponential()</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Number/ToLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/ToLocaleString\">Number.toLocaleString()</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Number/toPrecision\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toPrecision\">Number.toPrecision()</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">Number.toString()</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Number/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource\">Number.toSource()</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Number/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/valueOf\">Number.valueOf()</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameter",
			"Returns",
			"Throws",
			"Example",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/ToLocaleString",
		"title": "Number.ToLocaleString",
		"_id": "4eea852ca4c86c4dba0000d4",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>number</em>.toLocaleString()</code></p>\n</div>",
			"<div id = \"section_2\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">var number = 3500\nconsole.log(number.toLocaleString()); /* Displays &quot;3,500&quot; in English locale */</pre>\r\n        \n</div>",
			"<div id = \"section_3\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">Number.toString()</a></p></div>"
		],
		"sectionNames": [
			"Syntax",
			"Examples",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toPrecision",
		"title": "Number.toPrecision",
		"_id": "4eea852da4c86c4dba0000d5",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the Number object to the specified precision. </p><table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\" title = \"en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>number</em>.toPrecision( [ <em>precision</em> ] )</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameter\"></span><h3 class = \"editable\">Parameter</h3>\n<dl> <dt>precision</dt> <dd>An integer specifying the number of significant digits.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Returns\"></span><h3 class = \"editable\">Returns</h3>\n<p>A string representing a Number object in fixed-point or exponential notation rounded to <code>precision</code> significant digits. See the discussion of rounding in the description of the <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">toFixed</a> method, which also applies to <code>toPrecision</code>.</p>\n<p>If the <code>precision</code> argument is omitted, behaves as <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">Number.toString</a>. If it is a non-integer value, it is rounded to the nearest integer. After rounding, if that value is not between 1 and 100 (inclusive), a <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/RangeError\">RangeError</a> is thrown.</p>\n<div class = \"note\"><a title = \"en/ECMAScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a> only requires a precision of up to 21 significant digits. Other implementations may not support precisions higher than required by the standard.</div>\n</div>",
			"<div id = \"section_5\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n<pre class = \"eval\">\nvar num = 5.123456;\nprintln(&quot;num.toPrecision() is &quot; + num.toPrecision());   //displays 5.123456\nprintln(&quot;num.toPrecision(5) is &quot; + num.toPrecision(5)); //displays 5.1235\nprintln(&quot;num.toPrecision(2) is &quot; + num.toPrecision(2)); //displays 5.1\nprintln(&quot;num.toPrecision(1) is &quot; + num.toPrecision(1)); //displays 5\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toExponential\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toExponential\">toExponential</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">toFixed</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString\">toString</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameter",
			"Returns",
			"Example",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource",
		"title": "Number.toSource",
		"_id": "4eea852da4c86c4dba0000d6",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the source code of the object.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\" title = \"en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><em>number</em>.toSource()</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>toSource</code> method returns the following values:\n</p><p>\n</p>\n<ul><li> For the built-in <code>Number</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:\n</li></ul>\n<pre class = \"eval\">function Number() {[native code]}\n</pre>\n<ul><li> For instances of <code>Number</code>, <code>toSource</code> returns a string representing the source code.\n</li></ul>\n<p>This method is usually called internally by JavaScript and not explicitly in code.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toString",
		"title": "Number.toString",
		"_id": "4eea852ea4c86c4dba0000d7",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the specified Number object\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\" title = \"en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><em>number</em>.toString( [<em>radix</em>] )</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameter\"></span><h3 class = \"editable\"> Parameter </h3>\n<dl><dt> radix\n</dt><dd> An integer between 2 and 36 specifying the base to use for representing numeric values.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>Number</code> object overrides the <code>toString</code> method of the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></code> object; it does not inherit <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a></code>. For <code>Number</code> objects, the <code>toString</code> method returns a string representation of the object in the specified radix.\n</p><p>The toString method parses its first argument, and attempts to return a string representation in the specified radix (base). For radixes above 10, the letters of the alphabet indicate numerals greater than 9. For example, for hexadecimal numbers (base 16), A through F are used.\n</p><p>If toString is given a radix not between 2 and 36, an exception is thrown.\n</p><p>If the radix is not specified, JavaScript assumes the preferred radix is 10.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<pre class = \"eval\">var count = 10;\nprint(count.toString());   // displays &quot;10&quot;\nprint((17).toString());    // displays &quot;17&quot;\n\nvar x = 7;\nprint(x.toString(2));      // displays &quot;111&quot;\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<ul><li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toExponential\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toExponential\">Number.prototype.toExponential</a>\n</li><li><a title = \"en/JavaScript/Reference/Global_Objects/Number/ToLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/ToLocaleString\">Number.prototype.toLocaleString</a>\n</li><li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toPrecision\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toPrecision\">Number.prototype.toPrecision</a>\n</li><li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toFixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toFixed\">Number.prototype.toFixed</a>\n</li><li><a title = \"en/JavaScript/Reference/Global_Objects/Number/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/toSource\">Number.prototype.toSource</a>\n</li><li><a title = \"en/JavaScript/Reference/Global_Objects/Number/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/valueOf\">Number.prototype.valueOf</a>\n</li></ul> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameter ",
			" Description ",
			" Examples ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number/valueOf",
		"title": "Number.valueOf",
		"_id": "4eea852ea4c86c4dba0000d8",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the primitive value of a Number object.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number\" title = \"en/JavaScript/Reference/Global_Objects/Number\"><code>Number</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<code><em>number</em>.valueOf()</code></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>valueOf</code> method of <code>Number</code> returns the primitive value of a <code>Number</code> object as a number data type.\n</p><p>This method is usually called internally by JavaScript and not explicitly in code.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<pre class = \"eval\">var x = new Number();\nprint(x.valueOf());     // prints &quot;0&quot;\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.toSource</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			"Syntax",
			" Parameters ",
			" Description ",
			" Examples ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty",
		"title": "Object.defineProperty",
		"_id": "4eea8530a4c86c4dba0000d9",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"summary\"></span><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Defines a new property directly on an object, or modifies an existing property on an object, and returns the object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.defineProperty(<em>obj</em>, <em>prop</em>, <em>descriptor</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>obj</dt> <dd>The object on which to define the property.</dd> <dt>prop</dt> <dd>The name of the property to be defined or modified.</dd> <dt>descriptor</dt> <dd>The descriptor for the property being defined or modified.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>This method allows precise addition to or modification of a property on an object. Normal property addition through assignment creates properties which show up during property enumeration (<a title = \"en/JavaScript/Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\">for...in loop</a>), whose values may be changed, and which may be <a title = \"en/JavaScript/Reference/Operators/Special Operators/delete Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/delete\">deleted</a>. This method allows these extra details to be changed from their defaults.</p>\n<p>Property descriptors present in objects come in two main flavors: data descriptors and accessor descriptors. A <em><dfn>data descriptor</dfn></em> is a property that has a value, which may or may not be writable. An <dfn>accessor descriptor</dfn> is a property described by a getter-setter pair of functions. A descriptor must be one of these two flavors; it cannot be both. All descriptors regardless of flavor include the <strong>configurable</strong> and <strong>enumerable</strong> fields.</p>\n<p>A property descriptor is an object with the following fields:</p>\n<dl> <dt>value</dt> <dd>The value associated with the property. (data descriptors only).&nbsp;<strong>Defaults to <code>undefined</code>.</strong></dd> <dt>writable</dt> <dd>True if and only if the value associated with the property may be changed. (data descriptors only).<strong> Defaults to <code>false</code>.</strong></dd> <dt>get</dt> <dd>A function which serves as a getter for the property, or <code>undefined</code> if there is no getter. (accessor descriptors only).&nbsp;<strong>Defaults to </strong><strong><code>undefined</code></strong><strong>.</strong></dd> <dt>set</dt> <dd>A function which serves as a setter for the property, or <code>undefined</code> if there is no setter. (accessor descriptors only).&nbsp;<strong>Defaults to </strong><strong><code>undefined</code></strong><strong>.</strong></dd> <dt>configurable</dt> <dd>True if and only if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.&nbsp;<strong>Defaults to </strong><strong><code>false</code></strong><strong>.</strong></dd> <dt>enumerable</dt> <dd>True if and only if this property shows up during enumeration of the properties on the corresponding object.&nbsp;<strong>Defaults to </strong><strong><code>false</code></strong><strong>.</strong></dd> <dt></dt>\n</dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Creating_a_property\"></span><h2 class = \"editable\">Creating a property</h2>\n<p>When the property specified doesn't exist in the object, <code>Object.defineProperty</code> creates a new property as described. Fields may be omitted from the descriptor, and default values for those fields are imputed. All of the boolean-valued fields default to <code>false</code>. The <code>value</code>, <code>get</code>, and <code>set</code> fields default to <code>undefined</code>.</p>\n<div id = \"section_6\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {}; // Creates a new object\n\n// Example of an object property added with defineProperty with a data property descriptor\nObject.defineProperty(o, &quot;a&quot;, {value : 37,\n                               writable : true,\n                               enumerable : true,\n                               configurable : true});\n// 'a' property exists in the o object and its value is 37\n\n// Example of an object property added with defineProperty with an accessor property descriptor\nvar bValue;\nObject.defineProperty(o, &quot;b&quot;, {get : function(){ return bValue; },\n                               set : function(newValue){ bValue = newValue; },\n                               enumerable : true,\n                               configurable : true});\no.b = 38;\n// 'b' property exists in the o object and its value is 38\n// The value of o.b is now always identical to bValue, unless o.b is redefined\n\n// You cannot try to mix both :\nObject.defineProperty(o, &quot;conflict&quot;, { value: 0x9f91102, \n                                       get: function() { return 0xdeadbeef; } });\n// throws a TypeError: value appears only in data descriptors, get appears only in accessor descriptors</pre>\r\n        \n<p>You can use the <code>Object.defineProperty</code> method with native objects also. The following example shows how to implement the <a title = \"en/DOM/select\" rel = \"internal\" href = \"https://developer.mozilla.org/en/DOM/HTMLSelectElement\">HTMLSelectElement</a>'s <code>selectedIndex</code> property in radio button groups.</p>\n\r\n          <pre name = \"code\" class = \"xml\">&lt;!doctype html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;\n&lt;title&gt;Radio group selectedIndex example&lt;/title&gt;\n&lt;script type=&quot;text/javascript&quot;&gt;\nObject.defineProperty(NodeList.prototype, &quot;selectedIndex&quot;, {\n\tget: function() {\n\t\tvar nIndex = this.length - 1;\n\t\twhile (nIndex &gt; -1 &amp;&amp; !this[nIndex].checked) { nIndex--; }\n\t\treturn nIndex;\n\t},\n\tset: function(nNewIndex) {\n\t\tif (isNaN(nNewIndex)) { return; }\n\t\tvar nOldIndex = this.selectedIndex;\n\t\tif (nOldIndex &gt; -1) { this[nOldIndex].checked = false; }\n\t\tif (nNewIndex &gt; -1) { this[nNewIndex].checked = true; }\n\t},\n\tenumerable : true,\n\tconfigurable : false\n});\n\n// try it!\nfunction checkForm() {\n\tvar nSelectedIndex = document.myForm.myRadioGroup.selectedIndex;\n\tif (nSelectedIndex &lt; 0) { alert(&quot;Select a gadget!!&quot;); return false; }\n\talert(&quot;Congratulations!! You selected the &quot; + document.myForm.myRadioGroup[nSelectedIndex].value + &quot;.&quot;);\n\treturn true;\n}\n&lt;/script&gt;\n\n&lt;/head&gt;\n\n&lt;body&gt;\n\t\t\t\t\t\t\n&lt;form name=&quot;myForm&quot; onsubmit=&quot;return(checkForm());&quot;&gt;\n&lt;fieldset&gt;&lt;legend&gt;Select a gadget&lt;/legend&gt;\n&lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;myRadioGroup&quot; id=&quot;ourShirt&quot; value=&quot;shirt&quot; /&gt; &lt;label for=&quot;ourShirt&quot;&gt;shirt&lt;/label&gt;&lt;br /&gt;\n&lt;input type=&quot;radio&quot; name=&quot;myRadioGroup&quot; id=&quot;ourPants&quot; value=&quot;pants&quot; /&gt; &lt;label for=&quot;ourPants&quot;&gt;pants&lt;/label&gt;&lt;br /&gt;\n&lt;input type=&quot;radio&quot; name=&quot;myRadioGroup&quot; id=&quot;ourBelt&quot; value=&quot;belt&quot; /&gt; &lt;label for=&quot;ourBelt&quot;&gt;belt&lt;/label&gt;&lt;br /&gt;\n&lt;input type=&quot;radio&quot; name=&quot;myRadioGroup&quot; id=&quot;ourShoes&quot; value=&quot;shoes&quot; /&gt; &lt;label for=&quot;ourShoes&quot;&gt;shoes&lt;/label&gt;&lt;/p&gt;\n&lt;p&gt;&lt;span style=&quot;cursor:pointer;text-decoration:underline;color:#0000ff;&quot; onclick=&quot;document.myForm.myRadioGroup.selectedIndex=2;&quot;&gt;Select our favorite gadget ;-)&lt;/span&gt;&lt;/p&gt;\n&lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;Order!&quot; /&gt;\n&lt;/fieldset&gt;\n&lt;/form&gt;\n&lt;/body&gt;\n&lt;/html&gt;</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {}; // Creates a new object\n\n// Example of an object property added with defineProperty with a data property descriptor\nObject.defineProperty(o, &quot;a&quot;, {value : 37,\n                               writable : true,\n                               enumerable : true,\n                               configurable : true});\n// 'a' property exists in the o object and its value is 37\n\n// Example of an object property added with defineProperty with an accessor property descriptor\nvar bValue;\nObject.defineProperty(o, &quot;b&quot;, {get : function(){ return bValue; },\n                               set : function(newValue){ bValue = newValue; },\n                               enumerable : true,\n                               configurable : true});\no.b = 38;\n// 'b' property exists in the o object and its value is 38\n// The value of o.b is now always identical to bValue, unless o.b is redefined\n\n// You cannot try to mix both :\nObject.defineProperty(o, &quot;conflict&quot;, { value: 0x9f91102, \n                                       get: function() { return 0xdeadbeef; } });\n// throws a TypeError: value appears only in data descriptors, get appears only in accessor descriptors</pre>\r\n        \n<p>You can use the <code>Object.defineProperty</code> method with native objects also. The following example shows how to implement the <a title = \"en/DOM/select\" rel = \"internal\" href = \"https://developer.mozilla.org/en/DOM/HTMLSelectElement\">HTMLSelectElement</a>'s <code>selectedIndex</code> property in radio button groups.</p>\n\r\n          <pre name = \"code\" class = \"xml\">&lt;!doctype html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;\n&lt;title&gt;Radio group selectedIndex example&lt;/title&gt;\n&lt;script type=&quot;text/javascript&quot;&gt;\nObject.defineProperty(NodeList.prototype, &quot;selectedIndex&quot;, {\n\tget: function() {\n\t\tvar nIndex = this.length - 1;\n\t\twhile (nIndex &gt; -1 &amp;&amp; !this[nIndex].checked) { nIndex--; }\n\t\treturn nIndex;\n\t},\n\tset: function(nNewIndex) {\n\t\tif (isNaN(nNewIndex)) { return; }\n\t\tvar nOldIndex = this.selectedIndex;\n\t\tif (nOldIndex &gt; -1) { this[nOldIndex].checked = false; }\n\t\tif (nNewIndex &gt; -1) { this[nNewIndex].checked = true; }\n\t},\n\tenumerable : true,\n\tconfigurable : false\n});\n\n// try it!\nfunction checkForm() {\n\tvar nSelectedIndex = document.myForm.myRadioGroup.selectedIndex;\n\tif (nSelectedIndex &lt; 0) { alert(&quot;Select a gadget!!&quot;); return false; }\n\talert(&quot;Congratulations!! You selected the &quot; + document.myForm.myRadioGroup[nSelectedIndex].value + &quot;.&quot;);\n\treturn true;\n}\n&lt;/script&gt;\n\n&lt;/head&gt;\n\n&lt;body&gt;\n\t\t\t\t\t\t\n&lt;form name=&quot;myForm&quot; onsubmit=&quot;return(checkForm());&quot;&gt;\n&lt;fieldset&gt;&lt;legend&gt;Select a gadget&lt;/legend&gt;\n&lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;myRadioGroup&quot; id=&quot;ourShirt&quot; value=&quot;shirt&quot; /&gt; &lt;label for=&quot;ourShirt&quot;&gt;shirt&lt;/label&gt;&lt;br /&gt;\n&lt;input type=&quot;radio&quot; name=&quot;myRadioGroup&quot; id=&quot;ourPants&quot; value=&quot;pants&quot; /&gt; &lt;label for=&quot;ourPants&quot;&gt;pants&lt;/label&gt;&lt;br /&gt;\n&lt;input type=&quot;radio&quot; name=&quot;myRadioGroup&quot; id=&quot;ourBelt&quot; value=&quot;belt&quot; /&gt; &lt;label for=&quot;ourBelt&quot;&gt;belt&lt;/label&gt;&lt;br /&gt;\n&lt;input type=&quot;radio&quot; name=&quot;myRadioGroup&quot; id=&quot;ourShoes&quot; value=&quot;shoes&quot; /&gt; &lt;label for=&quot;ourShoes&quot;&gt;shoes&lt;/label&gt;&lt;/p&gt;\n&lt;p&gt;&lt;span style=&quot;cursor:pointer;text-decoration:underline;color:#0000ff;&quot; onclick=&quot;document.myForm.myRadioGroup.selectedIndex=2;&quot;&gt;Select our favorite gadget ;-)&lt;/span&gt;&lt;/p&gt;\n&lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;Order!&quot; /&gt;\n&lt;/fieldset&gt;\n&lt;/form&gt;\n&lt;/body&gt;\n&lt;/html&gt;</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Modifying_a_property\"></span><h2 class = \"editable\">Modifying a property</h2>\n<p>When the property already exists, <code>Object.defineProperty</code> attempts to modify the property according to the values in the descriptor and the object current configuration. If the old descriptor had its <strong>configurable</strong> attribute set to <code>false</code> (the property is said &quot;non-configurable&quot;), then no attribute besides <strong>writable</strong> can be changed. In that case, it is also not possible to switch back and forth from data/accessor properties type (a property which would have been defined without <code>get</code>/<code>set</code>/<code>value</code>/<code>writable</code> is called &quot;generic&quot; and is &quot;typed&quot; as a data descriptor).</p>\n<p>A <a title = \"en/JavaScript/Reference/Global Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\"><code>TypeError</code></a> is thrown when non-configurable property attributes are changed unless it's the <code>writable</code> attribute or if the current and new values are equal.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Writable_attribute\"></span><h2 class = \"editable\">Writable attribute</h2>\n<p>When the <code>writable</code> property attribute is set to <code>false</code>, the property is said to be &quot;non-writable&quot;. It cannot be assigned.</p>\n<div id = \"section_9\"><span id = \"Example_2\"></span><h3 class = \"editable\">Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {}; // Creates a new object\n\nObject.defineProperty(o, &quot;a&quot;, {value : 37,\n                               writable : false});\n\nalert(o.a); // alerts 37\no.a = 25;\nalert(o.a); // alerts 37. The assignment didn't work. No error thrown</pre>\r\n        \n<p>As seen in the example, trying to write into the non-writable property doesn't change it but doesn't throw an error either.</p>\n</div></div>",
			"<div id = \"section_9\"><span id = \"Example_2\"></span><h3 class = \"editable\">Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {}; // Creates a new object\n\nObject.defineProperty(o, &quot;a&quot;, {value : 37,\n                               writable : false});\n\nalert(o.a); // alerts 37\no.a = 25;\nalert(o.a); // alerts 37. The assignment didn't work. No error thrown</pre>\r\n        \n<p>As seen in the example, trying to write into the non-writable property doesn't change it but doesn't throw an error either.</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Enumerable_attribute\"></span><h2 class = \"editable\">Enumerable attribute</h2>\n<p>The <code>Enumerable</code> property attribute defines whether the property shows up in a <a title = \"en/JavaScript/Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\">for...in</a> loop or not.</p>\n<div id = \"section_11\"><span id = \"Example_3\"></span><h3 class = \"editable\">Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var i;\nvar o = {};\nObject.defineProperty(o, &quot;a&quot;, { value : 1, enumerable:true });\nObject.defineProperty(o, &quot;b&quot;, { value : 2, enumerable:false });\nObject.defineProperty(o, &quot;c&quot;, { value : 3 }); // enumerable defaults to false\no.d = 4;\n\nfor (i in o) {    \n    alert(i);  \n}\n// alerts 'a' then 'd'</pre>\r\n        \n</div></div>",
			"<div id = \"section_11\"><span id = \"Example_3\"></span><h3 class = \"editable\">Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var i;\nvar o = {};\nObject.defineProperty(o, &quot;a&quot;, { value : 1, enumerable:true });\nObject.defineProperty(o, &quot;b&quot;, { value : 2, enumerable:false });\nObject.defineProperty(o, &quot;c&quot;, { value : 3 }); // enumerable defaults to false\no.d = 4;\n\nfor (i in o) {    \n    alert(i);  \n}\n// alerts 'a' then 'd'</pre>\r\n        \n</div>",
			"<div id = \"section_12\"><span id = \"Configurable_attribute\"></span><h2 class = \"editable\">Configurable attribute</h2>\n<p>The <code>configurable</code> attribute controls at the same time whether the property can be deleted from the object and whether its attributes (other than <code>writable</code>) can be changed.</p>\n<div id = \"section_13\"><span id = \"Example_4\"></span><h3 class = \"editable\">Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {};\nObject.defineProperty(o, &quot;a&quot;, { get : function(){return 1;}, \n                                configurable : false } );\n\nObject.defineProperty(o, &quot;a&quot;, {configurable : true}); // throws a TypeError\nObject.defineProperty(o, &quot;a&quot;, {enumerable : true}); // throws a TypeError\nObject.defineProperty(o, &quot;a&quot;, {set : function(){}}); // throws a TypeError (set was undefined previously)\nObject.defineProperty(o, &quot;a&quot;, {get : function(){return 1;}}); // throws a TypeError (even though the new get does exactly the same thing)\nObject.defineProperty(o, &quot;a&quot;, {value : 12}); // throws a TypeError\n\nalert(o.a); // alerts 1\ndelete o.a; // Nothing happens\nalert(o.a); // alerts 1</pre>\r\n        \n<p>If <code>o.a</code> <code>configurable</code> attribute was <code>true</code>, none of the error would be thrown and the property would be deleted at the end.</p>\n</div></div>",
			"<div id = \"section_13\"><span id = \"Example_4\"></span><h3 class = \"editable\">Example</h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {};\nObject.defineProperty(o, &quot;a&quot;, { get : function(){return 1;}, \n                                configurable : false } );\n\nObject.defineProperty(o, &quot;a&quot;, {configurable : true}); // throws a TypeError\nObject.defineProperty(o, &quot;a&quot;, {enumerable : true}); // throws a TypeError\nObject.defineProperty(o, &quot;a&quot;, {set : function(){}}); // throws a TypeError (set was undefined previously)\nObject.defineProperty(o, &quot;a&quot;, {get : function(){return 1;}}); // throws a TypeError (even though the new get does exactly the same thing)\nObject.defineProperty(o, &quot;a&quot;, {value : 12}); // throws a TypeError\n\nalert(o.a); // alerts 1\ndelete o.a; // Nothing happens\nalert(o.a); // alerts 1</pre>\r\n        \n<p>If <code>o.a</code> <code>configurable</code> attribute was <code>true</code>, none of the error would be thrown and the property would be deleted at the end.</p>\n</div>",
			"<div id = \"section_14\"><span id = \"Difference_with_usual_property_addition_and_default_values\"></span><h2 class = \"editable\">Difference with usual property addition and default values</h2>\n\r\n          <pre name = \"code\" class = \"js\">var o = {};\n\no.a = 1;\n// is equivalent to :\nObject.defineProperty(o, &quot;a&quot;, {value : 1,\n                               writable : true,\n                               configurable : true,\n                               enumerable : true});\n\n\n// On the other hand,\nObject.defineProperty(o, &quot;a&quot;, {value : 1});\n// is equivalent to :\nObject.defineProperty(o, &quot;a&quot;, {value : 1,\n                               writable : false,\n                               configurable : false,\n                               enumerable : false});</pre>\r\n        \n</div>",
			"<div id = \"section_15\"><span id = \"Code_considerations\"></span><h2 class = \"editable\">Code considerations</h2>\n<p>If you have to define many properties through the <code>Object.defineProperty</code> method, you can utilise the same descriptor object for each property, redefining it from time to time through binary flags.</p>\n<div id = \"section_16\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">var oDesc = {};\nfunction setProp (nMask, oObj, sKey, vVal_fGet, fSet) {\n\tif (nMask &amp; 12) {\n\t\tif (arguments.length &gt; 3) { oDesc.value = vVal_fGet; } else { delete oDesc.value; }\n\t\toDesc.writable = Boolean(nMask &amp; 8);\n\t\tdelete oDesc.get;\n\t\tdelete oDesc.set;\n\t} else {\n\t\tif (vVal_fGet) { oDesc.get = vVal_fGet; } else { delete oDesc.get; }\n\t\tif (fSet) { oDesc.set = fSet; } else { delete oDesc.set; }\n\t\tdelete oDesc.value;\n\t\tdelete oDesc.writable;\n\t}\n\toDesc.enumerable = Boolean(nMask &amp; 1);\n\toDesc.configurable = Boolean(nMask &amp; 2);\n\tObject.defineProperty(oObj, sKey, oDesc);\n}\n\n/**\n*\t:: function setProp ::\n*\n*\tvVal_fGet is the value to assign to a data descriptor or the getter function to assign to an accessor descriptor;\n*\n*\tnMask is a bitmask:\n*\n*\tflag 0x1: property is enumerable,\n*\tflag 0x2: property is configurable,\n*\tflag 0x4: property is data descriptor,\n*\tflag 0x8: property is writable.\n*\tNote: If flag 0x8 is setted to &quot;writable&quot;, the propery will be considered a data descriptor even if the flag 0x4 is setted to &quot;accessor descriptor&quot;!\n*\n*\tValues:\n*\n*\t0  : accessor descriptor - not configurable, not enumerable (0000).\n*\t1  : accessor descriptor - not configurable, enumerable (0001).\n*\t2  : accessor descriptor - configurable, not enumerable (0010).\n*\t3  : accessor descriptor - configurable, enumerable (0011).\n*\t4  : readonly data descriptor - not configurable, not enumerable (0100).\n*\t5  : readonly data descriptor - not configurable, enumerable (0101).\n*\t6  : readonly data descriptor - configurable, not enumerable (0110).\n*\t7  : readonly data descriptor - configurable, enumerable (0111).\n*\t8  : writable data descriptor - not configurable, not enumerable (1000).\n*\t9  : writable data descriptor - not configurable, enumerable (1001).\n*\t10 : writable data descriptor - configurable, not enumerable (1010).\n*\t11 : writable data descriptor - configurable, enumerable (1011).\n*/\n\n// creating a new empty object\nvar myObj = {};\n\n// adding a writable data descriptor - not configurable, not enumerable\nsetProp(8, myObj, &quot;myNumber&quot;, 25);\n\n// adding a readonly data descriptor - not configurable, enumerable\nsetProp(5, myObj, &quot;myString&quot;, &quot;Hello world!&quot;);\n\n// adding an accessor descriptor - not configurable, enumerable\nsetProp(1, myObj, &quot;myArray&quot;, function() {\n\tfor (var iBit = 0, iFlag = 1, aBoolArr = [false]; iFlag &lt; this.myNumber + 1 || (this.myNumber &amp; iFlag); iFlag = iFlag &lt;&lt; 1) { aBoolArr[iBit++] = Boolean(this.myNumber &amp; iFlag); }\n\treturn aBoolArr;\n}, function(aNewMask) {\n\tfor (var nNew = 0, iBit = 0; iBit &lt; aNewMask.length; iBit++) { nNew |= Boolean(aNewMask[iBit]) &lt;&lt; iBit; }\n\tthis.myNumber = nNew;\n});\n\n// adding a writable data descriptor (undefined value) - configurable, enumerable\nsetProp(11, myObj, &quot;myUndefined&quot;);\n\n// adding an accessor descriptor (only getter) - not configurable, enumerable\nsetProp(1, myObj, &quot;myDate&quot;, function() { return new Date(); });\n\n// adding an accessor descriptor (only setter) - not configurable, not enumerable\nsetProp(0, myObj, &quot;myAlert&quot;, null, function(sTxt) { alert(sTxt); });\n\nmyObj.myAlert = myObj.myDate.toLocaleString() + &quot;\\n\\n&quot; + myObj.myString + &quot;\\nThe number &quot; + myObj.myNumber + &quot; represents the following bitmask: &quot; + myObj.myArray.join(&quot;, &quot;) + &quot;.&quot;;</pre>\r\n        \n<p>You can do the same thing with an anonymous descriptor object.</p>\n\r\n          <pre name = \"code\" class = \"js\">new (function() {\n\tfunction buildProp (nMask, oObj, sKey, vVal_fGet, fSet) {\n\t\tif (nMask &amp; 12) {\n\t\t\tif (arguments.length &gt; 3) { this.value = vVal_fGet; } else { delete this.value; }\n\t\t\tthis.writable = Boolean(nMask &amp; 8);\n\t\t\tdelete this.get;\n\t\t\tdelete this.set;\n\t\t} else {\n\t\t\tif (vVal_fGet) { this.get = vVal_fGet; } else { delete this.get; }\n\t\t\tif (fSet) { this.set = fSet; } else { delete this.set; }\n\t\t\tdelete this.value;\n\t\t\tdelete this.writable;\n\t\t}\n\t\tthis.enumerable = Boolean(nMask &amp; 1);\n\t\tthis.configurable = Boolean(nMask &amp; 2);\n\t\tObject.defineProperty(oObj, sKey, this);\n\t};\n\tbuildProp(5, window, &quot;setProp&quot;, buildProp);\n})();\n\n// creating a new empty object\nvar myObj = {};\n\n// adding a writable data descriptor - not configurable, not enumerable\nsetProp(8, myObj, &quot;myNumber&quot;, 25);\n\n// adding a readonly data descriptor - not configurable, enumerable\nsetProp(5, myObj, &quot;myString&quot;, &quot;Hello world!&quot;);\n// etc. etc.</pre>\r\n        \n</div></div>",
			"<div id = \"section_16\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">var oDesc = {};\nfunction setProp (nMask, oObj, sKey, vVal_fGet, fSet) {\n\tif (nMask &amp; 12) {\n\t\tif (arguments.length &gt; 3) { oDesc.value = vVal_fGet; } else { delete oDesc.value; }\n\t\toDesc.writable = Boolean(nMask &amp; 8);\n\t\tdelete oDesc.get;\n\t\tdelete oDesc.set;\n\t} else {\n\t\tif (vVal_fGet) { oDesc.get = vVal_fGet; } else { delete oDesc.get; }\n\t\tif (fSet) { oDesc.set = fSet; } else { delete oDesc.set; }\n\t\tdelete oDesc.value;\n\t\tdelete oDesc.writable;\n\t}\n\toDesc.enumerable = Boolean(nMask &amp; 1);\n\toDesc.configurable = Boolean(nMask &amp; 2);\n\tObject.defineProperty(oObj, sKey, oDesc);\n}\n\n/**\n*\t:: function setProp ::\n*\n*\tvVal_fGet is the value to assign to a data descriptor or the getter function to assign to an accessor descriptor;\n*\n*\tnMask is a bitmask:\n*\n*\tflag 0x1: property is enumerable,\n*\tflag 0x2: property is configurable,\n*\tflag 0x4: property is data descriptor,\n*\tflag 0x8: property is writable.\n*\tNote: If flag 0x8 is setted to &quot;writable&quot;, the propery will be considered a data descriptor even if the flag 0x4 is setted to &quot;accessor descriptor&quot;!\n*\n*\tValues:\n*\n*\t0  : accessor descriptor - not configurable, not enumerable (0000).\n*\t1  : accessor descriptor - not configurable, enumerable (0001).\n*\t2  : accessor descriptor - configurable, not enumerable (0010).\n*\t3  : accessor descriptor - configurable, enumerable (0011).\n*\t4  : readonly data descriptor - not configurable, not enumerable (0100).\n*\t5  : readonly data descriptor - not configurable, enumerable (0101).\n*\t6  : readonly data descriptor - configurable, not enumerable (0110).\n*\t7  : readonly data descriptor - configurable, enumerable (0111).\n*\t8  : writable data descriptor - not configurable, not enumerable (1000).\n*\t9  : writable data descriptor - not configurable, enumerable (1001).\n*\t10 : writable data descriptor - configurable, not enumerable (1010).\n*\t11 : writable data descriptor - configurable, enumerable (1011).\n*/\n\n// creating a new empty object\nvar myObj = {};\n\n// adding a writable data descriptor - not configurable, not enumerable\nsetProp(8, myObj, &quot;myNumber&quot;, 25);\n\n// adding a readonly data descriptor - not configurable, enumerable\nsetProp(5, myObj, &quot;myString&quot;, &quot;Hello world!&quot;);\n\n// adding an accessor descriptor - not configurable, enumerable\nsetProp(1, myObj, &quot;myArray&quot;, function() {\n\tfor (var iBit = 0, iFlag = 1, aBoolArr = [false]; iFlag &lt; this.myNumber + 1 || (this.myNumber &amp; iFlag); iFlag = iFlag &lt;&lt; 1) { aBoolArr[iBit++] = Boolean(this.myNumber &amp; iFlag); }\n\treturn aBoolArr;\n}, function(aNewMask) {\n\tfor (var nNew = 0, iBit = 0; iBit &lt; aNewMask.length; iBit++) { nNew |= Boolean(aNewMask[iBit]) &lt;&lt; iBit; }\n\tthis.myNumber = nNew;\n});\n\n// adding a writable data descriptor (undefined value) - configurable, enumerable\nsetProp(11, myObj, &quot;myUndefined&quot;);\n\n// adding an accessor descriptor (only getter) - not configurable, enumerable\nsetProp(1, myObj, &quot;myDate&quot;, function() { return new Date(); });\n\n// adding an accessor descriptor (only setter) - not configurable, not enumerable\nsetProp(0, myObj, &quot;myAlert&quot;, null, function(sTxt) { alert(sTxt); });\n\nmyObj.myAlert = myObj.myDate.toLocaleString() + &quot;\\n\\n&quot; + myObj.myString + &quot;\\nThe number &quot; + myObj.myNumber + &quot; represents the following bitmask: &quot; + myObj.myArray.join(&quot;, &quot;) + &quot;.&quot;;</pre>\r\n        \n<p>You can do the same thing with an anonymous descriptor object.</p>\n\r\n          <pre name = \"code\" class = \"js\">new (function() {\n\tfunction buildProp (nMask, oObj, sKey, vVal_fGet, fSet) {\n\t\tif (nMask &amp; 12) {\n\t\t\tif (arguments.length &gt; 3) { this.value = vVal_fGet; } else { delete this.value; }\n\t\t\tthis.writable = Boolean(nMask &amp; 8);\n\t\t\tdelete this.get;\n\t\t\tdelete this.set;\n\t\t} else {\n\t\t\tif (vVal_fGet) { this.get = vVal_fGet; } else { delete this.get; }\n\t\t\tif (fSet) { this.set = fSet; } else { delete this.set; }\n\t\t\tdelete this.value;\n\t\t\tdelete this.writable;\n\t\t}\n\t\tthis.enumerable = Boolean(nMask &amp; 1);\n\t\tthis.configurable = Boolean(nMask &amp; 2);\n\t\tObject.defineProperty(oObj, sKey, this);\n\t};\n\tbuildProp(5, window, &quot;setProp&quot;, buildProp);\n})();\n\n// creating a new empty object\nvar myObj = {};\n\n// adding a writable data descriptor - not configurable, not enumerable\nsetProp(8, myObj, &quot;myNumber&quot;, 25);\n\n// adding a readonly data descriptor - not configurable, enumerable\nsetProp(5, myObj, &quot;myString&quot;, &quot;Hello world!&quot;);\n// etc. etc.</pre>\r\n        \n</div>",
			"<div id = \"section_17\"><span id = \"Cross-browser_concerns\"></span><h2 class = \"editable\">Cross-browser concerns</h2>\n<div id = \"section_18\"><span id = \"Redefining_the_length_property_of_an_Array_object\"></span><h3 id = \"ie8-specific\" class = \"editable\">Redefining the length property of an Array object</h3>\n<p>It is possible to redefine the <code>length</code> property of arrays, but not all browsers permit this redefinition. &nbsp;Firefox 4 will throw a <code>TypeError</code> on any attempt to redefine the length property of an array. &nbsp;Versions of Chrome which implement <code>Object.defineProperty</code>&nbsp;in some circumstances ignore a length value different from the array's current <code>length</code> property, and changing writability seems to silently not work in some circumstances. &nbsp;Versions of Safari which implement <code>Object.defineProperty</code>&nbsp;ignore a length value different from the array's current <code>length</code> property, and attempts to change writability execute without error but do not actually change the property's writability. &nbsp;Only IE9 appears to fully and correctly implement redefinition of the <code>length</code> property of arrays. &nbsp;For now, don't rely on redefining the <code>length</code> property of an array to either work, or to work in a particular manner.</p>\n</div><div id = \"section_19\"><span id = \"Internet_Explorer_8_specific_case\"></span><h3 class = \"editable\">Internet Explorer 8 specific case</h3>\n<p>IE8 implemented a <code>Object.defineProperty()</code> method that could <a class = \" external\" rel = \"external\" href = \"http://msdn.microsoft.com/en-us/library/dd229916%28VS.85%29.aspx\" title = \"http://msdn.microsoft.com/en-us/library/dd229916%28VS.85%29.aspx\" target = \"_blank\">only be used on DOM objects</a>. A couple of things need to be noted:</p>\n<ul> <li>Trying to use <code>Object.defineProperty()</code> on native objects throws an error.</li> <li>Property attributes must be set to some values. <code>true, true, true</code> for data descriptor and <code>true</code> for configurable, <code>false</code> for enumerable for accessor descriptor. Any attempt to provide other value will result in an error being thrown.</li> <li>Reconfiguring a property requires to delete the property first. If the property isn't deleted, it stays as it was before the reconfiguration attempt.</li>\n</ul>\n</div><div id = \"section_20\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2)</td> <td>5 (previous versions untested)</td> <td>9 (8, but only on DOM objects and with some non standard behaviors. <a href = \"#ie8-specific\">See above</a>.)</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5.1 (5, but not on DOM objects)</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a>.</p></div></div>",
			"<div id = \"section_18\"><span id = \"Redefining_the_length_property_of_an_Array_object\"></span><h3 id = \"ie8-specific\" class = \"editable\">Redefining the length property of an Array object</h3>\n<p>It is possible to redefine the <code>length</code> property of arrays, but not all browsers permit this redefinition. &nbsp;Firefox 4 will throw a <code>TypeError</code> on any attempt to redefine the length property of an array. &nbsp;Versions of Chrome which implement <code>Object.defineProperty</code>&nbsp;in some circumstances ignore a length value different from the array's current <code>length</code> property, and changing writability seems to silently not work in some circumstances. &nbsp;Versions of Safari which implement <code>Object.defineProperty</code>&nbsp;ignore a length value different from the array's current <code>length</code> property, and attempts to change writability execute without error but do not actually change the property's writability. &nbsp;Only IE9 appears to fully and correctly implement redefinition of the <code>length</code> property of arrays. &nbsp;For now, don't rely on redefining the <code>length</code> property of an array to either work, or to work in a particular manner.</p>\n</div>",
			"<div id = \"section_19\"><span id = \"Internet_Explorer_8_specific_case\"></span><h3 class = \"editable\">Internet Explorer 8 specific case</h3>\n<p>IE8 implemented a <code>Object.defineProperty()</code> method that could <a class = \" external\" rel = \"external\" href = \"http://msdn.microsoft.com/en-us/library/dd229916%28VS.85%29.aspx\" title = \"http://msdn.microsoft.com/en-us/library/dd229916%28VS.85%29.aspx\" target = \"_blank\">only be used on DOM objects</a>. A couple of things need to be noted:</p>\n<ul> <li>Trying to use <code>Object.defineProperty()</code> on native objects throws an error.</li> <li>Property attributes must be set to some values. <code>true, true, true</code> for data descriptor and <code>true</code> for configurable, <code>false</code> for enumerable for accessor descriptor. Any attempt to provide other value will result in an error being thrown.</li> <li>Reconfiguring a property requires to delete the property first. If the property isn't deleted, it stays as it was before the reconfiguration attempt.</li>\n</ul>\n</div>",
			"<div id = \"section_20\"><span id = \"Browser_compatibility\"></span><h3 class = \"editable\">Browser compatibility</h3>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2)</td> <td>5 (previous versions untested)</td> <td>9 (8, but only on DOM objects and with some non standard behaviors. <a href = \"#ie8-specific\">See above</a>.)</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5.1 (5, but not on DOM objects)</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a>.</p></div>",
			"<div id = \"section_21\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Global Objects/Object/create\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/create\">Object.create</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Creating a property",
			"Example",
			"Modifying a property",
			"Writable attribute",
			"Example",
			"Enumerable attribute",
			"Example",
			"Configurable attribute",
			"Example",
			"Difference with usual property addition and default values",
			"Code considerations",
			"Examples",
			"Cross-browser concerns",
			"Redefining the length property of an Array object",
			"Internet Explorer 8 specific case",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/create",
		"title": "Object.create",
		"_id": "4eea8532a4c86c4dba0000da",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Creates a new object with the specified prototype object and properties.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.create(<em>proto</em> [, <em>propertiesObject</em> ])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>proto</dt> <dd>The object which should be the prototype of the newly-created object.</dd> <dt>propertiesObject</dt> <dd>If specified and not undefined, an object whose enumerable own properties (that is, those properties defined upon itself and <em>not</em> enumerable properties along its prototype chain) specify property descriptors to be added to the newly-created object, with the corresponding property names.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code><span style = \"font-family: Verdana,Tahoma,sans-serif;\">Throws a </span><span style = \"font-family: Courier New;\">TypeError</span></code><code><span style = \"font-family: Verdana,Tahoma,sans-serif;\"> exception if the proto parameter isn't null or an object</span></code>.<strong><br/>\n</strong></p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n\r\n          <pre name = \"code\" class = \"js\">var o;\n\n// create an object with null as prototype\no = Object.create(null);\n\n\no = {};\n// is equivalent to:\no = Object.create(Object.prototype);\n\n\nfunction Constructor(){}\no = new Constructor();\n// is equivalent to:\no = Object.create(Constructor.prototype);\n// Of course, if there is actual initialization code in the Constructor function, the Object.create cannot reflect it\n\n\n// create a new object whose prototype is a new, empty object\n// and a adding single property 'p', with value 42\no = Object.create({}, { p: { value: 42 } })\n\n// by default properties ARE NOT writable, enumerable or configurable:\no.p = 24\no.p\n//42\n\no.q = 12\nfor (var prop in o) {\n   console.log(prop)\n}\n//&quot;q&quot;\n\ndelete o.p\n//false\n\n//to specify an ES3 property\no2 = Object.create({}, { p: { value: 42, writable: true, enumerable: true, configurable: true } });</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>5</td> <td>4 (2.0)</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<div id = \"section_7\"><span id = \"Polyfill\"></span><h3 class = \"editable\">Polyfill</h3>\n\r\n          <pre name = \"code\" class = \"js\">if (!Object.create) {\n    Object.create = function (o) {\n        if (arguments.length &gt; 1) {\n            throw new Error('Object.create implementation only accepts the first parameter.');\n        }\n        function F() {}\n        F.prototype = o;\n        return new F();\n    };\n}</pre>\r\n        \n<p>This polyfill covers the main use case which is creating a new object for which the prototype has been chosen but doesn't take the second argument into account.</p>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Polyfill\"></span><h3 class = \"editable\">Polyfill</h3>\n\r\n          <pre name = \"code\" class = \"js\">if (!Object.create) {\n    Object.create = function (o) {\n        if (arguments.length &gt; 1) {\n            throw new Error('Object.create implementation only accepts the first parameter.');\n        }\n        function F() {}\n        F.prototype = o;\n        return new F();\n    };\n}</pre>\r\n        \n<p>This polyfill covers the main use case which is creating a new object for which the prototype has been chosen but doesn't take the second argument into account.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><code><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/defineProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty\">Object.defineProperty</a></code></li> <li><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/defineProperties\" class = \"internal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperties\">Object.defineProperties</a></li> <li><a title = \"En/Core JavaScript 1.5 Reference/Global Objects/Object/IsPrototypeOf\" class = \"internal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf\">Object.prototype.isPrototypeOf</a></li> <li>John&nbsp;Resig's post on <a class = \"external\" title = \"http://ejohn.org/blog/objectgetprototypeof/\" rel = \"external\" href = \"http://ejohn.org/blog/objectgetprototypeof/\" target = \"_blank\">getPrototypeOf</a></li>\n</ul>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Cross-browser compatibility",
			"Polyfill",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/prototype",
		"title": "Object.prototype",
		"_id": "4eea8532a4c86c4dba0000db",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></code> prototype object.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>All objects in JavaScript are descended from <code><a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></code>; all objects inherit methods and properties from <code>Object.prototype</code>, although they may be overridden&nbsp;(except an&nbsp;<code>Object</code>&nbsp;with a <code>null </code>prototype, i.e.&nbsp;<code>Object.create(null)</code>). For example, other constructors' prototypes override the <code>constructor</code> property and provide their own <code>toString</code> methods. Changes to the <code>Object</code> prototype object are propagated to all objects unless the properties and methods subject to those changes are overridden further along the prototype chain.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\"><code>constructor</code></a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/count\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/count\" class = \"new \"><code>__count__</code></a></dt> <dd>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since <a rel = \"custom\" href = \"/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span><br/> Returns the number of enumerable properties directly on a user-defined object.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/parent\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a></dt> <dd>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since <a rel = \"custom\" href = \"/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span><br/> Points to an object's context.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/proto\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/proto\"><code>__proto__</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Points to the object which was used as prototype when the object was instantiated.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Associates a function with a property that, when accessed, executes that function and returns its return value.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Associates a function with a property that, when set, executes that function which modifies the property.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/eval\">eval</a></code></dt> <dd><span>\n\n<span style = \"border: 1px solid #FF0000; background-color: #FEBCBC; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Obsolete since <a rel = \"custom\" href = \"/en/JavaScript/New_in_JavaScript/1.8.5\">JavaScript 1.8.5</a></span><br/> </span>Evaluates a string of JavaScript code in the context of the specified object.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty\"><code>hasOwnProperty</code></a></dt> <dd>Returns a boolean indicating whether an object contains the specified property as a direct property of that object and not inherited through the prototype chain.</dd> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf\">isPrototypeOf</a></code></dt> <dd>Returns a boolean indication whether the specified object is in the prototype chain of the object this method is called upon.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupGetter\">__lookupGetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns the function associated with the specified property by the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></code> method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupSetter\">__lookupSetter__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns the function associated with the specified property by the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></code> method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/noSuchMethod\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/noSuchMethod\">__noSuchMethod__</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Allows a function to be defined that will be executed when an undefined object member is called as a method.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable\">propertyIsEnumerable</a></code></dt> <dd>Returns a boolean indicating if the internal <a title = \"en/ECMAScript_DontEnum_attribute\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript_DontEnum_attribute\">ECMAScript DontEnum attribute</a> is set.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">toSource</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns string containing the source of an object literal representing the object that this method is called upon; you can use this value to create a new object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toLocaleString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toLocaleString\">toLocaleString</a></code></dt> <dd>Calls <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code>.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">toString</a></code></dt> <dd>Returns a string representation of the object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/unwatch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch\">unwatch</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Removes a watchpoint from a property of the object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">valueOf</a></code></dt> <dd>Returns the primitive value of the specified object.</dd>\n</dl>\n<dl> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/Object/watch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch\">watch</a></code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Adds a watchpoint to a property of the object.</dd>\n</dl>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperties",
		"title": "Object.defineProperties",
		"_id": "4eea8532a4c86c4dba0000dc",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Defines new or modifies existing properties directly on an object, returning the object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>Object.defineProperties(<em>obj</em>, <em>props</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt>obj</dt> <dd>The object on which to define or modify properties.</dd> <dt>props</dt> <dd>An object whose own enumerable properties constitute descriptors for the properties to be defined or modified.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>Object.defineProperties</code>, in essence, defines all properties corresponding to the enumerable own properties of <code>props</code> on the object <code>objrops</code> object.</p>\n<p>Assuming a pristine execution environment with all names and properties referring to their initial values, <code>Object.defineProperties</code> is almost completely equivalent (note the comment in <code>isCallable</code>) to the following reimplementation in JavaScript:</p>\n\r\n          <pre name = \"code\" class = \"js\">function defineProperties(obj, properties)\n{\n  function convertToDescriptor(desc)\n  {\n    function hasProperty(obj, prop)\n    {\n      return Object.prototype.hasOwnProperty.call(obj, prop);\n    }\n\n    function isCallable(v)\n    {\n      // NB: modify as necessary if other values than functions are callable.\n      return typeof v === &quot;function&quot;;\n    }\n\n    if (typeof desc !== &quot;object&quot; || desc === null)\n      throw new TypeError(&quot;bad desc&quot;);\n\n    var d = {};\n    if (hasProperty(desc, &quot;enumerable&quot;))\n      d.enumerable = !!obj.enumerable;\n    if (hasProperty(desc, &quot;configurable&quot;))\n      d.configurable = !!obj.configurable;\n    if (hasProperty(desc, &quot;value&quot;))\n      d.value = obj.value;\n    if (hasProperty(desc, &quot;writable&quot;))\n      d.writable = !!desc.writable;\n    if (hasProperty(desc, &quot;get&quot;))\n    {\n      var g = desc.get;\n      if (!isCallable(g) &amp;&amp; g !== &quot;undefined&quot;)\n        throw new TypeError(&quot;bad get&quot;);\n      d.get = g;\n    }\n    if (hasProperty(desc, &quot;set&quot;))\n    {\n      var s = desc.set;\n      if (!isCallable(s) &amp;&amp; s !== &quot;undefined&quot;)\n        throw new TypeError(&quot;bad set&quot;);\n      d.set = s;\n    }\n\n    if ((&quot;get&quot; in d || &quot;set&quot; in d) &amp;&amp; (&quot;value&quot; in d || &quot;writable&quot; in d))\n      throw new TypeError(&quot;identity-confused descriptor&quot;);\n\n    return d;\n  }\n\n  if (typeof obj !== &quot;object&quot; || obj === null)\n    throw new TypeError(&quot;bad obj&quot;);\n\n  properties = Object(properties);\n  var keys = Object.keys(properties);\n  var descs = [];\n  for (var i = 0; i &lt; keys.length; i++)\n    descs.push([keys[i], convertToDescriptor(properties[keys[i]])]);\n  for (var i = 0; i &lt; descs.length; i++)\n    Object.defineProperty(obj, descs[i][0], descs[i][1]);\n\n  return obj;\n}</pre>\r\n        \n<div id = \"section_5\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2)</td> <td>5 (previous versions untested)</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div> </div><div id = \"section_6\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><code><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/defineProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty\">Object.defineProperty</a></code></li> <li><code><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/keys\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys\">Object.keys</a></code></li>\n</ul></div></div>",
			"<div id = \"section_5\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2)</td> <td>5 (previous versions untested)</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div> </div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><code><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/defineProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty\">Object.defineProperty</a></code></li> <li><code><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/keys\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys\">Object.keys</a></code></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Browser compatibilitySee also",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor",
		"title": "Object.getOwnPropertyDescriptor",
		"_id": "4eea8534a4c86c4dba0000dd",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.getOwnPropertyDescriptor(<em>obj</em>, <em>prop</em>)</code></p>\n</div>",
			"<div id = \"section_2\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>obj</code></dt> <dd>The object in which to look for the property.</dd> <dt><code>prop</code></dt> <dd>The name of the property whose description is to be retrieved</dd>\n</dl>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>This method permits examination of the precise description of a property. A <dfn>property</dfn> in JavaScript consists of a string-valued name and a property descriptor. A <dfn>property descriptor</dfn> is a record with some of the following attributes:</p>\n<dl> <dt><code><strong>value</strong></code></dt> <dd>The value associated with the property (data descriptors only).</dd> <dt><code><strong>writable</strong></code></dt> <dd><code>true</code> if and only if the value associated with the property may be changed (data descriptors only).</dd> <dt><code><strong>get</strong></code></dt> <dd>A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).</dd> <dt><code><strong>set</strong></code></dt> <dd>A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).</dd> <dt><code><strong>configurable</strong></code></dt> <dd><code>true</code> if and only if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.</dd> <dt><code><strong>enumerable</strong></code></dt> <dd><code>true</code> if and only if this property shows up during enumeration of the properties on the corresponding object.</dd>\n</dl>\n<p>Further information about property descriptor attributes can be found on the <code><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/defineProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty\">Object.defineProperty</a></code> description</p></div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n\r\n          <pre name = \"code\" class = \"js\">var o, d;\n\no = { get foo() { return 17; } };\nd = Object.getOwnPropertyDescriptor(o, &quot;foo&quot;);\n// d is { configurable: true, enumerable: true, get: /*the getter function*/, set: undefined }\n\no = { bar: 42 };\nd = Object.getOwnPropertyDescriptor(o, &quot;bar&quot;);\n// d is { configurable: true, enumerable: true, value: 42, writable: true }\n\no = {};\nObject.defineProperty(o, &quot;baz&quot;, { value: 8675309, writable: false, enumerable: false });\nd = Object.getOwnPropertyDescriptor(o, &quot;baz&quot;);\n// d is { value: 8675309, writable: false, enumerable: false, configurable: false }</pre>\r\n        \n</div>",
			"<div id = \"section_5\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>5</td> <td>8</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><code><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/defineProperty\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty\">Object.defineProperty</a></code></li>\n</ul></div>"
		],
		"sectionNames": [
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Cross-browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys",
		"title": "Object.keys",
		"_id": "4eea8535a4c86c4dba0000de",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Returns an array of all own enumerable properties found upon a given object, in the same order as that provided by a <a title = \"en/JavaScript/Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\"><code>for-in</code></a> loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.keys(<em>obj</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>obj</dt> <dd>The object whose enumerable own properties are to be returned.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>Object.keys</code> returns an array whose elements are strings corresponding to the enumerable properties found directly upon <code>object</code>. The ordering of the properties is the same as that given by looping over the properties of the object manually.</p> </div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n\r\n          <pre name = \"code\" class = \"js\">var arr = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]; alert(Object.keys(arr)); // will alert &quot;0,1,2&quot;\n\n// array like object\nvar obj = { 0 : &quot;a&quot;, 1 : &quot;b&quot;, 2 : &quot;c&quot;};\nalert(Object.keys(obj)); // will alert &quot;0,1,2&quot;\n\n// getFoo is property which isn't enumerable\nvar my_obj = Object.create({}, { getFoo : { value : function () { return this.foo } } });\nmy_obj.foo = 1;\n\nalert(Object.keys(my_obj)); // will alert only foo</pre>\r\n        \n<p>If you want all properties, even the not enumerable, see <a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/getOwnPropertyNames\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames\">Object.getOwnPropertyNames</a>.&nbsp;</p>\n</div>",
			"<div id = \"section_6\"><span id = \"Compatiblity\"></span><h2 class = \"editable\">Compatiblity</h2>\n<p>To add compatible Object.keys support in older environments that do not natively support it, copy the following snippet:</p>\n\r\n          <pre name = \"code\" class = \"js\">if(!Object.keys) Object.keys = function(o){\n if (o !== Object(o))\n      throw new TypeError('Object.keys called on non-object');\n var ret=[],p;\n for(p in o) if(Object.prototype.hasOwnProperty.call(o,p)) ret.push(p);\n return ret;\n}</pre>\r\n         </div>",
			"<div id = \"section_7\"><span id = \"Browser_support\"></span><h2 class = \"editable\">Browser support</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>5</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div> </div>",
			"<div id = \"section_8\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/propertyIsEnumerable\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable\">propertyIsEnumerable</a></li> <li><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/create\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/create\">Object.create</a></li> <li><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/getOwnPropertyNames\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames\">Object.getOwnPropertyNames</a></li> <li><a class = \" link-https\" rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=307791\" title = \"https://bugzilla.mozilla.org/show_bug.cgi?id=307791\" target = \"_blank\">Bug&nbsp;307791</a> -<span id = \"summary_alias_container\"> <span id = \"short_desc_nonedit_display\">Implement ES5's Object.keys(O)</span> </span></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Compatiblity",
			"Browser support",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames",
		"title": "Object.getOwnPropertyNames",
		"_id": "4eea8537a4c86c4dba0000df",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Returns an array of all properties (enumerable or not) found upon a given object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.getOwnPropertyNames(<em>obj</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>obj</dt> <dd>The object whose enumerable <em>and non-enumerable</em> own properties are to be returned.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>Object.</code>getOwnPropertyNames returns an array whose elements are strings corresponding to the enumerable <em>and non-enumerable</em> properties found directly upon <code>obj</code>. The ordering of the enumerable properties in the array is consistent with the ordering exposed by a &nbsp;<a style = \"text-decoration: none; color: rgb(4, 137, 183) !important; cursor: default; \" title = \"en/Core JavaScript 1.5 Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\">for...in loop</a>&nbsp;(or by&nbsp;<a style = \"text-decoration: none; color: rgb(4, 137, 183) !important; cursor: default; \" title = \"en/Core JavaScript 1.5 Reference/Global\nObjects/Object/keys\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys\">Object.keys</a>) over the properties of the object. &nbsp;The ordering of the non-enumerable properties in the array, and among the enumerable properties, is not defined.</p> </div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n\r\n          <pre name = \"code\" class = \"js\">var arr = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;];\nprint(Object.getOwnPropertyNames(arr).sort()); // prints &quot;0,1,2,length&quot;\n\n// array-like object\nvar obj = { 0: &quot;a&quot;, 1: &quot;b&quot;, 2: &quot;c&quot;};\nprint(Object.getOwnPropertyNames(obj).sort()); // prints &quot;0,1,2&quot;\n\n// non-enumerable property\nvar my_obj = Object.create({}, { getFoo: { value: function() { return this.foo; }, enumerable: false } });\nmy_obj.foo = 1;\n\nprint(Object.getOwnPropertyNames(my_obj).sort()); // prints &quot;foo, getFoo&quot;</pre>\r\n        \n<p>If you want only the enumerable properties, see <a title = \"en/Core JavaScript 1.5 Reference/Global\nObjects/Object/keys\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys\">Object.keys</a> or use a <a title = \"en/Core JavaScript 1.5 Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\">for...in loop</a>&nbsp;(although note that this will return enumerable properties not found directly upon that object but also along the prototype chain for the object).</p> </div>",
			"<div id = \"section_6\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>5</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div> </div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/Core JavaScript 1.5 Reference/Global\n    Objects/Object/propertyIsEnumerable\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable\">propertyIsEnumerable</a></li> <li><a title = \"en/Core JavaScript 1.5 Reference/Global\n    Objects/Object/create\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/create\">Object.create</a></li> <li><a title = \"en/Core JavaScript 1.5 Reference/Global\n    Objects/Object/keys\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys\">Object.keys</a></li> <li><a class = \" link-https\" rel = \"external\" href = \"https://bugzilla.mozilla.org/show_bug.cgi?id=518663\" title = \"https://bugzilla.mozilla.org/show_bug.cgi?id=518663\" target = \"_blank\">Bug&nbsp;518663</a> -<span id = \"summary_alias_container\"> <span id = \"short_desc_nonedit_display\">ES5: Object.getOwnPropertyNames</span> </span></li>\n</ul>\n<dl> <dt></dt>\n</dl></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Cross-browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf",
		"title": "Object.GetPrototypeOf",
		"_id": "4eea8537a4c86c4dba0000e0",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Returns the prototype of the specified object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.getPrototypeOf(<em>object</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>object</dt> <dd>The object whose prototype is to be returned.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code><span style = \"font-family: Verdana,Tahoma,sans-serif;\">Throws a </span><a title = \"en/JavaScript/Reference/Global Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\"><span style = \"font-family: Courier New;\">TypeError</span></a></code><code><span style = \"font-family: Verdana,Tahoma,sans-serif;\"> exception if the object parameter isn't an </span></code><span style = \"font-family: Courier New;\">Object</span>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>3.5</td> <td>5</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Even if Opera does not support <code>Object.getPrototypeOf()</code> yet, it does support the non-standard <code>__proto__</code> property since Opera 10.50.</p></div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"En/Core JavaScript 1.5 Reference/Global Objects/Object/IsPrototypeOf\" class = \"internal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf\">isPrototypeOf</a>&nbsp;</li> <li>John&nbsp;Resig's post on <a class = \"external\" title = \"http://ejohn.org/blog/objectgetprototypeof/\" rel = \"external\" href = \"http://ejohn.org/blog/objectgetprototypeof/\" target = \"_blank\">getPrototypeOf</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Cross-browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions",
		"title": "Object.preventExtensions",
		"_id": "4eea8538a4c86c4dba0000e1",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Prevents new properties from ever being added to an object (i.e. prevents future extensions to the object).</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.preventExtensions(<em>obj</em>)</code></p> </div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>obj</dt> <dd>The object which should be made non-extensible.</dd>\n</dl> </div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>An object is extensible if new properties can be added to it. &nbsp;<code>preventExtensions</code>&nbsp;marks an object as no longer extensible, so that it will never have properties beyond the ones it had at the time it was marked as non-extensible. &nbsp;Note that the properties of a non-extensible object, in general, may still be <em>deleted</em>. Attempting to add new properties to a non-extensible object will fail, either silently or by throwing a <a title = \"en/JavaScript/Reference/Global Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\"><code>TypeError</code></a> (most commonly, but not exclusively, when in&nbsp;<a title = \"en/JavaScript/Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Strict_mode\">strict mode</a>).</p>\n<p><code>Object.preventExtensions</code> only prevents addition of own properties. Properties can still be added to the object prototype. However, calling <code>Object.preventExtensions</code> on an object will also prevent extensions on its __proto__ ( \n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n ) property.</p>\n<p>If there is a way to turn an extensible object to a non-extensible one, there is no way to do the opposite in ECMAScript 5</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n\r\n          <pre name = \"code\" class = \"js\">// Object.preventExtensions returns the object being made non-extensible.\nvar obj = {};\nvar obj2 = Object.preventExtensions(obj);\nassert(obj === obj2);\n\n// Objects are extensible by default.\nvar empty = {};\nassert(Object.isExtensible(empty) === true);\n\n// ...but that can be changed.\nObject.preventExtensions(empty);\nassert(Object.isExtensible(empty) === false);\n\n// Object.defineProperty throws when adding a new property to a non-extensible object.\nvar nonExtensible = { removable: true };\nObject.preventExtensions(nonExtensible);\nObject.defineProperty(nonExtensible, &quot;new&quot;, { value: 8675309 }); // throws a TypeError\n\n// In strict mode, attempting to add new properties to a non-extensible object throws a TypeError.\nfunction fail()\n{\n  &quot;use strict&quot;;\n  nonExtensible.newProperty = &quot;FAIL&quot;; // throws a TypeError\n}\nfail();\n\n// EXTENSION (only works in engines supporting __proto__ (which is deprecated. Use Object.getPrototypeOf instead)): A non-extensible object's prototype is immutable.\nvar fixed = Object.preventExtensions({});\nfixed.__proto__ = { oh: &quot;hai&quot; }; // throws a TypeError</pre>\r\n         </div>",
			"<div id = \"section_6\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>6</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5.1</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p></div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><strong><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\"><code>Object.isExtensible</code></a></strong></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code>Object.seal</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isSealed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed\"><code>Object.isSealed</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/freezed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze\"><code>Object.freeze</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isFrozen\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isFrozen\"><code>Object.isFrozen</code></a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Cross-browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible",
		"title": "Object.isExtensible",
		"_id": "4eea8538a4c86c4dba0000e2",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Determines if an object is extensible (whether it can have new properties added to it).</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.isExtensible(<em>obj</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>obj</dt> <dd>The object which should be checked.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>Objects are extensible by default: they can have new properties added to them, and (in engines that support <code><a title = \"en/JavaScript/Reference/Global Objects/Object/proto\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/proto\">__proto__</a></code> \n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n their __proto__ property) can be modified. An object can be marked as non-extensible using <code><a title = \"en/Core\nJavaScript 1.5 Reference/Global Objects/Object/preventExtensions\" style = \"text-decoration: none; color: rgb(4, 137, 183) !important; cursor: default; \" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions\">Object.preventExtensions</a></code>, <code style = \"color: inherit; font-weight: inherit; text-decoration: none; cursor: default; \"><a title = \"en/Core\nJavaScript 1.5 Reference/Global Objects/Object/seal\" style = \"text-decoration: none; color: rgb(4, 137, 183) !important; cursor: default; \" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\">Object.seal</a></code>, or <code style = \"color: inherit; font-weight: inherit; text-decoration: none; cursor: default; \"><a title = \"en/Core\nJavaScript 1.5 Reference/Global Objects/Object/freezed\" style = \"text-decoration: none; color: rgb(4, 137, 183) !important; cursor: default; \" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze\">Object.freeze</a></code>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n\r\n          <pre name = \"code\" class = \"js\">// New objects are extensible.\nvar empty = {};\nassert(Object.isExtensible(empty) === true);\n\n// ...but that can be changed.\nObject.preventExtensions(empty);\nassert(Object.isExtensible(empty) === false);\n\n// Sealed objects are by definition non-extensible.\nvar sealed = Object.seal({});\nassert(Object.isExtensible(sealed) === false);\n\n// Frozen objects are also by definition non-extensible.\nvar frozen = Object.freeze({});\nassert(Object.isExtensible(frozen) === false);</pre>\r\n         </div>",
			"<div id = \"section_6\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>6</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5.1</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p></div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><strong><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/preventExtensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions\"><code>Object.preventExtensions</code></a></strong></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code>Object.seal</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isSealed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed\"><code>Object.isSealed</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/freezed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze\"><code>Object.freeze</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isFrozen\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isFrozen\"><code>Object.isFrozen</code></a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Cross-browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal",
		"title": "Object.seal",
		"_id": "4eea853ba4c86c4dba0000e3",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed as long as they are writable.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.seal(<em>obj</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>obj</dt> <dd>The object which should be sealed.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>By default objects are <a title = \"en/JavaScript/Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\">extensible</a> (new properties can be added to them). Sealing an object prevents new properties from being added and marks all existing properties as non-configurable. This has the effect of making the set of properties on the object fixed and immutable. Making all properties non-configurable also prevents them from being converted from data properties to accessor properties and vice versa, but it does not prevent the values of data properties from being changed. Attempting to delete or add properties to a sealed object, or to convert a data property to accessor or vice versa, will fail, either silently or by throwing a <code>TypeError</code> (most commonly, although not exclusively, when in <a title = \"en/JavaScript/Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Strict_mode\">strict mode</a>&nbsp;code).</p>\n<p>The prototype chain remains untouched. However, the <a title = \"en/JavaScript/Reference/Global Objects/Object/proto\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/proto\">__proto__</a> ( \n\n<span class = \"deprecatedInlineTemplate\" style = \"border: 1px solid #5151FF; background-color: #B9B9FF; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Deprecated</span>\n\n ) property is sealed as well.</p>\n<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">var obj = {\n    prop: function () {},\n    foo: &quot;bar&quot;\n  };\n\n// New properties may be added, existing properties may be changed or removed\nobj.foo = &quot;baz&quot;;\nobj.lumpy = &quot;woof&quot;;\ndelete obj.prop;\n\nvar o = Object.seal(obj);\nassert(o === obj);\nassert(Object.isSealed(obj) === true);\n\n// Changing property values on a sealed object still works.\nobj.foo = &quot;quux&quot;;\n\n// But you can't convert data properties to accessors, or vice versa.\nObject.defineProperty(obj, &quot;foo&quot;, { get: function() { return &quot;g&quot;; } }); // throws a TypeError\n\n// Now any changes, other than to property values, will fail.\nobj.quaxxor = &quot;the friendly duck&quot;; // silently doesn't add the property\ndelete obj.foo; // silently doesn't delete the property\n\n// ...and in strict mode such attempts will throw TypeErrors\nfunction fail() {\n  &quot;use strict&quot;;\n  delete obj.foo; // throws a TypeError\n  obj.sparky = &quot;arf&quot;; // throws a TypeError\n}\nfail();\n\n// Attempted additions through Object.defineProperty will also throw\nObject.defineProperty(obj, &quot;ohai&quot;, { value: 17 }); // throws a TypeError\nObject.defineProperty(obj, &quot;foo&quot;, { value: &quot;eit&quot; }); // throws a TypeError</pre>\r\n         </div></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">var obj = {\n    prop: function () {},\n    foo: &quot;bar&quot;\n  };\n\n// New properties may be added, existing properties may be changed or removed\nobj.foo = &quot;baz&quot;;\nobj.lumpy = &quot;woof&quot;;\ndelete obj.prop;\n\nvar o = Object.seal(obj);\nassert(o === obj);\nassert(Object.isSealed(obj) === true);\n\n// Changing property values on a sealed object still works.\nobj.foo = &quot;quux&quot;;\n\n// But you can't convert data properties to accessors, or vice versa.\nObject.defineProperty(obj, &quot;foo&quot;, { get: function() { return &quot;g&quot;; } }); // throws a TypeError\n\n// Now any changes, other than to property values, will fail.\nobj.quaxxor = &quot;the friendly duck&quot;; // silently doesn't add the property\ndelete obj.foo; // silently doesn't delete the property\n\n// ...and in strict mode such attempts will throw TypeErrors\nfunction fail() {\n  &quot;use strict&quot;;\n  delete obj.foo; // throws a TypeError\n  obj.sparky = &quot;arf&quot;; // throws a TypeError\n}\nfail();\n\n// Attempted additions through Object.defineProperty will also throw\nObject.defineProperty(obj, &quot;ohai&quot;, { value: 17 }); // throws a TypeError\nObject.defineProperty(obj, &quot;foo&quot;, { value: &quot;eit&quot; }); // throws a TypeError</pre>\r\n         </div>",
			"<div id = \"section_6\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>6</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5.1</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p></div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><strong><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isSealed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed\"><code>Object.isSealed</code></a></strong></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/preventExtensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions\"><code>Object.preventExtensions</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\"><code>Object.isExtensible</code></a><strong><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isSealed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed\"><code><br/> </code></a></strong></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/freezed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze\"><code>Object.freeze</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isFrozen\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isFrozen\"><code>Object.isFrozen</code></a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Cross-browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze",
		"title": "Object.freeze",
		"_id": "4eea853da4c86c4dba0000e4",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being changed.&nbsp;In essence the object is made effectively immutable. The method returns the object being frozen.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.freeze(<em>obj</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>obj</dt> <dd>The object which should be frozen.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>Nothing can be added to or removed from the properties set of a frozen object. Any attempt to do so will fail, either silently or by throwing a <code>TypeError</code> exception (most commonly, but not exclusively, when in <a title = \"en/JavaScript/Strict mode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Strict_mode\">strict mode</a>).</p>\n<p>Values cannot be changed for data properties. Accessor properties (getters and setters) work the same (and still give the illusion that you are changing the value)</p>\n<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">var obj = {\n  prop: function (){},\n  foo: &quot;bar&quot;\n};\n\n// New properties may be added, existing properties may be changed or removed\nobj.foo = &quot;baz&quot;;\nobj.lumpy = &quot;woof&quot;;\ndelete obj.prop;\n\nvar o = Object.freeze(obj);\n\nassert(Object.isFrozen(obj) === true);\n\n// Now any changes will fail\nobj.foo = &quot;quux&quot;; // silently does nothing\nobj.quaxxor = &quot;the friendly duck&quot;; // silently doesn't add the property\n\n// ...and in strict mode such attempts will throw TypeErrors\nfunction fail(){\n  &quot;use strict&quot;;\n  obj.foo = &quot;sparky&quot;; // throws a TypeError\n  delete obj.quaxxor; // throws a TypeError\n  obj.sparky = &quot;arf&quot;; // throws a TypeError\n}\nfail();\n\n// Attempted changes through Object.defineProperty will also throw\nObject.defineProperty(obj, &quot;ohai&quot;, { value: 17 }); // throws a TypeError\nObject.defineProperty(obj, &quot;foo&quot;, { value: &quot;eit&quot; }); // throws a TypeError</pre>\r\n        \n</div></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">var obj = {\n  prop: function (){},\n  foo: &quot;bar&quot;\n};\n\n// New properties may be added, existing properties may be changed or removed\nobj.foo = &quot;baz&quot;;\nobj.lumpy = &quot;woof&quot;;\ndelete obj.prop;\n\nvar o = Object.freeze(obj);\n\nassert(Object.isFrozen(obj) === true);\n\n// Now any changes will fail\nobj.foo = &quot;quux&quot;; // silently does nothing\nobj.quaxxor = &quot;the friendly duck&quot;; // silently doesn't add the property\n\n// ...and in strict mode such attempts will throw TypeErrors\nfunction fail(){\n  &quot;use strict&quot;;\n  obj.foo = &quot;sparky&quot;; // throws a TypeError\n  delete obj.quaxxor; // throws a TypeError\n  obj.sparky = &quot;arf&quot;; // throws a TypeError\n}\nfail();\n\n// Attempted changes through Object.defineProperty will also throw\nObject.defineProperty(obj, &quot;ohai&quot;, { value: 17 }); // throws a TypeError\nObject.defineProperty(obj, &quot;foo&quot;, { value: &quot;eit&quot; }); // throws a TypeError</pre>\r\n        \n</div>",
			"<div id = \"section_6\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>6</td> <td>9</td> <td>12</td> <td>5.1</td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><strong><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isFrozen\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isFrozen\"><code>Object.isFrozen</code></a></strong></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/preventExtensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions\"><code>Object.preventExtensions</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\"><code>Object.isExtensible</code></a><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><br/> <code> </code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code>Object.seal</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isSealed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed\"><code>Object.isSealed</code></a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed",
		"title": "Object.isSealed",
		"_id": "4eea853da4c86c4dba0000e5",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Determine if an object is sealed.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.isSealed(<em>obj</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>obj</dt> <dd>The object which should be checked.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>Returns true if the object is sealed, otherwise false. An object is sealed if it is <a title = \"en/JavaScript/Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\">non-extensible</a> and if all its properties are non-configurable and therefore not removable (but not necessarily non-writable).</p>\n<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">// Objects aren't sealed by default.\nvar empty = {};\nassert(Object.isSealed(empty) === false);\n\n// If you make an empty object non-extensible, it is vacuously sealed.\nObject.preventExtensions(empty);\nassert(Object.isSealed(empty) === true);\n\n// The same is not true of a non-empty object, unless its properties are all non-configurable.\nvar hasProp = { fee: &quot;fie foe fum&quot; };\nObject.preventExtensions(hasProp);\nassert(Object.isSealed(hasProp) === false);\n\n// But make them all non-configurable and the object becomes sealed.\nObject.defineProperty(hasProp, &quot;fee&quot;, { configurable: false });\nassert(Object.isSealed(hasProp) === true);\n\n// The easiest way to seal an object, of course, is Object.seal.\nvar sealed = {};\nObject.seal(sealed);\nassert(Object.isSealed(sealed) === true);\n\n// A sealed object is, by definition, non-extensible.\nassert(Object.isExtensible(sealed) === false);\n\n// A sealed object might be frozen, but it doesn't have to be.\nassert(Object.isFrozen(sealed) === true); // all properties also non-writable\n\nvar s2 = Object.seal({ p: 3 });\nassert(Object.isFrozen(s2) === false); // &quot;p&quot; is still writable\n\nvar s3 = Object.seal({ get p() { return 0; } });\nassert(Object.isFrozen(s3) === true); // only configurability matters for accessor properties</pre>\r\n         </div></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">// Objects aren't sealed by default.\nvar empty = {};\nassert(Object.isSealed(empty) === false);\n\n// If you make an empty object non-extensible, it is vacuously sealed.\nObject.preventExtensions(empty);\nassert(Object.isSealed(empty) === true);\n\n// The same is not true of a non-empty object, unless its properties are all non-configurable.\nvar hasProp = { fee: &quot;fie foe fum&quot; };\nObject.preventExtensions(hasProp);\nassert(Object.isSealed(hasProp) === false);\n\n// But make them all non-configurable and the object becomes sealed.\nObject.defineProperty(hasProp, &quot;fee&quot;, { configurable: false });\nassert(Object.isSealed(hasProp) === true);\n\n// The easiest way to seal an object, of course, is Object.seal.\nvar sealed = {};\nObject.seal(sealed);\nassert(Object.isSealed(sealed) === true);\n\n// A sealed object is, by definition, non-extensible.\nassert(Object.isExtensible(sealed) === false);\n\n// A sealed object might be frozen, but it doesn't have to be.\nassert(Object.isFrozen(sealed) === true); // all properties also non-writable\n\nvar s2 = Object.seal({ p: 3 });\nassert(Object.isFrozen(s2) === false); // &quot;p&quot; is still writable\n\nvar s3 = Object.seal({ get p() { return 0; } });\nassert(Object.isFrozen(s3) === true); // only configurability matters for accessor properties</pre>\r\n         </div>",
			"<div id = \"section_6\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>6</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5.1</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p></div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><strong><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code>Object.seal</code></a></strong></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/preventExtensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions\"><code>Object.preventExtensions</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\"><code>Object.isExtensible</code></a><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code><br/> </code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/freezed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze\"><code>Object.freeze</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isFrozen\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isFrozen\"><code>Object.isFrozen</code></a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Cross-browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isFrozen",
		"title": "Object.isFrozen",
		"_id": "4eea853da4c86c4dba0000e6",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Determine if an object is frozen.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.5</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>Object.isFrozen(<em>obj</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt>obj</dt> <dd>The object which should be checked.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>An object is frozen if and only if it is not <a title = \"en/JavaScript/Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\">extensible</a>, all its properties are&nbsp;non-configurable, and all its data properties (that is, properties which are not accessor properties with getter or setter components) are non-writable.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">// A new object is extensible, so it is not frozen.\nassert(Object.isFrozen({}) === false);\n\n// An empty object which is not extensible is vacuously frozen.\nvar vacuouslyFrozen = Object.preventExtensions({});\nassert(Object.isFrozen(vacuouslyFrozen) === true);\n\n// A new object with one property is also extensible, ergo not frozen.\nvar oneProp = { p: 42 };\nassert(Object.isFrozen(oneProp) === false);\n\n// Preventing extensions to the object still doesn't make it frozen,\n// because the property is still configurable (and writable).\nObject.preventExtensions(oneProp);\nassert(Object.isFrozen(oneProp) === false);\n\n// ...but then deleting that property makes the object vacuously frozen.\ndelete oneProp.p;\nassert(Object.isFrozen(oneProp) === true);\n\n// A non-extensible object with a non-writable but still configurable property is not frozen.\nvar nonWritable = { e: &quot;plep&quot; };\nObject.preventExtensions(nonWritable);\nObject.defineProperty(nonWritable, &quot;e&quot;, { writable: false }); // make non-writable\nassert(Object.isFrozen(nonWritable) === false);\n\n// Changing that property to non-configurable then makes the object frozen.\nObject.defineProperty(nonWritable, &quot;e&quot;, { configurable: false }); // make non-configurable\nassert(Object.isFrozen(nonWritable) === true);\n\n// A non-extensible object with a non-configurable but still writable property also isn't frozen.\nvar nonConfigurable = { release: &quot;the kraken!&quot; };\nObject.preventExtensions(nonConfigurable);\nObject.defineProperty(nonConfigurable, &quot;release&quot;, { configurable: false });\nassert(Object.isFrozen(nonConfigurable) === false);\n\n// Changing that property to non-writable then makes the object frozen.\nObject.defineProperty(nonConfigurable, &quot;release&quot;, { writable: false });\nassert(Object.isFrozen(nonConfigurable) === true);\n\n// A non-extensible object with a configurable accessor property isn't frozen.\nvar accessor = { get food() { return &quot;yum&quot;; } };\nObject.preventExtensions(accessor);\nassert(Object.isFrozen(accessor) === false);\n\n// ...but make that property non-configurable and it becomes frozen.\nObject.defineProperty(accessor, &quot;food&quot;, { configurable: false });\nassert(Object.isFrozen(accessor) === true);\n\n// But the easiest way for an object to be frozen is if Object.freeze has been called on it.\nvar frozen = { 1: 81 };\nassert(Object.isFrozen(frozen) === false);\nObject.freeze(frozen);\nassert(Object.isFrozen(frozen) === true);\n\n// By definition, a frozen object is non-extensible.\nassert(Object.isExtensible(frozen) === false);\n\n// Also by definition, a frozen object is sealed.\nassert(Object.isSealed(frozen) === true);</pre>\r\n        \n<div id = \"section_6\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>6</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5.1</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><strong><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/freezed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze\"><code>Object.freeze</code></a></strong><strong><code><br/> </code></strong></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/preventExtensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions\"><code>Object.preventExtensions</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\"><code>Object.isExtensible</code></a><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code><br/> </code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code>Object.seal</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isSealed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed\"><code>Object.isSealed</code></a></li>\n</ul></div></div></div>",
			"<div id = \"section_6\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>4 (2.0)</td> <td>6</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5.1</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><strong><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/freezed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze\"><code>Object.freeze</code></a></strong><strong><code><br/> </code></strong></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/preventExtensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions\"><code>Object.preventExtensions</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\"><code>Object.isExtensible</code></a><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code><br/> </code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code>Object.seal</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isSealed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed\"><code>Object.isSealed</code></a></li>\n</ul></div></div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><strong><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/freezed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze\"><code>Object.freeze</code></a></strong><strong><code><br/> </code></strong></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/preventExtensions\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions\"><code>Object.preventExtensions</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\"><code>Object.isExtensible</code></a><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code><br/> </code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/seal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal\"><code>Object.seal</code></a></li> <li><a title = \"en/Core\n    JavaScript 1.5 Reference/Global Objects/Object/isSealed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed\"><code>Object.isSealed</code></a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Browser compatibility",
			"Browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor",
		"title": "Object.constructor",
		"_id": "4eea853da4c86c4dba0000e7",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a reference to the <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name, but it isn't read only (except for primitive Boolean, Number or String values: 1, true, &quot;read-only&quot;).</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>All objects inherit a <code>constructor</code> property from their <code>prototype</code>:</p>\n<pre>\no = new Object // or o = {} in JavaScript 1.2\no.constructor == Object\na = new Array // or a = [] in JavaScript 1.2\na.constructor == Array\nn = new Number(3)\nn.constructor == Number\n</pre>\n<p>Even though you cannot construct most HTML objects, you can do comparisons. For example,</p>\n<pre>\ndocument.constructor == Document\ndocument.form3.constructor == Form\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_4\"><span id = \"Example:_Displaying_the_constructor_of_an_object\"></span><h4 class = \"editable\">Example: Displaying the constructor of an object</h4>\n<p>The following example creates a prototype, <code>Tree</code>, and an object of that type, <code>theTree</code>. The example then displays the <code>constructor</code> property for the object <code>theTree</code>.</p>\n<pre>\nfunction Tree(name) {\n   this.name = name;\n}\ntheTree = new Tree(&quot;Redwood&quot;);\nconsole.log(&quot;theTree.constructor is &quot; + theTree.constructor);\n</pre>\n<p>This example displays the following output:</p>\n<pre class = \"eval\">\ntheTree.constructor is function Tree(name) {\n    this.name = name;\n}\n</pre>\n</div><div id = \"section_5\"><span id = \"Example:_Changing_the_constructor_of_an_object\"></span><h4 class = \"editable\">Example: Changing the constructor of an object</h4>\n<p>The following example shows how to modify constructor value of generic objects. Only true, 1 and &quot;test&quot; variable constructors will not be changed. This example explains that is not always so safe to believe in constructor function.</p>\n<pre>\nfunction Type(){};\nvar\ttypes = [\n\tnew Array,\t[],\n\tnew Boolean,\ttrue,\n\tnew Date,\n\tnew Error,\n\tnew Function,\tfunction(){},\n\tMath,\t\n\tnew Number,\t1,\n\tnew Object,\t{},\n\tnew RegExp,\t/(?:)/,\n\tnew String,\t&quot;test&quot;\n];\nfor(var i = 0; i &lt; types.length; i++){\n\ttypes[i].constructor = Type;\n\ttypes[i] = [types[i].constructor, types[i] instanceof Type, types[i].toString()];\n};\nalert(types.join(&quot;\\n&quot;));\n</pre>\n<p></p></div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Displaying_the_constructor_of_an_object\"></span><h4 class = \"editable\">Example: Displaying the constructor of an object</h4>\n<p>The following example creates a prototype, <code>Tree</code>, and an object of that type, <code>theTree</code>. The example then displays the <code>constructor</code> property for the object <code>theTree</code>.</p>\n<pre>\nfunction Tree(name) {\n   this.name = name;\n}\ntheTree = new Tree(&quot;Redwood&quot;);\nconsole.log(&quot;theTree.constructor is &quot; + theTree.constructor);\n</pre>\n<p>This example displays the following output:</p>\n<pre class = \"eval\">\ntheTree.constructor is function Tree(name) {\n    this.name = name;\n}\n</pre>\n</div>",
			"<div id = \"section_5\"><span id = \"Example:_Changing_the_constructor_of_an_object\"></span><h4 class = \"editable\">Example: Changing the constructor of an object</h4>\n<p>The following example shows how to modify constructor value of generic objects. Only true, 1 and &quot;test&quot; variable constructors will not be changed. This example explains that is not always so safe to believe in constructor function.</p>\n<pre>\nfunction Type(){};\nvar\ttypes = [\n\tnew Array,\t[],\n\tnew Boolean,\ttrue,\n\tnew Date,\n\tnew Error,\n\tnew Function,\tfunction(){},\n\tMath,\t\n\tnew Number,\t1,\n\tnew Object,\t{},\n\tnew RegExp,\t/(?:)/,\n\tnew String,\t&quot;test&quot;\n];\nfor(var i = 0; i &lt; types.length; i++){\n\ttypes[i].constructor = Type;\n\ttypes[i] = [types[i].constructor, types[i] instanceof Type, types[i].toString()];\n};\nalert(types.join(&quot;\\n&quot;));\n</pre>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Examples",
			"Example: Displaying the constructor of an object",
			"Example: Changing the constructor of an object"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/proto",
		"title": "Object.proto",
		"_id": "4eea8540a4c86c4dba0000e8",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Refers to the prototype of the object, which may be an object or <code>null</code>&nbsp;(which usually means the object is <code>Object.prototype</code>, which has no prototype). &nbsp;It is sometimes used to implement prototype-inheritance based property lookup.</p>\n<p>This property is deprecated and should not be used in new code: use <code><a title = \"en/JavaScript/Reference/Global Objects/Object/GetPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf\">Object.getPrototypeOf</a></code>&nbsp;instead.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>var proto = <em>obj</em>.__proto__;</code></p>\n<p>Note: this is two underscores, followed by the five characters &quot;proto&quot;, followed by two more underscores.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>When an object is created, its <code>__proto__</code> property is set to constructing function's <code>prototype</code> property. For example <code>var fred = new Employee();</code> will cause <code>fred.__proto__ = Employee.prototype;</code>.</p>\n<p>This is used at runtime to look up properties which are not declared in the object directly. E.g. when <code>fred.doSomething()</code> is executed and <code>fred</code> does not contain a <code>doSomething</code>, <code>fred.__proto__</code> is checked, which points to <code>Employee.prototype</code>, which contains a <code>doSomething</code>, i.e. <code>fred.__proto__.doSomething()</code> is invoked.</p>\n<p>Note that <code><em>__proto__</em></code> is a property of the instances, whereas <code>prototype</code> is a property of their constructor functions.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n<p>This example demonstrates that the <code>__proto__</code> property can be changed to point to a different object after initial construction. This change will alter the lookup results for object properties. This example also illustrates that all objects have <code>__proto__</code>, including the objects bound to the <code>prototype</code> property of functions. The object <code> anOnion</code> will have a <code>__proto__</code> property equal to <code>Plant.prototype</code>; if we write <code>anOnion.foo</code>, then we will lookup <code>foo</code> in the <code>anOnion</code> object first, then in <code>Plant.prototype</code> (the value of <code>anOnion.__proto__</code>), then in <code>Lifeform.prototype</code> (the value of <code>Plant.prototype</code> set by the call to <code>extend</code><code>()</code>), and finally in <code>Lifeform.__proto__</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">function extend(child, supertype) {\n   child.prototype.__proto__ = supertype.prototype;\n}\n\nextend(Animal, Lifeform);\nextend(Plant, Lifeform);\n\nvar anOnion = new Plant();</pre>\r\n        \n<p>However, this only applies to <a title = \"en/JavaScript/Reference/Global Objects/Object/isExtensible\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible\">extensible</a> objects:&nbsp;a non-extensible object's&nbsp;<code style = \"color: inherit; font-weight: inherit; \">__proto__</code>&nbsp;property (more generally, the object's prototype) cannot be changed:</p>\n\r\n          <pre name = \"code\" class = \"js\">var obj = {};\nObject.preventExtensions(obj);\n\nobj.__proto__ = {}; // throws a TypeError</pre>\r\n        \n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Description",
			"Example"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter",
		"title": "Object.defineGetter",
		"_id": "4eea8540a4c86c4dba0000e9",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Binds an object's property to a function to be called when that property is looked up.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.__defineGetter__(<em>sprop</em>, <em>fun</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>sprop</code></dt> <dd>a string containing the name of the property to bind to the given function</dd>\n</dl>\n<dl> <dt><code>fun</code></dt> <dd>a function to be bound to a lookup of the specified property</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>__defineGetter__</code> allows a <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/get_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/get\">getter</a> to be defined on a pre-existing object.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Operators/Special_Operators/get_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/get\">get</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupGetter\">__lookupGetter__</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Creating_New_Objects/Defining_Getters_and_Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters\">JS Guide:Defining Getters and Setters</a></li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter",
		"title": "Object.defineSetter",
		"_id": "4eea8541a4c86c4dba0000ea",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Binds an object's property to a function to be called when an attempt is made to set that property.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.__defineSetter__(<em>sprop</em>, <em>fun</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>sprop</code></dt> <dd>a string containing the name of the property to be bound to the given function</dd>\n</dl>\n<dl> <dt><code>fun</code></dt> <dd>a function to be called when there is an attempt to set the specified property. This function takes the form</dd> <dd><code>function (<em>val</em>) { .&nbsp;.&nbsp;. }</code> <dl> <dt><code>val</code></dt> <dd>an alias for the variable that holds the value attempted to be assigned to <code>prop</code></dd> </dl> </dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>__defineSetter__</code> method allows a <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/set_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/set\">setter</a> to be defined on a pre-existing object.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Operators/Special_Operators/set_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/set\">set</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/lookupSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupSetter\">__lookupSetter__</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Creating_New_Objects/Defining_Getters_and_Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters\">JS Guide:Defining Getters and Setters</a></li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/eval",
		"title": "Object.eval",
		"_id": "4eea8541a4c86c4dba0000eb",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Evaluates a string of JavaScript code in the context of an object.</p></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>object</em>.eval(<em>string</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>string</code>&nbsp;</dt> <dd>Any string representing a JavaScript expression, statement, or sequence of statements. The expression can include variables and properties of existing objects.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>eval</code> method can't no longer be used as a method of <code>Object</code>. Use the top-level <code><a title = \"en/JavaScript/Reference/Global_Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a></code> function instead.</p></div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Functions/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/hasOwnProperty",
		"title": "Object.hasOwnProperty",
		"_id": "4eea8542a4c86c4dba0000ec",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a boolean indicating whether the object has the specified property.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.hasOwnProperty(<em>prop</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>prop</code></dt> <dd>The name of the property to test.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Every object descended from <code>Object</code> inherits the <code>hasOwnProperty</code> method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the <a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/in_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/in\"><code>in</code></a> operator, this method does not check down the object's prototype chain.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_hasOwnProperty_to_test_for_a_property.27s_existence\"></span><span id = \"Example:_Using_hasOwnProperty_to_test_for_a_property's_existence\"></span><h4 class = \"editable\">Example: Using <code>hasOwnProperty</code> to test for a property's existence</h4>\n<p>The following example determines whether the <code>o</code> object contains a property named <code>prop</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">o = new Object();\no.prop = 'exists';\n\nfunction changeO() {\n  o.newprop = o.prop;\n  delete o.prop;\n}\n\no.hasOwnProperty('prop');   //returns true\nchangeO();\no.hasOwnProperty('prop');   //returns false</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Example:_Direct_versus_inherited_properties\"></span><h4 class = \"editable\">Example: Direct versus inherited properties</h4>\n<p>The following example differentiates between direct properties and properties inherited through the prototype chain:</p>\n\r\n          <pre name = \"code\" class = \"js\">o = new Object();\no.prop = 'exists';\no.hasOwnProperty('prop');             // returns true\no.hasOwnProperty('toString');         // returns false\no.hasOwnProperty('hasOwnProperty');   // returns false</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example:_Itarate_over_properties_not_considering_inherited_properties\"></span><span id = \"Example:_Iterating_over_the_properties_of_an_object\"></span><h4 class = \"editable\">Example: Iterating over the properties of an object</h4>\n<p>The following example shows how to iterate over the properties of an object without executing on inherit properties.</p>\n\r\n          <pre name = \"code\" class = \"js\">var buz = {\n    fog: 'stack'\n};\n\nfor (var name in buz) {\n    if (buz.hasOwnProperty(name)) {\n        alert(&quot;this is fog (&quot; + name + &quot;) for sure. Value: &quot; + buz[name]);\n    }\n    else {\n        alert(name); // toString or something else\n    }\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_hasOwnProperty_to_test_for_a_property.27s_existence\"></span><span id = \"Example:_Using_hasOwnProperty_to_test_for_a_property's_existence\"></span><h4 class = \"editable\">Example: Using <code>hasOwnProperty</code> to test for a property's existence</h4>\n<p>The following example determines whether the <code>o</code> object contains a property named <code>prop</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">o = new Object();\no.prop = 'exists';\n\nfunction changeO() {\n  o.newprop = o.prop;\n  delete o.prop;\n}\n\no.hasOwnProperty('prop');   //returns true\nchangeO();\no.hasOwnProperty('prop');   //returns false</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Direct_versus_inherited_properties\"></span><h4 class = \"editable\">Example: Direct versus inherited properties</h4>\n<p>The following example differentiates between direct properties and properties inherited through the prototype chain:</p>\n\r\n          <pre name = \"code\" class = \"js\">o = new Object();\no.prop = 'exists';\no.hasOwnProperty('prop');             // returns true\no.hasOwnProperty('toString');         // returns false\no.hasOwnProperty('hasOwnProperty');   // returns false</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Itarate_over_properties_not_considering_inherited_properties\"></span><span id = \"Example:_Iterating_over_the_properties_of_an_object\"></span><h4 class = \"editable\">Example: Iterating over the properties of an object</h4>\n<p>The following example shows how to iterate over the properties of an object without executing on inherit properties.</p>\n\r\n          <pre name = \"code\" class = \"js\">var buz = {\n    fog: 'stack'\n};\n\nfor (var name in buz) {\n    if (buz.hasOwnProperty(name)) {\n        alert(&quot;this is fog (&quot; + name + &quot;) for sure. Value: &quot; + buz[name]);\n    }\n    else {\n        alert(name); // toString or something else\n    }\n}</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in\">for...in</a><br/>\n<a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/in_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/in\">in</a><br/>\n<a title = \"https://developer.mozilla.org/en/JavaScript/Guide/Inheritance_Revisited\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Inheritance_Revisited\">inheritance</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using hasOwnProperty to test for a property's existence",
			"Example: Direct versus inherited properties",
			"Example: Iterating over the properties of an object",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf",
		"title": "Object.isPrototypeOf",
		"_id": "4eea8545a4c86c4dba0000ed",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Tests for an object in another object's prototype chain.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>prototype</em>.isPrototypeOf(<em>object</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>prototype</dt> <dd>&nbsp; an object to be tested against each link in the prototype chain of the <strong>object</strong>&nbsp; argument</dd>\n</dl>\n<p><div class = \"note\"><strong>Note:</strong>&nbsp;<code>isPrototypeOf</code> differs from <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/instanceof_Operator\" title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/instanceof_Operator\">instanceof operator</a>. In the expression <code>object instanceof AFunction</code>, the <code>object</code> prototype chain is checked against <code>AFunction.prototype</code>, not against <code>AFunction</code> itself</div>\n</p>\n<dl> <dt>object</dt> <dd>the object whose prototype chain will be searched</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code>isPrototypeOf</code> allows you to check whether or not an object exists within another object's prototype chain.</p>\n<p>For example, consider the following prototype chain:</p>\n<pre class = \"eval\">function Fee() {\n  // . . .\n}\n\nfunction Fi() {\n  // . . .\n}\nFi.prototype = new Fee();\n\nfunction Fo() {\n  // . . .\n}\nFo.prototype = new Fi();\n\nfunction Fum() {\n  // . . .\n}\nFum.prototype = new Fo();\n</pre>\n<p>Later on down the road, if you instantiate <code>Fum</code> and need to check if <code>Fi</code>'s prototype exists within the <code>Fum</code> prototype chain, you could do this:</p>\n<pre class = \"eval\">var fum = new Fum();\n. . .\n\nif (Fi.prototype.isPrototypeOf(fum)) {\n  // do something safe\n}\n</pre>\n<p>This, along with the <code>instanceof</code> operator particularly comes in handy if you have code that can only function when dealing with objects descended from a specific prototype chain, e.g., to guarantee that certain methods or properties will be present on that object.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/instanceof_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/instanceof\">instanceof</a></li> <li><a class = \"internal\" title = \"En/Core JavaScript 1.5 Reference/Global Objects/Object/GetPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf\">getProtoypeOf</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupGetter",
		"title": "Object.lookupGetter",
		"_id": "4eea8545a4c86c4dba0000ee",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Return the function bound as a getter to the specified property.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None, but see <a title = \"en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor\">getOwnPropertyDescriptor</a> and <a title = \"en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf\">getPrototypeOf</a>.</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.__lookupGetter__(<em>sprop</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>sprop</code></dt> <dd>a string containing the name of the property whose getter should be returned</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If a getter has been defined for an object's property, it's not possible to reference the getter function through that property, because that property refers to the return value of that function. <code>__lookupGetter__</code> can be used to obtain a reference to the getter function.</p>\n<p>It is now possible to do this in a standardized way using <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor\" title = \"en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor\">getOwnPropertyDescriptor</a> and <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/getPrototypeOf\">getPrototypeOf</a>.</p></div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/get_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/get\">get</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/defineGetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineGetter\">__defineGetter__</a></li> <li><a class = \"internal\" title = \"en/Core JavaScript 1.5 Reference/Global Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Creating_New_Objects/Defining_Getters_and_Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters\">JS Guide:Defining Getters and Setters</a></li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/noSuchMethod",
		"title": "Object.noSuchMethod",
		"_id": "4eea8545a4c86c4dba0000ef",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Executes a function when a non-existent method is called on an object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>obj</em>.__noSuchMethod__ = <em>fun</em></code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>fun</code></dt> <dd>a function that takes the form</dd> <dd><code>function (<em>id</em>, <em>args</em>) { .&nbsp;.&nbsp;. }</code> <dl> <dt><code>id</code></dt> <dd>the name of the non-existent method that was called</dd> <dt><code>args</code></dt> <dd>an array of the arguments passed to the method</dd> </dl> </dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>By default, an attempt to call a method that doesn't exist on an object results in a <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/TypeError\">TypeError</a> being thrown. This behavior can be circumvented by defining a function at that object's <code>__noSuchMethod__</code> member. The function takes two arguments, the first is the name of the method attempted and the second is an array of the arguments that were passed in the method call. The second argument is an actual array (that is, it inherits through the <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/prototype\">Array prototype</a> chain) and not the array-like <a title = \"en/Core_JavaScript_1.5_Reference/Functions/arguments\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments object</a>.</p>\n<p>If this method cannot be called, either as if <code>undefined</code> by default, if deleted, or if manually set to a non-function, the JavaScript engine will revert to throwing <code>TypeError</code>s.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n<p><code>__noSuchMethod__</code> can be used to simulate multiple inheritance.</p>\n<p>An example of code that implements a primitive form of multiple inheritance is shown below.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Doesn't work with multiple inheritance objects as parents\n\nfunction noMethod(name, args) {\n  var parents=this.__parents_;\n  \n  // Go through all parents\n  \n  for (var i=0;i&lt;parents.length;i++) {\n    // If we find a function on the parent, we call it\n    if (typeof parents[i][name] ==&quot;function&quot;) {\n      return parents[i][name].apply(this, args);\n    }\n  }\n  \n  // If we get here, the method hasn't been found\n  \n  throw new TypeError;\n}\n\n// Used to add a parent for multiple inheritance\n\nfunction addParent(obj, parent) {\n  // If the object isn't initialized, initialize it\n  \n  if (!obj.__parents_) {\n    obj.__parents_=[];\n    obj.__noSuchMethod__=noMethod;\n  }\n  \n  // Add the parent\n  \n  obj.__parents_.push(parent);\n}</pre>\r\n        \n<p>An example of using this idea is shown below.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Example base class 1\n\nfunction NamedThing(name){\n  this.name=name;\n}\n\nNamedThing.prototype = {\n  getName: function() {return this.name;},\n  setName: function(newName) {this.name=newName;}\n}\n\n//Example base class 2\n\nfunction AgedThing(age){\n  this.age=age;\n}\n\nAgedThing.prototype = {\n  getAge: function(){return this.age;},\n  setAge: function(age){this.age=age;}\n}\n\n// Child class. inherits from NamedThing and AgedThing as well as defining address\n\nfunction Person(name, age, address){\n  addParent(this, NamedThing.prototype);\n  NamedThing.call(this, name);\n  addParent(this, AgedThing.prototype);\n  AgedThing.call(this, age);\n  this.address=address;\n}\n\nPerson.prototype = {\n  getAddr: function() {return this.address;},\n  setAddr: function(addr) {this.address=addr;}\n}\n\nvar bob=new Person(&quot;bob&quot;, 25, &quot;New York&quot;);\n\nconsole.log(&quot;getAge is &quot;+((&quot;getAge&quot; in bob)?&quot;in&quot;:&quot;not in&quot;)+&quot; bob&quot;);\nconsole.log(&quot;bob's age is: &quot;+bob.getAge());\nconsole.log(&quot;getName is &quot;+((&quot;getName&quot; in bob)?&quot;in&quot;:&quot;not in&quot;)+&quot; bob&quot;);\nconsole.log(&quot;bob's name is: &quot;+bob.getName());\nconsole.log(&quot;getAddr is &quot;+((&quot;getAddr&quot; in bob)?&quot;in&quot;:&quot;not in&quot;)+&quot; bob&quot;);\nconsole.log(&quot;bob's address is: &quot;+bob.getAddr());</pre>\r\n        \n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Example"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable",
		"title": "Object.propertyIsEnumerable",
		"_id": "4eea8545a4c86c4dba0000f0",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a Boolean indicating whether the specified property is enumerable.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.propertyIsEnumerable(<em>prop</em>)</code></p></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>prop</code>&nbsp;</dt> <dd>The name of the property to test.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Every object has a <code>propertyIsEnumerable</code> method. This method can determine whether the specified property in an object can be enumerated by a <a title = \"en/Core_JavaScript_1.5_Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for...in\"><code>for...in</code></a> loop, with the exception of properties inherited through the prototype chain. If the object does not have the specified property, this method returns false.</p>\n<div class = \"note\"><strong>Note:</strong> Starting in JavaScript 1.8.1 (in Firefox 3.6), <code>propertyIsEnumerable(&quot;prototype&quot;)</code> returns false instead of true; this makes the result compliant with ECMAScript 5.</div>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_A_basic_use_of_propertyIsEnumerable\"></span><h4 class = \"editable\">Example: A basic use of <code>propertyIsEnumerable</code></h4>\n<p>The following example shows the use of <code>propertyIsEnumerable</code> on objects and arrays:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {};\nvar a = [];\no.prop = 'is enumerable';\na[0] = 'is enumerable';\n\no.propertyIsEnumerable('prop');   // returns true\na.propertyIsEnumerable(0);        // returns true</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Example:_User-defined_versus_built-in_objects\"></span><h4 class = \"editable\">Example: User-defined versus built-in objects</h4>\n<p>The following example demonstrates the enumerability of user-defined versus built-in properties:</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = ['is enumerable'];\n\na.propertyIsEnumerable(0);          // returns true\na.propertyIsEnumerable('length');   // returns false\n\nMath.propertyIsEnumerable('random');   // returns false\nthis.propertyIsEnumerable('Math');     // returns false</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example:_Direct_versus_inherited_properties\"></span><h4 class = \"editable\">Example: Direct versus inherited properties</h4>\n\r\n          <pre name = \"code\" class = \"js\">var a = [];\na.propertyIsEnumerable('constructor');         // returns false\n\nfunction firstConstructor()\n{\n  this.property = 'is not enumerable';\n}\nfirstConstructor.prototype.firstMethod = function () {};\n\nfunction secondConstructor()\n{\n  this.method = function method() { return 'is enumerable'; };\n}\n\nsecondConstructor.prototype = new firstConstructor;\nsecondConstructor.prototype.constructor = secondConstructor;\n\nvar o = new secondConstructor();\no.arbitraryProperty = 'is enumerable';\n\no.propertyIsEnumerable('arbitraryProperty');   // returns true\no.propertyIsEnumerable('method');              // returns true\no.propertyIsEnumerable('property');            // returns false\n\no.property = 'is enumerable';\n\no.propertyIsEnumerable('property');            // returns true\n\n// These return false as they are on the prototype which \n// propertyIsEnumerable does not consider (even though the last two\n// are iteratable with for-in)\no.propertyIsEnumerable('prototype'); // returns false (as of JS 1.8.1/FF3.6)\no.propertyIsEnumerable('constructor'); // returns false\no.propertyIsEnumerable('firstMethod'); // returns false</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_A_basic_use_of_propertyIsEnumerable\"></span><h4 class = \"editable\">Example: A basic use of <code>propertyIsEnumerable</code></h4>\n<p>The following example shows the use of <code>propertyIsEnumerable</code> on objects and arrays:</p>\n\r\n          <pre name = \"code\" class = \"js\">var o = {};\nvar a = [];\no.prop = 'is enumerable';\na[0] = 'is enumerable';\n\no.propertyIsEnumerable('prop');   // returns true\na.propertyIsEnumerable(0);        // returns true</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Example:_User-defined_versus_built-in_objects\"></span><h4 class = \"editable\">Example: User-defined versus built-in objects</h4>\n<p>The following example demonstrates the enumerability of user-defined versus built-in properties:</p>\n\r\n          <pre name = \"code\" class = \"js\">var a = ['is enumerable'];\n\na.propertyIsEnumerable(0);          // returns true\na.propertyIsEnumerable('length');   // returns false\n\nMath.propertyIsEnumerable('random');   // returns false\nthis.propertyIsEnumerable('Math');     // returns false</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Direct_versus_inherited_properties\"></span><h4 class = \"editable\">Example: Direct versus inherited properties</h4>\n\r\n          <pre name = \"code\" class = \"js\">var a = [];\na.propertyIsEnumerable('constructor');         // returns false\n\nfunction firstConstructor()\n{\n  this.property = 'is not enumerable';\n}\nfirstConstructor.prototype.firstMethod = function () {};\n\nfunction secondConstructor()\n{\n  this.method = function method() { return 'is enumerable'; };\n}\n\nsecondConstructor.prototype = new firstConstructor;\nsecondConstructor.prototype.constructor = secondConstructor;\n\nvar o = new secondConstructor();\no.arbitraryProperty = 'is enumerable';\n\no.propertyIsEnumerable('arbitraryProperty');   // returns true\no.propertyIsEnumerable('method');              // returns true\no.propertyIsEnumerable('property');            // returns false\n\no.property = 'is enumerable';\n\no.propertyIsEnumerable('property');            // returns true\n\n// These return false as they are on the prototype which \n// propertyIsEnumerable does not consider (even though the last two\n// are iteratable with for-in)\no.propertyIsEnumerable('prototype'); // returns false (as of JS 1.8.1/FF3.6)\no.propertyIsEnumerable('constructor'); // returns false\no.propertyIsEnumerable('firstMethod'); // returns false</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Statements/for...in\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for...in\">for...in</a></p> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: A basic use of propertyIsEnumerable",
			"Example: User-defined versus built-in objects",
			"Example: Direct versus inherited properties",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupSetter",
		"title": "Object.lookupSetter",
		"_id": "4eea8545a4c86c4dba0000f1",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Return the function bound as a setter to the specified property.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>obj</em>.__lookupSetter__(<em>sprop</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>sprop</code></dt> <dd>a string containing the name of the property whose setter should be returned</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If a setter has been defined for an object's property, it's not possible to reference the setter function through that property, because that property refers to the return value of that function. <code>__lookupSetter__</code> can be used to obtain a reference to the setter function.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/set_Operator\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/set\">set</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/defineSetter\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineSetter\">__defineSetter__</a></li> <li><a title = \"en/Core_JavaScript_1.5_Guide/Creating_New_Objects/Defining_Getters_and_Setters\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters\">JS Guide:Defining Getters and Setters</a></li>\n</ul>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch",
		"title": "Object.unwatch",
		"_id": "4eea8549a4c86c4dba0000f2",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Removes a watchpoint set with the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/watch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch\">watch()</a></code> method.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>unwatch(<em>prop</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>prop</code></dt> <dd>The name of a property of the object to stop watching.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The JavaScript debugger has functionality similar to that provided by this method, as well as other debugging options. For information on the debugger, see <a title = \"en/Venkman\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Venkman\">Venkman</a>.</p>\n<p>By default, this method is inherited by every object descended from <code>Object</code>.</p>\n<div class = \"note\"><strong>Note:</strong> The reason for <code>unwatch()</code> to take the property name <em>prop</em> as its only parameter is due to the &quot;single handler allowing&quot; behavior of the <a title = \"watch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch\"><code>watch()</code></a> method.</div></div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<p>See <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/watch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch\">watch()</a></code>.</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/constructor",
		"title": "RegExp.constructor",
		"_id": "4eea8549a4c86c4dba0000f3",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a reference to the <a title = \"en/JavaScript/Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\">RegExp</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\" title = \"en/JavaScript/Reference/Global_Objects/RegExp\"><code>RegExp</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>See <a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\">Object.constructor</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/prototype",
		"title": "RegExp.prototype",
		"_id": "4eea854aa4c86c4dba0000f4",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the prototype object for the <a title = \"en/JavaScript/Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\"><code>RegExp</code></a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>See <a class = \"internal\" title = \"En/Core JavaScript 1.5 Reference/Global Objects/RegExp#RegExp_instances\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp#RegExp_instances\"><code>RegExp</code></a> for a description of <code>RegExp</code> instances.</p>\n<p><code>RegExp</code> instances inherit from <code>RegExp.prototype</code>. Modifications to the prototype object are propagated to all <code>RegExp</code> instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<p>See also <a title = \"en/JavaScript/Reference/Deprecated_Features#RegExp_Properties\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Deprecated_Features#RegExp_Properties\">Deprecated RegExp Properties</a></p>\n<p>Note that several of the <code>RegExp</code> properties have both long and short (Perl-like) names. Both names always refer to the same value. Perl is the programming language from which JavaScript modeled its regular expressions.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/constructor\"><code>constructor</code></a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/global\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/global\"><code>global</code></a></dt> <dd>Whether to test the regular expression against all possible matches in a string, or only against the first.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/ignoreCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/ignoreCase\"><code>ignoreCase</code></a></dt> <dd>Whether to ignore case while attempting a match in a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/lastIndex\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/lastIndex\"><code>lastIndex</code></a></dt> <dd>The index at which to start the next match.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/multiline\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/multiline\"><code>multiline</code></a></dt> <dd>Whether or not to search in strings across multiple lines.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/source\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/source\"><code>source</code></a></dt> <dd>The text of the pattern.</dd> <dt><code><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/sticky\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/sticky\" class = \"new \">sticky</a></code></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding:0px 2px;\">New in <a rel = \"custom\" href = \"https://developer.mozilla.org/en/Firefox_3_for_developers\">Firefox 3</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Whether or not the search is sticky.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<dl> <dt></dt> See also <a title = \"en/JavaScript/Reference/Deprecated_Features#RegExp_Methods\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Deprecated_Features#RegExp_Methods\">Deprecated RegExp Methods</a></dl> <dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/exec\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/exec\"><code>exec</code></a></dt> <dd>Executes a search for a match in its string parameter.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/test\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/test\"><code>test</code></a></dt> <dd>Tests for a match in its string parameter.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toSource\"><code>toSource</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns an object literal representing the specified object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RegExp/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toString\">toString</a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a> method.</dd> </dl> <div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ValueOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/ValueOf\"><code>valueOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div> </div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2> <ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\"><code>RegExp</code></a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\"><code>Function.prototype</code></a></li> </ul> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch",
		"title": "Object.watch",
		"_id": "4eea854ba4c86c4dba0000f5",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Watches for a property to be assigned a value and runs a function when that occurs.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.6</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>object</em>.watch(<em>prop</em>, <em>handler</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>prop</code></dt> <dd>The name of a property of the object on which you wish to monitor changes.</dd>\n</dl>\n<dl> <dt><code>handler</code></dt> <dd>A function to call when the specified property's value changes.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<div class = \"warning\"><strong>Warning:</strong> Generally you should avoid using <code>watch()</code> and <a title = \"/en/JavaScript/Reference/Global_Objects/Object/unwatch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch\"><code>unwatch()</code></a> when possible. These two methods are implemented only in Gecko, and they're intended primarily for debugging use. In addition, using watchpoints has a serious negative impact on performance, which is especially true when used on global objects, such as window. You can usually use setters and getters or proxies instead. See <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch#Compatibility\">Compatibility</a> for details.</div>\n<p>Watches for assignment to a property named <code>prop</code> in this object, calling <code>handler(prop, oldval, newval)</code> whenever <code>prop</code> is set and storing the return value in that property. A watchpoint can filter (or nullify) the value assignment, by returning a modified <code>newval</code> (or by returning <code>oldval</code>).</p>\n<p>If you delete a property for which a watchpoint has been set, that watchpoint does not disappear. If you later recreate the property, the watchpoint is still in effect.</p>\n<p>To remove a watchpoint, use the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/unwatch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch\">unwatch()</a></code> method. By default, the <code>watch</code> method is inherited by every object descended from <code>Object</code>.</p>\n<p>The JavaScript debugger has functionality similar to that provided by this method, as well as other debugging options. For information on the debugger, see <a title = \"en/Venkman\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Venkman\">Venkman</a>.</p>\n<p>In Firefox, <code>handler</code> is only called from assignments in script, not from native code. For example, <code>window.watch('location', myHandler)</code> will not call <code>myHandler</code> if the user clicks a link to an anchor within the current document. However, <code>window.location += '#myAnchor'</code> will call <code>myHandler</code>.</p>\n<div class = \"note\"><strong>Note:</strong> Calling <code>watch()</code> on an object for a specific property overrides and previous handler attached for that property.</div>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Example:_Using_watch_and_unwatch\"></span><h3 class = \"editable\">Example: Using <code>watch</code> and <code>unwatch</code></h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {p:1};\no.watch(&quot;p&quot;,\n  function (id, oldval, newval) {\n    console.log(&quot;o.&quot; + id + &quot; changed from &quot; + oldval + &quot; to &quot; + newval);\n    return newval;\n  });\n\no.p = 2;\no.p = 3;\ndelete o.p;\no.p = 4;\n\no.unwatch('p');\no.p = 5;</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">o.p changed from 1 to 2\no.p changed from 2 to 3\no.p changed from undefined to 4\n</pre>\n</div><div id = \"section_7\"><span id = \"Example:_Using_watch_to_validate_an_object.27s_properties\"></span><span id = \"Example:_Using_watch_to_validate_an_object's_properties\"></span><h3 class = \"editable\">Example: Using <code>watch</code> to validate an object's properties</h3>\n<p>You can use <code>watch</code> to test any assignment to an object's properties. This example ensures that every Person always has a valid name and an age between 0 and 200.</p>\n\r\n          <pre name = \"code\" class = \"js\">Person = function(name,age) {\n  this.watch(&quot;age&quot;, Person.prototype._isValidAssignment);\n  this.watch(&quot;name&quot;, Person.prototype._isValidAssignment);\n  this.name = name;\n  this.age = age;\n}\n\nPerson.prototype.toString = function() {\n  return this.name + &quot;, &quot; + this.age;\n};\n\nPerson.prototype._isValidAssignment = function(id, oldval, newval) {\n  if (id === &quot;name&quot; &amp;&amp; (!newval || newval.length &gt; 30)) {\n    throw new RangeError(&quot;invalid name for &quot; + this);\n  }\n  if (id === &quot;age&quot;  &amp;&amp; (newval &lt; 0 || newval &gt; 200)) {\n    throw new RangeError(&quot;invalid age for &quot; + this);\n  }\n  return newval;\n}\n\nwill = new Person(&quot;Will&quot;, 29);\nprint(will);   // Will, 29\n\ntry {\n  will.name = &quot;&quot;;\n} catch (e) {\n  print(e);\n}\n\ntry {\n  will.age = -4;\n} catch (e) {\n  print(e);\n}</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">Will, 29\nRangeError: invalid name for Will, 29\nRangeError: invalid age for Will, 29\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_watch_and_unwatch\"></span><h3 class = \"editable\">Example: Using <code>watch</code> and <code>unwatch</code></h3>\n\r\n          <pre name = \"code\" class = \"js\">var o = {p:1};\no.watch(&quot;p&quot;,\n  function (id, oldval, newval) {\n    console.log(&quot;o.&quot; + id + &quot; changed from &quot; + oldval + &quot; to &quot; + newval);\n    return newval;\n  });\n\no.p = 2;\no.p = 3;\ndelete o.p;\no.p = 4;\n\no.unwatch('p');\no.p = 5;</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">o.p changed from 1 to 2\no.p changed from 2 to 3\no.p changed from undefined to 4\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_watch_to_validate_an_object.27s_properties\"></span><span id = \"Example:_Using_watch_to_validate_an_object's_properties\"></span><h3 class = \"editable\">Example: Using <code>watch</code> to validate an object's properties</h3>\n<p>You can use <code>watch</code> to test any assignment to an object's properties. This example ensures that every Person always has a valid name and an age between 0 and 200.</p>\n\r\n          <pre name = \"code\" class = \"js\">Person = function(name,age) {\n  this.watch(&quot;age&quot;, Person.prototype._isValidAssignment);\n  this.watch(&quot;name&quot;, Person.prototype._isValidAssignment);\n  this.name = name;\n  this.age = age;\n}\n\nPerson.prototype.toString = function() {\n  return this.name + &quot;, &quot; + this.age;\n};\n\nPerson.prototype._isValidAssignment = function(id, oldval, newval) {\n  if (id === &quot;name&quot; &amp;&amp; (!newval || newval.length &gt; 30)) {\n    throw new RangeError(&quot;invalid name for &quot; + this);\n  }\n  if (id === &quot;age&quot;  &amp;&amp; (newval &lt; 0 || newval &gt; 200)) {\n    throw new RangeError(&quot;invalid age for &quot; + this);\n  }\n  return newval;\n}\n\nwill = new Person(&quot;Will&quot;, 29);\nprint(will);   // Will, 29\n\ntry {\n  will.name = &quot;&quot;;\n} catch (e) {\n  print(e);\n}\n\ntry {\n  will.age = -4;\n} catch (e) {\n  print(e);\n}</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">Will, 29\nRangeError: invalid name for Will, 29\nRangeError: invalid age for Will, 29\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<ul> <li>This <span class = \"external\"><a class = \"link-https\" title = \"https://gist.github.com/384583\" rel = \"external\" href = \"https://gist.github.com/384583\" target = \"_blank\">Polyfill</a> that offers watch to all ES5 compatible browser</span></li> <li>Using a <a title = \"Proxy\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Proxy\">Proxy</a> enables you do that even deeper changes to how property assignments work</li>\n</ul>\n</div>",
			"<div id = \"section_9\"><span id = \"See_Also\"></span><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/unwatch\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/unwatch\">unwatch()</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using watch and unwatch",
			"Example: Using watch to validate an object's properties",
			"Compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/global",
		"title": "RegExp.global",
		"_id": "4eea854ba4c86c4dba0000f6",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Whether or not the &quot;<code>g</code>&quot; flag is used with the regular expression.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/RegExp\" title = \"en/Core_JavaScript_1.5_Reference/Objects/RegExp\">RegExp</a> instances</td>\n</tr>\n<tr>\n<td colspan = \"2\">\n<p><b>Read-only</b>\n</p>\n</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.2, NES3.0\n<p>JavaScript 1.5: <code>global</code> is a property of a <code>RegExp</code> instance, not the <code>RegExp</code> object.\n</p>\n</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262, Edition 3</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>global</code> is a property of an individual regular expression object.\n</p><p>The value of <code>global</code> is true if the &quot;<code>g</code>&quot; flag was used; otherwise, <code>false</code>. The &quot;<code>g</code>&quot; flag indicates that the regular expression should be tested against all possible matches in a string.\n</p><p>You cannot change this property directly.\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/ignoreCase",
		"title": "RegExp.ignoreCase",
		"_id": "4eea854da4c86c4dba0000f7",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Whether or not the &quot;<code>i</code>&quot; flag is used with the regular expression.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/RegExp\" title = \"en/Core_JavaScript_1.5_Reference/Objects/RegExp\">RegExp</a> instances</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.2, NES3.0\n<p>JavaScript 1.5: <code>ignoreCase</code> is a property of a <code>RegExp</code> instance, not the <code>RegExp</code> object.\n</p>\n</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262, Edition 3</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>ignoreCase</code> is a property of an individual regular expression object.\n</p><p>The value of <code>ignoreCase</code> is true if the &quot;<code>i</code>&quot; flag was used; otherwise, false. The &quot;<code>i</code>&quot; flag indicates that case should be ignored while attempting a match in a string.\n</p><p>You cannot change this property directly.\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/multiline",
		"title": "RegExp.multiline",
		"_id": "4eea854ea4c86c4dba0000f8",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Reflects whether or not to search in strings across multiple lines.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/RegExp\" title = \"en/Core_JavaScript_1.5_Reference/Objects/RegExp\">RegExp</a> instances</td>\n</tr>\n<tr>\n<td colspan = \"2\">\n<p><b>Static</b>\n</p>\n</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.2, NES3.0\n<p>JavaScript 1.5: <code>multiline</code> is a property of a <code>RegExp</code> instance, not the <code>RegExp</code> object.\n</p>\n</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262, Edition 3</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>multiline</code> is a property of an individual regular expression object..\n</p><p>The value of <code>multiline</code> is true if the &quot;<code>m</code>&quot; flag was used; otherwise, false. The &quot;<code>m</code>&quot; flag indicates that a multiline input string should be treated as multiple lines. For example, if &quot;<code>m</code>&quot; is used, &quot;<code>^</code>&quot; and &quot;<code>$</code>&quot; change from matching at only the start or end of the entire string to the start or end of any line within the string.\n</p><p>You cannot change this property directly.\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/lastIndex",
		"title": "RegExp.lastIndex",
		"_id": "4eea854fa4c86c4dba0000f9",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>A read/write integer property that specifies the index at which to start the next match.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/RegExp\" title = \"en/Core_JavaScript_1.5_Reference/Objects/RegExp\">RegExp</a></td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.2, NES3.0\n<p>JavaScript 1.5: <code>lastIndex</code> is a property of a <code>RegExp</code> instance, not the <code>RegExp</code> object.\n</p>\n</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262, Edition 3</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>lastIndex</code> is a property of an individual regular expression object.\n</p><p>This property is set only if the regular expression used the &quot;<code>g</code>&quot; flag to indicate a global search. The following rules apply:\n</p>\n<ul><li> If <code>lastIndex</code> is greater than the length of the string, <code>regexp.test</code> and <code>regexp.exec</code> fail, and <code>lastIndex</code> is set to 0.\n</li></ul>\n<ul><li> If <code>lastIndex</code> is equal to the length of the string and if the regular expression matches the empty string, then the regular expression matches input starting at <code>lastIndex</code>.\n</li></ul>\n<ul><li> If <code>lastIndex</code> is equal to the length of the string and if the regular expression does not match the empty string, then the regular expression mismatches input, and <code>lastIndex</code> is reset to 0.\n</li></ul>\n<ul><li> Otherwise, <code>lastIndex</code> is set to the next position following the most recent match.\n</li></ul>\n<p>For example, consider the following sequence of statements:\n</p>\n<dl><dt> <code>re = /(hi)?/g</code>&nbsp;</dt><dd> Matches the empty string. </dd></dl>\n<dl><dt> <code>re(&quot;hi&quot;)</code>&nbsp;</dt><dd> Returns <code>[&quot;hi&quot;, &quot;hi&quot;]</code> with <code>lastIndex</code> equal to 2. </dd></dl>\n<dl><dt> <code>re(&quot;hi&quot;)</code>&nbsp;</dt><dd> Returns <code>[&quot;&quot;]</code>, an empty array whose zeroth element is the match string. In this case, the empty string because <code>lastIndex</code> was 2 (and still is 2) and &quot;<code>hi</code>&quot; has length 2.\n</dd></dl>\n</div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/source",
		"title": "RegExp.source",
		"_id": "4eea854fa4c86c4dba0000fa",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>A read-only property that contains the text of the pattern, excluding the forward slashes.\n</p>\n<table class = \"fullwidth-table\">\n<tr>\n<td class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/RegExp\" title = \"en/Core_JavaScript_1.5_Reference/Objects/RegExp\">RegExp</a> instances</td>\n</tr>\n<tr>\n<td colspan = \"2\">\n<p><b>Static</b>\n</p>\n</td>\n</tr>\n<tr>\n<td>Implemented in:</td>\n<td>JavaScript 1.2, NES3.0\n<p>JavaScript 1.5: <code>source</code> is a property of a <code>RegExp</code> instance, not the <code>RegExp</code> object.\n</p>\n</td>\n</tr>\n<tr>\n<td>ECMA Version:</td>\n<td>ECMA-262, Edition 3</td>\n</tr>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>source</code> is a property of an individual regular expression object.\n</p><p>You cannot change this property directly.\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/test",
		"title": "RegExp.test",
		"_id": "4eea855aa4c86c4dba0000fb",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Executes the search for a match between a regular expression and a specified string. Returns <code>true</code> or <code>false</code>.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\"><code>RegExp</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>regexp</em>.test([<em>str</em>]) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>regexp</code></dt> <dd>The name of the regular expression. It can be a variable name or a literal.</dd>\n</dl>\n<dl> <dt><code>str</code></dt> <dd>The string against which to match the regular expression.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>When you want to know whether a pattern is found in a string use the <code>test</code> method (similar to the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/search\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/search\">String.search</a></code> method); for more information (but slower execution) use the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/exec\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/exec\">exec</a></code> method (similar to the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/match\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/match\">String.match</a></code> method). As with <code><code>exec</code></code> (or in combination with it), <code><code>test</code></code> called multiple times on the same global regular expression instance will advance past the previous match.</p>\n<div class = \"geckoVersionNote\"> <p>\n<div class = \"geckoVersionHeading\">Gecko 8.0 note<div style = \"font-size:9px; position:relative; top:-5px; font-style:italic;\">(Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)\n</div></div>\n</p> <p>Prior to Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)\n, <code>test()</code> was implemented incorrectly; when it was called with no parameters, it would match against the value of the previous input (RegExp.input property) instead of against the string &quot;undefined&quot;. This is fixed; now <code>/undefined/.test()</code> correctly results in <code>true</code>, instead of an error.</p>\n</div>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_test\"></span><h4 class = \"editable\">Example: Using <code>test</code></h4>\n<p>The following example prints a message which depends on the success of the test:</p>\n\r\n          <pre name = \"code\" class = \"js\">function testinput(re, str){\n   if (re.test(str)) {\n      midstring = &quot; contains &quot;;\n   } else {\n      midstring = &quot; does not contain &quot;;\n   }\n   document.write (str + midstring + re.source);\n}</pre>\r\n        \n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_test\"></span><h4 class = \"editable\">Example: Using <code>test</code></h4>\n<p>The following example prints a message which depends on the success of the test:</p>\n\r\n          <pre name = \"code\" class = \"js\">function testinput(re, str){\n   if (re.test(str)) {\n      midstring = &quot; contains &quot;;\n   } else {\n      midstring = &quot; does not contain &quot;;\n   }\n   document.write (str + midstring + re.source);\n}</pre>\r\n        \n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using test"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/exec",
		"title": "RegExp.exec",
		"_id": "4eea855aa4c86c4dba0000fc",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Executes a search for a match in a specified string. Returns a result array, or <code>null</code>.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\"><code>RegExp</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>result</em> = <em>regexp</em>.exec(<em>str</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>regexp</code></dt> <dd>The name of the regular expression. It can be a variable name or a literal.</dd>\n</dl>\n<dl> <dt><code>str</code></dt> <dd>The string against which to match the regular expression.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If the match succeeds, the <code>exec</code> method returns an array and updates properties of the regular expression object. The returned array has the matched text as the first item, and then one item for each capturing parenthesis that matched containing the text that was captured.&nbsp; If the match fails, the <code>exec</code> method returns <code>null</code>.</p>\n<p>If you are executing a match simply to find true or false, use the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/test\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/test\">test</a></code> method or the <code>String</code> <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/search\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/search\">search</a></code> method.</p>\n<p>Consider the following example:</p>\n\r\n          <pre name = \"code\" class = \"js\">// Match one d followed by one or more b's followed by one d\n// Remember matched b's and the following d\n// Ignore case\nvar re = /d(b+)(d)/ig;\nvar result = re.exec(&quot;cdbBdbsbz&quot;);</pre>\r\n        \n<p>The following table shows the results for this script:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\">Object</td> <td class = \"header\">Property/Index</td> <td class = \"header\">Description</td> <td class = \"header\">Example</td> </tr> <tr> <td rowspan = \"5\"><code>result</code></td> <td><code>&nbsp;</code></td> <td>The content of <code>myArray</code>.</td> <td><code>[&quot;dbBd&quot;, &quot;bB&quot;, &quot;d&quot;]</code></td> </tr> <tr> <td><code>index</code></td> <td>The 0-based index of the match in the string.</td> <td><code>1</code></td> </tr> <tr> <td><code>input</code></td> <td>The original string.</td> <td><code>cdbBdbsbz</code></td> </tr> <tr> <td><code>[0]</code></td> <td>The last matched characters</td> <td><code>dbBd</code></td> </tr> <tr> <td><code>[1], ...[<em>n</em>]</code></td> <td>The parenthesized substring matches, if any. The number of possible parenthesized substrings is unlimited.</td> <td><code>[1] = bB<br/> [2] = d</code></td> </tr> <tr> <td rowspan = \"5\"><code>re</code></td> <td><code>lastIndex</code></td> <td>The index at which to start the next match.</td> <td><code>5</code></td> </tr> <tr> <td><code>ignoreCase</code></td> <td>Indicates if the &quot;<code>i</code>&quot; flag was used to ignore case.</td> <td><code>true</code></td> </tr> <tr> <td><code>global</code></td> <td>Indicates if the &quot;<code>g</code>&quot; flag was used for a global match.</td> <td><code>true</code></td> </tr> <tr> <td><code>multiline</code></td> <td>Indicates if the &quot;<code>m</code>&quot; flag was used to search in strings across multiple line.</td> <td><code>false</code></td> </tr> <tr> <td><code>source</code></td> <td>The text of the pattern.</td> <td><code>d(b+)(d)</code></td> </tr> </tbody>\n</table>\n<div class = \"geckoVersionNote\"> <p>\n<div class = \"geckoVersionHeading\">Gecko 8.0 note<div style = \"font-size:9px; position:relative; top:-5px; font-style:italic;\">(Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)\n</div></div>\n</p> <p>Prior to Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)\n, <code>exec()</code> was implemented incorrectly; when it was called with no parameters, it would match against the value of the previous input (RegExp.input property) instead of against the string &quot;undefined&quot;. This is fixed; now <code>/undefined/.exec()</code> correctly results in <code>['undefined']</code>, instead of an error.</p>\n</div>\n<p>If your regular expression uses the &quot;<code>g</code>&quot; flag, you can use the <code>exec</code> method multiple times to find successive matches in the same string. When you do so, the search starts at the substring of <code>str</code> specified by the regular expression's <code>lastIndex</code> property (<code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/test\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/test\">test</a></code> will also advance the <code>lastIndex</code> property). For example, assume you have this script:</p>\n\r\n          <pre name = \"code\" class = \"js\">var myRe = /ab*/g;\nvar str = &quot;abbcdefabh&quot;;\nvar myArray;\nwhile ((myArray = myRe.exec(str)) != null)\n{\n  var msg = &quot;Found &quot; + myArray[0] + &quot;.  &quot;;\n  msg += &quot;Next match starts at &quot; + myRe.lastIndex;\n  print(msg);\n}</pre>\r\n        \n<p>This script displays the following text:</p>\n<pre class = \"eval\">\nFound abb. Next match starts at 3\nFound ab. Next match starts at 9\n</pre>\n<p>You can also use <code>exec()</code> without creating a RegExp object:</p>\n\r\n          <pre name = \"code\" class = \"js\">var matches = /(hello \\S+)/.exec('This is a hello world!');\nalert(matches[1]);</pre>\r\n        \n<p>&nbsp;This will display an alert containing 'hello world!';</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toSource",
		"title": "RegExp.toSource",
		"_id": "4eea855ba4c86c4dba0000fd",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the source code of the object.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\" title = \"en/JavaScript/Reference/Global_Objects/RegExp\"><code>RegExp</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><em>regexp</em>.toSource()</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>toSource</code> method returns the following values:\n</p><p>\n</p>\n<ul><li> For the built-in <code>RegExp</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:\n</li></ul>\n<pre class = \"eval\">function RegExp() {[native code]}\n</pre>\n<ul><li> For instances of <code>RegExp</code>, <code>toSource</code> returns a string representing the source code.\n</li></ul>\n<p>This method is usually called internally by JavaScript and not explicitly in code.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace",
		"title": "String.replace",
		"_id": "4eea855ca4c86c4dba0000fe",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a new string with some or all matches of a <code>pattern</code> replaced by a <code>replacement</code>.&nbsp; The <code>pattern</code> can be a string or a RegExp, and the <code>replacement</code> can be a string or a function to be called for each match.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>str</em>.replace(<em>regexp|substr</em>, <em>newSubStr|function[</em>, </code><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>      <code><em>flags]</em>);</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>regexp</code></dt> <dd>A <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\">RegExp</a> object. The match is replaced by the return value of parameter #2.</dd>\n</dl>\n<dl> <dt><code>substr</code></dt> <dd>A <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/String\">String</a> that is to be replaced by <code>newSubStr</code>.</dd>\n</dl>\n<dl> <dt><code>newSubStr</code></dt> <dd>The <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/String\">String</a> that replaces the substring received from parameter #1. A number of special replacement patterns are supported; see the &quot;Specifying a string as a parameter&quot; section below.</dd>\n</dl>\n<dl> <dt><code>function</code></dt> <dd>A function to be invoked to create the new substring (to put in place of the substring received from parameter #1). The arguments supplied to this function are described in the &quot;Specifying a function as a parameter&quot; section below.</dd>\n</dl>\n<dl> <dt><code>flags</code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     A string specifying a combination of regular expression flags. The use of the flags parameter in the String.replace method is non-standard, use a RegExp object with the corresponding flags. <dl> <dt><code>g</code></dt> <dd>global match</dd> <dt><code>i</code></dt> <dd>ignore case</dd> <dt><code>m</code></dt> <dd>match over multiple lines</dd> <dt><code>y</code></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>sticky</dd> </dl> </dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>This method does not change the <code>String</code> object it is called on. It simply returns a new string.</p>\n<p>To perform a global search and replace, either include the <code>g</code> switch in the regular expression or if the first parameter is a string, include <code>g</code> in the <code>flags</code> parameter.</p>\n<div id = \"section_5\"><span id = \"Specifying_a_string_as_a_parameter\"></span><h4 class = \"editable\">Specifying a string as a parameter</h4>\n<p>The replacement string can include the following special replacement patterns:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\">Pattern</td> <td class = \"header\">Inserts</td> </tr> <tr> <td><code>$$</code></td> <td>Inserts a &quot;$&quot;.</td> </tr> <tr> <td><code>$&amp;</code></td> <td>Inserts the matched substring.</td> </tr> <tr> <td><code>$`</code></td> <td>Inserts the portion of the string that precedes the matched substring.</td> </tr> <tr> <td><code>$'</code></td> <td>Inserts the portion of the string that follows the matched substring.</td> </tr> <tr> <td style = \"white-space: nowrap;\"><code>$<em>n</em></code> or <code>$<em>nn</em></code></td> <td>Where <code><em>n</em></code> or <code><em>nn</em></code> are decimal digits, inserts the <em>n</em>th parenthesized submatch string, provided the first argument was a <code>RegExp</code> object.</td> </tr> </tbody>\n</table>\n</div><div id = \"section_6\"><span id = \"Specifying_a_function_as_a_parameter\"></span><h4 class = \"editable\">Specifying a function as a parameter</h4>\n<p>You can specify a function as the second parameter. In this case, the function will be invoked after the match has been performed. The function's result (return value) will be used as the replacement string. (Note: the above-mentioned special replacement patterns do <em>not</em> apply in this case.) Note that the function will be invoked multiple times for each full match to be replaced if the regular expression in the first parameter is global.</p>\n<p>The arguments to the function are as follows:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\">Possible name</td> <td class = \"header\">Supplied value</td> </tr> <tr> <td><code>str</code></td> <td>The matched substring. (Corresponds to $&amp; above.)</td> </tr> <tr> <td><code>p1, p2, ...</code></td> <td>The <em>n</em>th parenthesized submatch string, provided the first argument to <code>replace</code> was a <code>RegExp</code> object. (Correspond to $1, $2, etc. above.)</td> </tr> <tr> <td><code>offset</code></td> <td>The offset of the matched substring within the total string being examined. (For example, if the total string was <code>&quot;abcd&quot;</code>, and the matched substring was <code>&quot;bc&quot;</code>, then this argument will be <code>1</code>.)</td> </tr> <tr> <td style = \"white-space: nowrap;\"><code>s</code></td> <td>The total string being examined.</td> </tr> </tbody>\n</table>\n<p>(The exact number of arguments will depend on whether the first argument was a <code>RegExp </code>object and, if so, how many parenthesized submatches it specifies.)</p>\n<p>The following example will set <code>newString </code>to <code style = \"white-space: nowrap;\">&quot;XXzzzz - XX , zzzz&quot;</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">function replacer(str, p1, p2, offset, s)\n{\n  return str + &quot; - &quot; + p1 + &quot; , &quot; + p2;\n}\nvar newString = &quot;XXzzzz&quot;.replace(/(X*)(z*)/, replacer);</pre>\r\n        \n</div></div>",
			"<div id = \"section_5\"><span id = \"Specifying_a_string_as_a_parameter\"></span><h4 class = \"editable\">Specifying a string as a parameter</h4>\n<p>The replacement string can include the following special replacement patterns:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\">Pattern</td> <td class = \"header\">Inserts</td> </tr> <tr> <td><code>$$</code></td> <td>Inserts a &quot;$&quot;.</td> </tr> <tr> <td><code>$&amp;</code></td> <td>Inserts the matched substring.</td> </tr> <tr> <td><code>$`</code></td> <td>Inserts the portion of the string that precedes the matched substring.</td> </tr> <tr> <td><code>$'</code></td> <td>Inserts the portion of the string that follows the matched substring.</td> </tr> <tr> <td style = \"white-space: nowrap;\"><code>$<em>n</em></code> or <code>$<em>nn</em></code></td> <td>Where <code><em>n</em></code> or <code><em>nn</em></code> are decimal digits, inserts the <em>n</em>th parenthesized submatch string, provided the first argument was a <code>RegExp</code> object.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Specifying_a_function_as_a_parameter\"></span><h4 class = \"editable\">Specifying a function as a parameter</h4>\n<p>You can specify a function as the second parameter. In this case, the function will be invoked after the match has been performed. The function's result (return value) will be used as the replacement string. (Note: the above-mentioned special replacement patterns do <em>not</em> apply in this case.) Note that the function will be invoked multiple times for each full match to be replaced if the regular expression in the first parameter is global.</p>\n<p>The arguments to the function are as follows:</p>\n<table class = \"fullwidth-table\"> <tbody> <tr> <td class = \"header\">Possible name</td> <td class = \"header\">Supplied value</td> </tr> <tr> <td><code>str</code></td> <td>The matched substring. (Corresponds to $&amp; above.)</td> </tr> <tr> <td><code>p1, p2, ...</code></td> <td>The <em>n</em>th parenthesized submatch string, provided the first argument to <code>replace</code> was a <code>RegExp</code> object. (Correspond to $1, $2, etc. above.)</td> </tr> <tr> <td><code>offset</code></td> <td>The offset of the matched substring within the total string being examined. (For example, if the total string was <code>&quot;abcd&quot;</code>, and the matched substring was <code>&quot;bc&quot;</code>, then this argument will be <code>1</code>.)</td> </tr> <tr> <td style = \"white-space: nowrap;\"><code>s</code></td> <td>The total string being examined.</td> </tr> </tbody>\n</table>\n<p>(The exact number of arguments will depend on whether the first argument was a <code>RegExp </code>object and, if so, how many parenthesized submatches it specifies.)</p>\n<p>The following example will set <code>newString </code>to <code style = \"white-space: nowrap;\">&quot;XXzzzz - XX , zzzz&quot;</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">function replacer(str, p1, p2, offset, s)\n{\n  return str + &quot; - &quot; + p1 + &quot; , &quot; + p2;\n}\nvar newString = &quot;XXzzzz&quot;.replace(/(X*)(z*)/, replacer);</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_8\"><span id = \"Example:_Using_global_and_ignore_with_replace\"></span><h4 class = \"editable\">Example: Using <code>global</code> and <code>ignore</code> with <code>replace</code></h4>\n<p>In the following example, the regular expression includes the global and ignore case flags which permits <code>replace</code> to replace each occurrence of 'apples' in the string with 'oranges'.</p>\n\r\n          <pre name = \"code\" class = \"js\">var re = /apples/gi;\nvar str = &quot;Apples are round, and apples are juicy.&quot;;\nvar newstr = str.replace(re, &quot;oranges&quot;);\nprint(newstr);</pre>\r\n        \n<p>In this version, a string is used as the first parameter and the global and ignore case flags are specified in the <code>flags</code> parameter.</p>\n\r\n          <pre name = \"code\" class = \"js\">var str = &quot;Apples are round, and apples are juicy.&quot;;\nvar newstr = str.replace(&quot;apples&quot;, &quot;oranges&quot;, &quot;gi&quot;);\nprint(newstr);</pre>\r\n        \n<p>Both of these examples print &quot;oranges are round, and oranges are juicy.&quot;</p>\n</div><div id = \"section_9\"><span id = \"Example:_Defining_the_regular_expression_in_replace\"></span><h4 class = \"editable\">Example: Defining the regular expression in <code>replace</code></h4>\n<p>In the following example, the regular expression is defined in <code>replace</code> and includes the ignore case flag.</p>\n\r\n          <pre name = \"code\" class = \"js\">var str = &quot;Twas the night before Xmas...&quot;;\nvar newstr = str.replace(/xmas/i, &quot;Christmas&quot;);\nprint(newstr);</pre>\r\n        \n<p>This prints &quot;Twas the night before Christmas...&quot;</p>\n</div><div id = \"section_10\"><span id = \"Example:_Switching_words_in_a_string\"></span><h4 class = \"editable\">Example: Switching words in a string</h4>\n<p>The following script switches the words in the string. For the replacement text, the script uses the <code>$1</code> and <code>$2</code> replacement patterns.</p>\n\r\n          <pre name = \"code\" class = \"js\">var re = /(\\w+)\\s(\\w+)/;\nvar str = &quot;John Smith&quot;;\nvar newstr = str.replace(re, &quot;$2, $1&quot;);\nprint(newstr);</pre>\r\n        \n<p>This prints &quot;Smith, John&quot;.</p>\n</div><div id = \"section_11\"><span id = \"Example:_Using_an_inline_function_that_modifies_the_matched_characters\"></span><h4 class = \"editable\">Example: Using an inline function that modifies the matched characters</h4>\n<p>In this example, all occurrences of capital letters in the string are converted to lower case, and a hyphen is inserted just before the match location. The important thing here is that additional operations are needed on the matched item before it is given back as a replacement.</p>\n<p>The replacement function accepts the matched snippet as its parameter, and uses it to transform the case and concatenate the hyphen before returning.</p>\n\r\n          <pre name = \"code\" class = \"js\">function styleHyphenFormat(propertyName)\n{\n  function upperToHyphenLower(match)\n  {\n    return '-' + match.toLowerCase();\n  }\n  return propertyName.replace(/[A-Z]/, upperToHyphenLower);\n}</pre>\r\n        \n<p>Given <code>styleHyphenFormat('borderTop')</code>, this returns 'border-top'.</p>\n<p>Because we want to further transform the <em>result</em> of the match before the final substitution is made, we must use a function. This forces the evaluation of the match prior to the <code>toLowerCase()</code> method. If we had tried to do this using the match without a function, the toLowerCase() would have no effect.</p>\n\r\n          <pre name = \"code\" class = \"js\">var newString = propertyName.replace(/[A-Z]/, '-' + '$&amp;'.toLowerCase());  // won't work</pre>\r\n        \n<p>This is because <code>'$&amp;'.toLowerCase()</code> would be evaluated first as a string literal (resulting in the same <code>'$&amp;'</code>) before using the characters as a pattern.</p>\n</div><div id = \"section_12\"><span id = \"Example:_Replacing_a_Fahrenheit_degree_with_its_Celsius_equivalent\"></span><h4 class = \"editable\">Example: Replacing a Fahrenheit degree with its Celsius equivalent</h4>\n<p>The following example replaces a Fahrenheit degree with its equivalent Celsius degree. The Fahrenheit degree should be a number ending with F. The function returns the Celsius number ending with C. For example, if the input number is 212F, the function returns 100C. If the number is 0F, the function returns -17.77777777777778C.</p>\n<p>The regular expression <code>test</code> checks for any number that ends with F. The number of Fahrenheit degree is accessible to the function through its second parameter, <code>p1</code>. The function sets the Celsius number based on the Fahrenheit degree passed in a string to the <code>f2c</code> function. <code>f2c</code> then returns the Celsius number. This function approximates Perl's s///e flag.</p>\n\r\n          <pre name = \"code\" class = \"js\">function f2c(x)\n{\n  function convert(str, p1, offset, s)\n  {\n    return ((p1-32) * 5/9) + &quot;C&quot;;\n  }\n  var s = String(x);\n  var test = /(\\d+(?:\\.\\d*)?)F\\b/g;\n  return s.replace(test, convert);\n}</pre>\r\n        \n<p>&nbsp;</p>\n<p></p></div></div>",
			"<div id = \"section_8\"><span id = \"Example:_Using_global_and_ignore_with_replace\"></span><h4 class = \"editable\">Example: Using <code>global</code> and <code>ignore</code> with <code>replace</code></h4>\n<p>In the following example, the regular expression includes the global and ignore case flags which permits <code>replace</code> to replace each occurrence of 'apples' in the string with 'oranges'.</p>\n\r\n          <pre name = \"code\" class = \"js\">var re = /apples/gi;\nvar str = &quot;Apples are round, and apples are juicy.&quot;;\nvar newstr = str.replace(re, &quot;oranges&quot;);\nprint(newstr);</pre>\r\n        \n<p>In this version, a string is used as the first parameter and the global and ignore case flags are specified in the <code>flags</code> parameter.</p>\n\r\n          <pre name = \"code\" class = \"js\">var str = &quot;Apples are round, and apples are juicy.&quot;;\nvar newstr = str.replace(&quot;apples&quot;, &quot;oranges&quot;, &quot;gi&quot;);\nprint(newstr);</pre>\r\n        \n<p>Both of these examples print &quot;oranges are round, and oranges are juicy.&quot;</p>\n</div>",
			"<div id = \"section_9\"><span id = \"Example:_Defining_the_regular_expression_in_replace\"></span><h4 class = \"editable\">Example: Defining the regular expression in <code>replace</code></h4>\n<p>In the following example, the regular expression is defined in <code>replace</code> and includes the ignore case flag.</p>\n\r\n          <pre name = \"code\" class = \"js\">var str = &quot;Twas the night before Xmas...&quot;;\nvar newstr = str.replace(/xmas/i, &quot;Christmas&quot;);\nprint(newstr);</pre>\r\n        \n<p>This prints &quot;Twas the night before Christmas...&quot;</p>\n</div>",
			"<div id = \"section_10\"><span id = \"Example:_Switching_words_in_a_string\"></span><h4 class = \"editable\">Example: Switching words in a string</h4>\n<p>The following script switches the words in the string. For the replacement text, the script uses the <code>$1</code> and <code>$2</code> replacement patterns.</p>\n\r\n          <pre name = \"code\" class = \"js\">var re = /(\\w+)\\s(\\w+)/;\nvar str = &quot;John Smith&quot;;\nvar newstr = str.replace(re, &quot;$2, $1&quot;);\nprint(newstr);</pre>\r\n        \n<p>This prints &quot;Smith, John&quot;.</p>\n</div>",
			"<div id = \"section_11\"><span id = \"Example:_Using_an_inline_function_that_modifies_the_matched_characters\"></span><h4 class = \"editable\">Example: Using an inline function that modifies the matched characters</h4>\n<p>In this example, all occurrences of capital letters in the string are converted to lower case, and a hyphen is inserted just before the match location. The important thing here is that additional operations are needed on the matched item before it is given back as a replacement.</p>\n<p>The replacement function accepts the matched snippet as its parameter, and uses it to transform the case and concatenate the hyphen before returning.</p>\n\r\n          <pre name = \"code\" class = \"js\">function styleHyphenFormat(propertyName)\n{\n  function upperToHyphenLower(match)\n  {\n    return '-' + match.toLowerCase();\n  }\n  return propertyName.replace(/[A-Z]/, upperToHyphenLower);\n}</pre>\r\n        \n<p>Given <code>styleHyphenFormat('borderTop')</code>, this returns 'border-top'.</p>\n<p>Because we want to further transform the <em>result</em> of the match before the final substitution is made, we must use a function. This forces the evaluation of the match prior to the <code>toLowerCase()</code> method. If we had tried to do this using the match without a function, the toLowerCase() would have no effect.</p>\n\r\n          <pre name = \"code\" class = \"js\">var newString = propertyName.replace(/[A-Z]/, '-' + '$&amp;'.toLowerCase());  // won't work</pre>\r\n        \n<p>This is because <code>'$&amp;'.toLowerCase()</code> would be evaluated first as a string literal (resulting in the same <code>'$&amp;'</code>) before using the characters as a pattern.</p>\n</div>",
			"<div id = \"section_12\"><span id = \"Example:_Replacing_a_Fahrenheit_degree_with_its_Celsius_equivalent\"></span><h4 class = \"editable\">Example: Replacing a Fahrenheit degree with its Celsius equivalent</h4>\n<p>The following example replaces a Fahrenheit degree with its equivalent Celsius degree. The Fahrenheit degree should be a number ending with F. The function returns the Celsius number ending with C. For example, if the input number is 212F, the function returns 100C. If the number is 0F, the function returns -17.77777777777778C.</p>\n<p>The regular expression <code>test</code> checks for any number that ends with F. The number of Fahrenheit degree is accessible to the function through its second parameter, <code>p1</code>. The function sets the Celsius number based on the Fahrenheit degree passed in a string to the <code>f2c</code> function. <code>f2c</code> then returns the Celsius number. This function approximates Perl's s///e flag.</p>\n\r\n          <pre name = \"code\" class = \"js\">function f2c(x)\n{\n  function convert(str, p1, offset, s)\n  {\n    return ((p1-32) * 5/9) + &quot;C&quot;;\n  }\n  var s = String(x);\n  var test = /(\\d+(?:\\.\\d*)?)F\\b/g;\n  return s.replace(test, convert);\n}</pre>\r\n        \n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Specifying a string as a parameter",
			"Specifying a function as a parameter",
			"Examples",
			"Example: Using global and ignore with replace",
			"Example: Defining the regular expression in replace",
			"Example: Switching words in a string",
			"Example: Using an inline function that modifies the matched characters",
			"Example: Replacing a Fahrenheit degree with its Celsius equivalent"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/toString",
		"title": "RegExp.toString",
		"_id": "4eea855ca4c86c4dba0000ff",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the specified object.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\" title = \"en/JavaScript/Reference/Global_Objects/RegExp\"><code>RegExp</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><em>regexp</em>.toString()</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>RegExp</code> object overrides the <code>toString</code> method of the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></code> object; it does not inherit <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a></code>. For <code>RegExp</code> objects, the <code>toString</code> method returns a string representation of the regular expression.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toString\"></span><h4 class = \"editable\"> Example: Using <code>toString</code> </h4>\n<p>The following example displays the string value of a <code>RegExp</code> object:\n</p>\n<pre>\nmyExp = new RegExp(&quot;a+b+c&quot;);\nalert(myExp.toString());       // displays &quot;/a+b+c/&quot;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toString\"></span><h4 class = \"editable\"> Example: Using <code>toString</code> </h4>\n<p>The following example displays the string value of a <code>RegExp</code> object:\n</p>\n<pre>\nmyExp = new RegExp(&quot;a+b+c&quot;);\nalert(myExp.toString());       // displays &quot;/a+b+c/&quot;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.prototype.toString</a>\n</p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using toString ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/length",
		"title": "String.length",
		"_id": "4eea8560a4c86c4dba000100",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>The length of a string.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>This property returns the number of code units in the string. \n<a rel = \"custom\" href = \"http://en.wikipedia.org/wiki/UTF-16\">UTF-16</a>\n, the string format used by&nbsp;JavaScript, uses a single 16-bit code unit to represent the most common characters, but needs to use two code units for less commonly-used characters, so it's possible for the value returned by <code>length</code> to not match the actual number of characters in the string.</p>\n<p>For an empty string, <code>length</code> is 0.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n\r\n          <pre name = \"code\" class = \"js\">var x = &quot;Netscape&quot;;\nvar empty = &quot;&quot;;\n\nconsole.log(&quot;Netspace is &quot; + x.length + &quot; code units long&quot;);\nconsole.log(&quot;The empty string is has a length of &quot; + empty.length); /* should be 0 */</pre>\r\n        \n<div id = \"section_4\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a class = \"external\" title = \"http://developer.teradata.com/blog/jasonstrimpel/2011/11/javascript-string-length-and-internationalizing-web-applications\" rel = \"external\" href = \"http://developer.teradata.com/blog/jasonstrimpel/2011/11/javascript-string-length-and-internationalizing-web-applications\" target = \"_blank\">JavaScript String.length and Internationalizing Web Applications</a></li>\n</ul>\n<p></p></div></div>",
			"<div id = \"section_4\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a class = \"external\" title = \"http://developer.teradata.com/blog/jasonstrimpel/2011/11/javascript-string-length-and-internationalizing-web-applications\" rel = \"external\" href = \"http://developer.teradata.com/blog/jasonstrimpel/2011/11/javascript-string-length-and-internationalizing-web-applications\" target = \"_blank\">JavaScript String.length and Internationalizing Web Applications</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"See also",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substring",
		"title": "String.substring",
		"_id": "4eea8561a4c86c4dba000101",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a subset of a <code>string between one index </code>and another, or through the end of the string.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.substring(<em>indexA</em>[, <em>indexB</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>indexA</code></dt> <dd>An integer between 0 and one less than the length of the string.</dd>\n</dl>\n<dl> <dt><code>indexB</code></dt> <dd>(optional) An integer between 0 and the length of the string.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>substring</code> extracts characters from <code>indexA</code> up to but not including <code>indexB</code>. In particular:</p>\n<ul> <li>If <code>indexA</code> equals <code>indexB</code>, <code>substring</code> returns an empty string.</li> <li>If <code>indexB</code> is omitted, <code>substring</code> extracts characters to the end of the string.</li> <li>If either argument is less than 0 or is <code>NaN</code>, it is treated as if it were 0.</li> <li>If either argument is greater than <code>stringName.length</code>, it is treated as if it were <code>stringName.length</code>.</li>\n</ul>\n<p>If <code>indexA</code> is larger than <code>indexB</code>, then the effect of <code>substring</code> is as if the two arguments were swapped; for example, <code><em>str</em>.substring(1, 0) == <em>str</em>.substring(0, 1)</code>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_substring\"></span><h4 class = \"editable\">Example: Using <code>substring</code></h4>\n<p>The following example uses <code>substring</code> to display characters from the string &quot;<code>Mozilla</code>&quot;:</p>\n<pre class = \"eval\">// assumes a print function is defined\nvar anyString = &quot;Mozilla&quot;;\n\n// Displays &quot;Moz&quot;\nprint(anyString.substring(0,3));\nprint(anyString.substring(3,0));\n\n// Displays &quot;lla&quot;\nprint(anyString.substring(4,7));\nprint(anyString.substring(7,4));\n\n// Displays &quot;Mozill&quot;\nprint(anyString.substring(0,6));\n\n// Displays &quot;Mozilla&quot;\nprint(anyString.substring(0,7));\nprint(anyString.substring(0,10));\n</pre>\n</div><div id = \"section_7\"><span id = \"Example:_Replacing_a_substring_within_a_string\"></span><h4 class = \"editable\">Example: Replacing a substring within a string</h4>\n<p>The following example replaces a substring within a string. It will replace both individual characters and substrings. The function call at the end of the example changes the string &quot;<code>Brave New World</code>&quot; into &quot;<code>Brave New Web</code>&quot;.</p>\n<pre class = \"eval\">function replaceString(oldS, newS, fullS) {\n// Replaces oldS with newS in the string fullS\n   for (var i = 0; i &lt; fullS.length; i++) {\n      if (fullS.substring(i, i + oldS.length) == oldS) {\n         fullS = fullS.substring(0, i) + newS + fullS.substring(i + oldS.length, fullS.length);\n      }\n   }\n   return fullS;\n}\n\nreplaceString(&quot;World&quot;, &quot;Web&quot;, &quot;Brave New World&quot;);</pre>\n<p>Note that this can result in an infinite loop if <code>oldS</code> is itself a substring of <code>newS</code> -- for example, if you attempted to replace &quot;World&quot; with &quot;OtherWorld&quot; here. A better method for replacing strings is as follows:</p>\n<pre class = \"default prettyprint\"><code><span class = \"kwd\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">function</span><span class = \"pln\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \"> replaceString</span><span class = \"pun\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">(</span><span class = \"pln\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">oldS</span><span class = \"pun\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">,</span><span class = \"pln\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \"> newS</span><span class = \"pun\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">,</span><span class = \"kwd\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">fullS</span><span class = \"pun\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">){</span></code>\n<code><span class = \"pln\">&nbsp; &nbsp; </span><span class = \"kwd\">return</span><span class = \"pln\"> fullS</span><span class = \"pun\">.</span><span class = \"pln\">split</span><span class = \"pun\">(</span><span class = \"pln\">oldS</span><span class = \"pun\">).</span><span class = \"pln\">join</span><span class = \"pun\">(</span><span class = \"kwd\">newS</span><span class = \"pun\">);</span>\n<span class = \"pun\">}</span>\n</code></pre>\n\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_substring\"></span><h4 class = \"editable\">Example: Using <code>substring</code></h4>\n<p>The following example uses <code>substring</code> to display characters from the string &quot;<code>Mozilla</code>&quot;:</p>\n<pre class = \"eval\">// assumes a print function is defined\nvar anyString = &quot;Mozilla&quot;;\n\n// Displays &quot;Moz&quot;\nprint(anyString.substring(0,3));\nprint(anyString.substring(3,0));\n\n// Displays &quot;lla&quot;\nprint(anyString.substring(4,7));\nprint(anyString.substring(7,4));\n\n// Displays &quot;Mozill&quot;\nprint(anyString.substring(0,6));\n\n// Displays &quot;Mozilla&quot;\nprint(anyString.substring(0,7));\nprint(anyString.substring(0,10));\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Replacing_a_substring_within_a_string\"></span><h4 class = \"editable\">Example: Replacing a substring within a string</h4>\n<p>The following example replaces a substring within a string. It will replace both individual characters and substrings. The function call at the end of the example changes the string &quot;<code>Brave New World</code>&quot; into &quot;<code>Brave New Web</code>&quot;.</p>\n<pre class = \"eval\">function replaceString(oldS, newS, fullS) {\n// Replaces oldS with newS in the string fullS\n   for (var i = 0; i &lt; fullS.length; i++) {\n      if (fullS.substring(i, i + oldS.length) == oldS) {\n         fullS = fullS.substring(0, i) + newS + fullS.substring(i + oldS.length, fullS.length);\n      }\n   }\n   return fullS;\n}\n\nreplaceString(&quot;World&quot;, &quot;Web&quot;, &quot;Brave New World&quot;);</pre>\n<p>Note that this can result in an infinite loop if <code>oldS</code> is itself a substring of <code>newS</code> -- for example, if you attempted to replace &quot;World&quot; with &quot;OtherWorld&quot; here. A better method for replacing strings is as follows:</p>\n<pre class = \"default prettyprint\"><code><span class = \"kwd\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">function</span><span class = \"pln\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \"> replaceString</span><span class = \"pun\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">(</span><span class = \"pln\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">oldS</span><span class = \"pun\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">,</span><span class = \"pln\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \"> newS</span><span class = \"pun\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">,</span><span class = \"kwd\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">fullS</span><span class = \"pun\" style = \"font-family: 'Courier New', 'Andale Mono', monospace; line-height: normal; white-space: pre; background-color: rgb(246, 246, 242); \">){</span></code>\n<code><span class = \"pln\">&nbsp; &nbsp; </span><span class = \"kwd\">return</span><span class = \"pln\"> fullS</span><span class = \"pun\">.</span><span class = \"pln\">split</span><span class = \"pun\">(</span><span class = \"pln\">oldS</span><span class = \"pun\">).</span><span class = \"pln\">join</span><span class = \"pun\">(</span><span class = \"kwd\">newS</span><span class = \"pun\">);</span>\n<span class = \"pun\">}</span>\n</code></pre>\n\n</div>",
			"<div id = \"section_8\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/substr\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substr\">substr</a>, <a class = \"internal\" title = \"En/Core JavaScript 1.5 Reference/Global Objects/String/Slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/slice\">slice</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using substring",
			"Example: Replacing a substring within a string",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substr",
		"title": "String.substr",
		"_id": "4eea8561a4c86c4dba000102",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the characters in a string beginning at the specified location through the specified number of characters.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None, although ECMAScript 3rd Edition has a non-normative section suggesting uniform semantics</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.substr(<em>start</em>[, <em>length</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>start</code></dt> <dd>Location at which to begin extracting characters.</dd>\n</dl>\n<dl> <dt><code>length</code></dt> <dd>The number of characters to extract.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>start</code> is a character index. The index of the first character is 0, and the index of the last character is 1 less than the length of the string. <code>substr</code> begins extracting characters at <code>start</code> and collects <code>length</code> characters (unless it reaches the end of the string first, in which case it will return fewer).</p>\n<p>If <code>start</code> is positive and is greater than or equal to the length of the string, <code>substr</code> returns an empty string.</p>\n<p>If <code>start</code> is negative, <code>substr</code> uses it as a character index from the end of the string. If <code>start</code> is negative and <code>abs(start)</code> is larger than the length of the string, <code>substr</code> uses 0 as the start index. Note: the described handling of negative values of the <code>start</code> argument is not supported by Microsoft JScript <a class = \"external\" rel = \"external\" href = \"http://msdn2.microsoft.com/en-us/library/0esxc5wy.aspx\" title = \"http://msdn2.microsoft.com/en-us/library/0esxc5wy.aspx\" target = \"_blank\">[1]</a>.</p>\n<p>If <code>length</code> is 0 or negative, <code>substr</code> returns an empty string. If <code>length</code> is omitted, <code>substr</code> extracts characters to the end of the string.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Description\"></span><span id = \"Compatibility\"></span><h3 class = \"editable\">Compatibility</h3>\n<p>Microsoft's JScript does not support negative values for the start index. If you wish to make use of this feature, you can use the following compatibilty code to work around this bug:</p>\n\r\n          <pre name = \"code\" class = \"js\">// only run when the substr function is broken\nif ('ab'.substr(-1) != 'b')\n{\n  /**\n   *  Get the substring of a string\n   *  @param  {integer}  start   where to start the substring\n   *  @param  {integer}  length  how many characters to return\n   *  @return {string}\n   */\n  String.prototype.substr = function(substr) {\n    return function(start, length) {\n      // did we get a negative start, calculate how much it is from the beginning of the string\n      if (start &lt; 0) start = this.length + start;\n      \n      // call the original function\n      return substr.call(this, start, length);\n    }\n  }(String.prototype.substr);\n}</pre>\r\n        \n<p>Examples</p>\n<div id = \"section_6\"><span id = \"Example:_Using_substr\"></span><h4 class = \"editable\">Example: Using <code>substr</code></h4>\n<p>Consider the following script:</p>\n<pre class = \"eval\">// assumes a print function is defined\nvar str = &quot;abcdefghij&quot;;\nprint(&quot;(1,2): &quot;    + str.substr(1,2));\nprint(&quot;(-3,2): &quot;   + str.substr(-3,2));\nprint(&quot;(-3): &quot;     + str.substr(-3));\nprint(&quot;(1): &quot;      + str.substr(1));\nprint(&quot;(-20, 2): &quot; + str.substr(-20,2));\nprint(&quot;(20, 2): &quot;  + str.substr(20,2));\n</pre>\n<p>This script displays:</p>\n<pre class = \"eval\">(1,2): bc\n(-3,2): hi\n(-3): hij\n(1): bcdefghij\n(-20, 2): ab\n(20, 2):\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_substr\"></span><h4 class = \"editable\">Example: Using <code>substr</code></h4>\n<p>Consider the following script:</p>\n<pre class = \"eval\">// assumes a print function is defined\nvar str = &quot;abcdefghij&quot;;\nprint(&quot;(1,2): &quot;    + str.substr(1,2));\nprint(&quot;(-3,2): &quot;   + str.substr(-3,2));\nprint(&quot;(-3): &quot;     + str.substr(-3));\nprint(&quot;(1): &quot;      + str.substr(1));\nprint(&quot;(-20, 2): &quot; + str.substr(-20,2));\nprint(&quot;(20, 2): &quot;  + str.substr(20,2));\n</pre>\n<p>This script displays:</p>\n<pre class = \"eval\">(1,2): bc\n(-3,2): hi\n(-3): hij\n(1): bcdefghij\n(-20, 2): ab\n(20, 2):\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a class = \"internal\" style = \"text-decoration: none; color: rgb(4, 137, 183) !important; cursor: default; \" title = \"En/Core JavaScript 1.5 Reference/Global Objects/String/Slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/slice\">slice</a>,&nbsp;<a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/substring\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substring\">substring</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Compatibility",
			"Example: Using substr",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt",
		"title": "String.charAt",
		"_id": "4eea8563a4c86c4dba000103",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the specified character from a string.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.charAt(<em>index</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>index</code>&nbsp;</dt> <dd>An integer between 0 and 1 less than the length of the string.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Characters in a string are indexed from left to right. The index of the first character is 0, and the index of the last character in a string called <code>stringName</code> is <code>stringName.length - 1</code>. If the <code>index</code> you supply is out of range, JavaScript returns an empty string.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Displaying_characters_at_different_locations_in_a_string\"></span><h4 class = \"editable\">Example: Displaying characters at different locations in a string</h4>\n<p>The following example displays characters at different locations in the string &quot;<code>Brave new world</code>&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var anyString=&quot;Brave new world&quot;;\n\ndocument.writeln(&quot;The character at index 0 is '&quot; + anyString.charAt(0) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 1 is '&quot; + anyString.charAt(1) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 2 is '&quot; + anyString.charAt(2) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 3 is '&quot; + anyString.charAt(3) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 4 is '&quot; + anyString.charAt(4) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 999 is '&quot; + anyString.charAt(999) + &quot;'&quot;);</pre>\r\n        \n<p>These lines display the following:</p>\n<pre>\nThe character at index 0 is 'B'\nThe character at index 1 is 'r'\nThe character at index 2 is 'a'\nThe character at index 3 is 'v'\nThe character at index 4 is 'e'\nThe character at index 999 is ''\n</pre>\n</div><div id = \"section_7\"><span id = \"Example_2:.C2.A0Getting_whole_characters\"></span><h4 class = \"editable\">Example 2:&nbsp;Getting whole characters</h4>\n<p>The following provides a means of ensuring that going through a string loop always provides a whole character, even if the string contains characters that are not in the Basic Multi-lingual Plane.</p>\n\r\n          <pre name = \"code\" class = \"js\">var str = 'A\\uD87E\\uDC04Z'; // We could also use a non-BMP character directly\nfor (var i=0, chr; i &lt; str.length; i++) {\n    if ((chr = getWholeChar(str, i)) === false) {continue;} // Adapt this line at the top of each loop, passing in the whole string and the current iteration and returning a variable to represent the individual character\n    alert(chr);\n}\n\nfunction getWholeChar (str, i) {\n    var code = str.charCodeAt(i);     \n \n    if (isNaN(code)) {\n        return ''; // Position not found\n    }\n    if (code &lt; 0xD800 || code &gt; 0xDFFF) {\n        return str.charAt(i);\n    }\n    if (0xD800 &lt;= code &amp;&amp; code &lt;= 0xDBFF) { // High surrogate (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        if (str.length &lt;= (i+1))  {\n            throw 'High surrogate without following low surrogate';\n        }\n        var next = str.charCodeAt(i+1);\n        if (0xDC00 &gt; next || next &gt; 0xDFFF) {\n            throw 'High surrogate without following low surrogate';\n        }\n        return str.charAt(i)+str.charAt(i+1);\n    }\n    // Low surrogate (0xDC00 &lt;= code &amp;&amp; code &lt;= 0xDFFF)\n    if (i === 0) {\n        throw 'Low surrogate without preceding high surrogate';\n    }\n    var prev = str.charCodeAt(i-1);\n    if (0xD800 &gt; prev || prev &gt; 0xDBFF) { // (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        throw 'Low surrogate without preceding high surrogate';\n    }\n    return false; // We can pass over low surrogates now as the second component in a pair which we have already processed\n}</pre>\r\n        \n<p>&nbsp;</p>\n<p>In an exclusive JavaScript 1.7+&nbsp;environment (such as Firefox) which allows destructured assignment, the following is a more succinct and somewhat more flexible alternative in that it does incrementing for an incrementing variable automatically (if the character warrants it in being a surrogate pair).</p>\n\r\n          <pre name = \"code\" class = \"js\">var str = 'A\\uD87E\\uDC04Z'; // We could also use a non-BMP character directly\nfor (var i=0, chr; i &lt; str.length; i++) {\n    [chr, i] = getWholeCharAndI(str, i); // Adapt this line at the top of each loop, passing in the whole string and the current iteration and returning an array with the individual character and 'i' value (only changed if a surrogate pair)\n    alert(chr);\n}\n\nfunction getWholeCharAndI (str, i) {\n    var code = str.charCodeAt(i);\n    if (isNaN(code)) {\n        return ''; // Position not found\n    }\n    if (code &lt; 0xD800 || code &gt; 0xDFFF) {\n        return [str.charAt(i), i]; // Normal character, keeping 'i' the same\n    }\n    if (0xD800 &lt;= code &amp;&amp; code &lt;= 0xDBFF) { // High surrogate (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        if (str.length &lt;= (i+1))  {\n            throw 'High surrogate without following low surrogate';\n        }\n        var next = str.charCodeAt(i+1);\n        if (0xDC00 &gt; next || next &gt; 0xDFFF) {\n            throw 'High surrogate without following low surrogate';\n        }\n        return [str.charAt(i)+str.charAt(i+1), i+1];\n    }\n    // Low surrogate (0xDC00 &lt;= code &amp;&amp; code &lt;= 0xDFFF)\n    if (i === 0) {\n        throw 'Low surrogate without preceding high surrogate';\n    }\n    var prev = str.charCodeAt(i-1);\n    if (0xD800 &gt; prev || prev &gt; 0xDBFF) { // (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        throw 'Low surrogate without preceding high surrogate';\n    }\n    return [str.charAt(i+1), i+1]; // Return the next character instead (and increment)\n}</pre>\r\n        \n<p>&nbsp;</p>\n</div><div id = \"section_8\"><span id = \"Example_3:.C2.A0Fixing_charAt_to_support_non-Basic-Multilingual-Plane_(BMP).C2.A0characters\"></span><h4 class = \"editable\">Example 3:&nbsp;Fixing charAt to support non-Basic-Multilingual-Plane (BMP)&nbsp;characters</h4>\n<p>While example 2 may be more frequently useful for those wishing to support non-BMP characters (since the above does not require the caller to know where any non-BMP&nbsp;character might appear), in the event that one <em>does</em> wish, in choosing a character by index, to treat the surrogate pairs within a string as the single characters they represent, one can use the following:</p>\n\r\n          <pre name = \"code\" class = \"js\">function fixedCharAt (str, idx) {\n    var ret = '';\n    str += '';\n    var end = str.length;\n\n    var surrogatePairs = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n    while ((surrogatePairs.exec(str)) != null) {\n        var li = surrogatePairs.lastIndex;\n        if (li - 2 &lt; idx) {\n            idx++;\n        }\n        else {\n            break;\n        }\n    }\n\n    if (idx &gt;= end || idx &lt; 0) {\n        return '';\n    }\n\n    ret += str.charAt(idx);\n\n    if (/[\\uD800-\\uDBFF]/.test(ret) &amp;&amp; /[\\uDC00-\\uDFFF]/.test(str.charAt(idx+1))) {\n        ret += str.charAt(idx+1); // Go one further, since one of the &quot;characters&quot; is part of a surrogate pair\n    }\n    return ret;\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Displaying_characters_at_different_locations_in_a_string\"></span><h4 class = \"editable\">Example: Displaying characters at different locations in a string</h4>\n<p>The following example displays characters at different locations in the string &quot;<code>Brave new world</code>&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var anyString=&quot;Brave new world&quot;;\n\ndocument.writeln(&quot;The character at index 0 is '&quot; + anyString.charAt(0) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 1 is '&quot; + anyString.charAt(1) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 2 is '&quot; + anyString.charAt(2) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 3 is '&quot; + anyString.charAt(3) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 4 is '&quot; + anyString.charAt(4) + &quot;'&quot;);\ndocument.writeln(&quot;The character at index 999 is '&quot; + anyString.charAt(999) + &quot;'&quot;);</pre>\r\n        \n<p>These lines display the following:</p>\n<pre>\nThe character at index 0 is 'B'\nThe character at index 1 is 'r'\nThe character at index 2 is 'a'\nThe character at index 3 is 'v'\nThe character at index 4 is 'e'\nThe character at index 999 is ''\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Example_2:.C2.A0Getting_whole_characters\"></span><h4 class = \"editable\">Example 2:&nbsp;Getting whole characters</h4>\n<p>The following provides a means of ensuring that going through a string loop always provides a whole character, even if the string contains characters that are not in the Basic Multi-lingual Plane.</p>\n\r\n          <pre name = \"code\" class = \"js\">var str = 'A\\uD87E\\uDC04Z'; // We could also use a non-BMP character directly\nfor (var i=0, chr; i &lt; str.length; i++) {\n    if ((chr = getWholeChar(str, i)) === false) {continue;} // Adapt this line at the top of each loop, passing in the whole string and the current iteration and returning a variable to represent the individual character\n    alert(chr);\n}\n\nfunction getWholeChar (str, i) {\n    var code = str.charCodeAt(i);     \n \n    if (isNaN(code)) {\n        return ''; // Position not found\n    }\n    if (code &lt; 0xD800 || code &gt; 0xDFFF) {\n        return str.charAt(i);\n    }\n    if (0xD800 &lt;= code &amp;&amp; code &lt;= 0xDBFF) { // High surrogate (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        if (str.length &lt;= (i+1))  {\n            throw 'High surrogate without following low surrogate';\n        }\n        var next = str.charCodeAt(i+1);\n        if (0xDC00 &gt; next || next &gt; 0xDFFF) {\n            throw 'High surrogate without following low surrogate';\n        }\n        return str.charAt(i)+str.charAt(i+1);\n    }\n    // Low surrogate (0xDC00 &lt;= code &amp;&amp; code &lt;= 0xDFFF)\n    if (i === 0) {\n        throw 'Low surrogate without preceding high surrogate';\n    }\n    var prev = str.charCodeAt(i-1);\n    if (0xD800 &gt; prev || prev &gt; 0xDBFF) { // (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        throw 'Low surrogate without preceding high surrogate';\n    }\n    return false; // We can pass over low surrogates now as the second component in a pair which we have already processed\n}</pre>\r\n        \n<p>&nbsp;</p>\n<p>In an exclusive JavaScript 1.7+&nbsp;environment (such as Firefox) which allows destructured assignment, the following is a more succinct and somewhat more flexible alternative in that it does incrementing for an incrementing variable automatically (if the character warrants it in being a surrogate pair).</p>\n\r\n          <pre name = \"code\" class = \"js\">var str = 'A\\uD87E\\uDC04Z'; // We could also use a non-BMP character directly\nfor (var i=0, chr; i &lt; str.length; i++) {\n    [chr, i] = getWholeCharAndI(str, i); // Adapt this line at the top of each loop, passing in the whole string and the current iteration and returning an array with the individual character and 'i' value (only changed if a surrogate pair)\n    alert(chr);\n}\n\nfunction getWholeCharAndI (str, i) {\n    var code = str.charCodeAt(i);\n    if (isNaN(code)) {\n        return ''; // Position not found\n    }\n    if (code &lt; 0xD800 || code &gt; 0xDFFF) {\n        return [str.charAt(i), i]; // Normal character, keeping 'i' the same\n    }\n    if (0xD800 &lt;= code &amp;&amp; code &lt;= 0xDBFF) { // High surrogate (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        if (str.length &lt;= (i+1))  {\n            throw 'High surrogate without following low surrogate';\n        }\n        var next = str.charCodeAt(i+1);\n        if (0xDC00 &gt; next || next &gt; 0xDFFF) {\n            throw 'High surrogate without following low surrogate';\n        }\n        return [str.charAt(i)+str.charAt(i+1), i+1];\n    }\n    // Low surrogate (0xDC00 &lt;= code &amp;&amp; code &lt;= 0xDFFF)\n    if (i === 0) {\n        throw 'Low surrogate without preceding high surrogate';\n    }\n    var prev = str.charCodeAt(i-1);\n    if (0xD800 &gt; prev || prev &gt; 0xDBFF) { // (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        throw 'Low surrogate without preceding high surrogate';\n    }\n    return [str.charAt(i+1), i+1]; // Return the next character instead (and increment)\n}</pre>\r\n        \n<p>&nbsp;</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Example_3:.C2.A0Fixing_charAt_to_support_non-Basic-Multilingual-Plane_(BMP).C2.A0characters\"></span><h4 class = \"editable\">Example 3:&nbsp;Fixing charAt to support non-Basic-Multilingual-Plane (BMP)&nbsp;characters</h4>\n<p>While example 2 may be more frequently useful for those wishing to support non-BMP characters (since the above does not require the caller to know where any non-BMP&nbsp;character might appear), in the event that one <em>does</em> wish, in choosing a character by index, to treat the surrogate pairs within a string as the single characters they represent, one can use the following:</p>\n\r\n          <pre name = \"code\" class = \"js\">function fixedCharAt (str, idx) {\n    var ret = '';\n    str += '';\n    var end = str.length;\n\n    var surrogatePairs = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n    while ((surrogatePairs.exec(str)) != null) {\n        var li = surrogatePairs.lastIndex;\n        if (li - 2 &lt; idx) {\n            idx++;\n        }\n        else {\n            break;\n        }\n    }\n\n    if (idx &gt;= end || idx &lt; 0) {\n        return '';\n    }\n\n    ret += str.charAt(idx);\n\n    if (/[\\uD800-\\uDBFF]/.test(ret) &amp;&amp; /[\\uDC00-\\uDFFF]/.test(str.charAt(idx+1))) {\n        ret += str.charAt(idx+1); // Go one further, since one of the &quot;characters&quot; is part of a surrogate pair\n    }\n    return ret;\n}</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf\">indexOf</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/lastIndexOf\">lastIndexOf</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/split\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split\">split</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/charCodeAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt\">charCodeAt</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Displaying characters at different locations in a string",
			"Example 2:&nbsp;Getting whole characters",
			"Example 3:&nbsp;Fixing charAt to support non-Basic-Multilingual-Plane (BMP)&nbsp;characters",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/valueOf",
		"title": "String.valueOf",
		"_id": "4eea8567a4c86c4dba000104",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the primitive value of a String object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.valueOf()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>valueOf</code> method of <code>String</code> returns the primitive value of a String object as a string data type. This value is equivalent to String.toString.</p>\n<p>This method is usually called internally by JavaScript and not explicitly in code.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_valueOf\"></span><h4 class = \"editable\">Example: Using <code>valueOf</code></h4>\n<pre>\nx = new String(&quot;Hello world&quot;);\nalert(x.valueOf())          // Displays &quot;Hello world&quot;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_valueOf\"></span><h4 class = \"editable\">Example: Using <code>valueOf</code></h4>\n<pre>\nx = new String(&quot;Hello world&quot;);\nalert(x.valueOf())          // Displays &quot;Hello world&quot;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toString\">toString</a>, <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\">Object.valueOf</a></p>\n<p>&nbsp;</p> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using valueOf",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/prototype",
		"title": "String.prototype",
		"_id": "4eea8568a4c86c4dba000105",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a> prototype object.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>All <code>String</code> instances inherit from <code>String.prototype</code>. Changes to the <code>String</code> prototype object are propagated to all <code>String</code> instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/constructor\"><code>constructor</code></a></dt> <dd>Specifies the function that creates an object's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/length\"><code>length</code></a></dt> <dd>Reflects the length of the string.</dd> <dt><em>N</em></dt> <dd>Used to access the character in the <em>N</em>th position where <em>N</em> is a positive integer between 0 and one less than the value of <a title = \"en/JavaScript/Reference/Global_Objects/String/length\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/length\"><code>length</code></a>. These properties are read-only.</dd>\n</dl>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Properties inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Parent\" title = \"en/JavaScript/Reference/Global_Objects/Object/Parent\"><code>__parent__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto\" title = \"en/JavaScript/Reference/Global_Objects/Object/Proto\"><code>__proto__</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n <div id = \"section_5\"><span id = \"Methods_unrelated_to_HTML\"></span><h3 class = \"editable\">Methods unrelated to HTML</h3> \n\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\"><code>charAt</code></a></dt> <dd>Returns the character at the specified index.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/charCodeAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt\"><code>charCodeAt</code></a></dt> <dd>Returns a number indicating the Unicode value of the character at the given index.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/concat\"><code>concat</code></a></dt> <dd>Combines the text of two strings and returns a new string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf\"><code>indexOf</code></a></dt> <dd>Returns the index within the calling String object of the first occurrence of the specified value, or -1 if not found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/lastIndexOf\"><code>lastIndexOf</code></a></dt> <dd>Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/localeCompare\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare\"><code>localeCompare</code></a></dt> <dd>Returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/match\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/match\"><code>match</code></a></dt> <dd>Used to match a regular expression against a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/quote\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/quote\"><code>quote</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Wraps the string in double quotes (&quot;<code>&quot;</code>&quot;).</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/replace\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace\"><code>replace</code></a></dt> <dd>Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/search\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/search\"><code>search</code></a></dt> <dd>Executes the search for a match between a regular expression and a specified string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/slice\"><code>slice</code></a></dt> <dd>Extracts a section of a string and returns a new string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/split\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split\"><code>split</code></a></dt> <dd>Splits a String object into an array of strings by separating the string into substrings.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/substr\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substr\"><code>substr</code></a></dt> <dd>Returns the characters in a string beginning at the specified location through the specified number of characters.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/substring\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substring\"><code>substring</code></a></dt> <dd>Returns the characters in a string between two indexes into the string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase\"><code>toLocaleLowerCase</code></a></dt> <dd>The characters within a string are converted to lower case while respecting the current locale. For most languages, this will return the same as <a title = \"en/JavaScript/Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\"><code>toLowerCase</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase\"><code>toLocaleUpperCase</code></a></dt> <dd>The characters within a string are converted to upper case while respecting the current locale. For most languages, this will return the same as <a title = \"en/JavaScript/Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\"><code>toUpperCase</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\"><code>toLowerCase</code></a></dt> <dd>Returns the calling string value converted to lower case.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toSource\"><code>toSource</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns an object literal representing the specified object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toString\"><code>toString</code></a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\"><code>toUpperCase</code></a></dt> <dd>Returns the calling string value converted to uppercase.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trim\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/Trim\"><code>trim</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n<br/> Trims whitespace from the beginning and end of the string. Part of the ECMAScript 5 standard.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trimLeft\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimLeft\"><code>trimLeft</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Trims whitespace from the left side of the string.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trimRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimRight\"><code>trimRight</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Trims whitespace from the right side of the string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/valueOf\"><code>valueOf</code></a></dt> <dd>Returns the primitive value of the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\"><code>Object.prototype.valueOf</code></a> method.</dd>\n</dl>\n </div><div id = \"section_6\"><span id = \"HTML_wrapper_methods\"></span><h3 class = \"editable\">HTML wrapper methods</h3>\n\n\n<p>\n\n<div style = \"overflow:hidden; border: 1px solid #FFB752; background-color: #FEE3BC; font-weight: bold; text-align: center; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\"><p style = \"margin: 4px 0px 4px 0px;\">Non-standard</p></div></p>\n<p> Each of the following methods returns a copy of the string wrapped inside the appropriate HTML tag.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/anchor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/anchor\"><code>anchor</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" target = \"_blank\"><code>&lt;a name=&quot;<em>name</em>&quot;&gt;</code></a> (hypertext target)</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/big\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/big\"><code>big</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" target = \"_blank\"><code>&lt;big&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/blink\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/blink\"><code>blink</code></a></dt> <dd><code>&lt;blink&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/bold\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/bold\"><code>bold</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" target = \"_blank\"><code>&lt;b&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fixed\"><code>fixed</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" target = \"_blank\"><code>&lt;tt&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fontcolor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontcolor\"><code>fontcolor</code></a></dt> <dd><code>&lt;font color=&quot;<em>color</em>&quot;&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fontsize\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontsize\"><code>fontsize</code></a></dt> <dd><code>&lt;font size=&quot;<em>size</em>&quot;&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/italics\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/italics\"><code>italics</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" target = \"_blank\"><code>&lt;i&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/link\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/link\"><code>link</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" target = \"_blank\"><code>&lt;a href=&quot;<em>url</em>&quot;&gt;</code></a> (link to URL)</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/small\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/small\"><code>small</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" target = \"_blank\"><code>&lt;small&gt;</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/strike\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/strike\"><code>strike</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" target = \"_blank\"><code>&lt;strike&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/sub\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sub\"><code>sub</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" target = \"_blank\"><code>&lt;sub&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/sup\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sup\"><code>sup</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" target = \"_blank\"><code>&lt;sup&gt;</code></a></dd>\n</dl>\n<p>These methods are of limited use, as they provide only a subset of the available HTML tags and attributes.</p>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Methods_unrelated_to_HTML\"></span><h3 class = \"editable\">Methods unrelated to HTML</h3> \n\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\"><code>charAt</code></a></dt> <dd>Returns the character at the specified index.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/charCodeAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt\"><code>charCodeAt</code></a></dt> <dd>Returns a number indicating the Unicode value of the character at the given index.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/concat\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/concat\"><code>concat</code></a></dt> <dd>Combines the text of two strings and returns a new string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf\"><code>indexOf</code></a></dt> <dd>Returns the index within the calling String object of the first occurrence of the specified value, or -1 if not found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/lastIndexOf\"><code>lastIndexOf</code></a></dt> <dd>Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/localeCompare\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare\"><code>localeCompare</code></a></dt> <dd>Returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/match\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/match\"><code>match</code></a></dt> <dd>Used to match a regular expression against a string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/quote\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/quote\"><code>quote</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Wraps the string in double quotes (&quot;<code>&quot;</code>&quot;).</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/replace\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace\"><code>replace</code></a></dt> <dd>Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/search\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/search\"><code>search</code></a></dt> <dd>Executes the search for a match between a regular expression and a specified string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/slice\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/slice\"><code>slice</code></a></dt> <dd>Extracts a section of a string and returns a new string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/split\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split\"><code>split</code></a></dt> <dd>Splits a String object into an array of strings by separating the string into substrings.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/substr\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substr\"><code>substr</code></a></dt> <dd>Returns the characters in a string beginning at the specified location through the specified number of characters.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/substring\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substring\"><code>substring</code></a></dt> <dd>Returns the characters in a string between two indexes into the string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase\"><code>toLocaleLowerCase</code></a></dt> <dd>The characters within a string are converted to lower case while respecting the current locale. For most languages, this will return the same as <a title = \"en/JavaScript/Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\"><code>toLowerCase</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase\"><code>toLocaleUpperCase</code></a></dt> <dd>The characters within a string are converted to upper case while respecting the current locale. For most languages, this will return the same as <a title = \"en/JavaScript/Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\"><code>toUpperCase</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\"><code>toLowerCase</code></a></dt> <dd>Returns the calling string value converted to lower case.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toSource\"><code>toSource</code></a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Returns an object literal representing the specified object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\"><code>Object.prototype.toSource</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toString\"><code>toString</code></a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\"><code>Object.prototype.toString</code></a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\"><code>toUpperCase</code></a></dt> <dd>Returns the calling string value converted to uppercase.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trim\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/Trim\"><code>trim</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n<br/> Trims whitespace from the beginning and end of the string. Part of the ECMAScript 5 standard.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trimLeft\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimLeft\"><code>trimLeft</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Trims whitespace from the left side of the string.</dd> <dt><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/String/trimRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimRight\"><code>trimRight</code></a></dt> <dd>\n<span style = \"border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;\">Requires <a rel = \"custom\" href = \"https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.1\">JavaScript 1.8.1</a></span>\n <span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     <br/> Trims whitespace from the right side of the string.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/valueOf\"><code>valueOf</code></a></dt> <dd>Returns the primitive value of the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/valueOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/valueOf\"><code>Object.prototype.valueOf</code></a> method.</dd>\n</dl>\n </div>",
			"<div id = \"section_6\"><span id = \"HTML_wrapper_methods\"></span><h3 class = \"editable\">HTML wrapper methods</h3>\n\n\n<p>\n\n<div style = \"overflow:hidden; border: 1px solid #FFB752; background-color: #FEE3BC; font-weight: bold; text-align: center; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\"><p style = \"margin: 4px 0px 4px 0px;\">Non-standard</p></div></p>\n<p> Each of the following methods returns a copy of the string wrapped inside the appropriate HTML tag.</p>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/anchor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/anchor\"><code>anchor</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" target = \"_blank\"><code>&lt;a name=&quot;<em>name</em>&quot;&gt;</code></a> (hypertext target)</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/big\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/big\"><code>big</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" target = \"_blank\"><code>&lt;big&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/blink\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/blink\"><code>blink</code></a></dt> <dd><code>&lt;blink&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/bold\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/bold\"><code>bold</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" target = \"_blank\"><code>&lt;b&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fixed\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fixed\"><code>fixed</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" target = \"_blank\"><code>&lt;tt&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fontcolor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontcolor\"><code>fontcolor</code></a></dt> <dd><code>&lt;font color=&quot;<em>color</em>&quot;&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/fontsize\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontsize\"><code>fontsize</code></a></dt> <dd><code>&lt;font size=&quot;<em>size</em>&quot;&gt;</code></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/italics\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/italics\"><code>italics</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" target = \"_blank\"><code>&lt;i&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/link\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/link\"><code>link</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" target = \"_blank\"><code>&lt;a href=&quot;<em>url</em>&quot;&gt;</code></a> (link to URL)</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/small\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/small\"><code>small</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" target = \"_blank\"><code>&lt;small&gt;</code></a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/strike\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/strike\"><code>strike</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" target = \"_blank\"><code>&lt;strike&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/sub\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sub\"><code>sub</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" target = \"_blank\"><code>&lt;sub&gt;</code></a></dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/String/sup\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sup\"><code>sup</code></a></dt> <dd><a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" target = \"_blank\"><code>&lt;sup&gt;</code></a></dd>\n</dl>\n<p>These methods are of limited use, as they provide only a subset of the available HTML tags and attributes.</p>\n<div>\n<div style = \"border: 1px solid rgb(204, 204, 204); margin: 10px 0px; padding: 0px 10px; background: rgb(238, 238, 238) none repeat scroll 0% 0%;\">\n<span style = \"font-weight:bold;\">Methods inherited from  <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></span>:<br/><span style = \"font-size: smaller;\"><a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineGetter\"><code>__defineGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/DefineSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/DefineSetter\"><code>__defineSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\" title = \"en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty\"><code>hasOwnProperty</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\" title = \"en/JavaScript/Reference/Global_Objects/Object/IsPrototypeOf\"><code>isPrototypeOf</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupGetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupGetter\"><code>__lookupGetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/LookupSetter\" title = \"en/JavaScript/Reference/Global_Objects/Object/LookupSetter\"><code>__lookupSetter__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\" title = \"en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod\"><code>__noSuchMethod__</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\" title = \"en/JavaScript/Reference/Global_Objects/Object/PropertyIsEnumerable\"><code>propertyIsEnumerable</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\" title = \"en/JavaScript/Reference/Global_Objects/Object/ToLocaleString\"><code>toLocaleString</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Unwatch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Unwatch\"><code>unwatch</code></a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Watch\" title = \"en/JavaScript/Reference/Global_Objects/Object/Watch\"><code>watch</code></a></span>\n</div>\n</div>\n</div>",
			"<div id = \"section_7\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_8\"><span id = \"Example:_Extending_string_instances_with_a_repeat_method\"></span><h3 class = \"editable\">Example: Extending string instances with a <code>repeat</code> method</h3>\n<p>The following example creates a method, <code>str_rep</code>, and uses the statement <code>String.prototype.repeat = str_rep</code> to add the method to all <code>String</code> objects. All <code>String</code> instances then have that method, even objects already created. The example then creates an alternate method and overrides the previous method in one of the <code>String</code> objects using the statement <code>s1.repeat = fake_rep</code>. The <code>str_rep</code> method of the remaining <code>String</code> objects is not altered.</p>\n\r\n          <pre name = \"code\" class = \"js\">var s1 = new String(&quot;a&quot;);\nvar s2 = new String(&quot;b&quot;);\nvar s3 = new String(&quot;c&quot;);\n\n// Create a repeat-string-N-times method for all String objects\nfunction str_rep(n) {\n   var s = &quot;&quot;, t = this.toString();\n   while (--n &gt;= 0) {\n     s += t\n   }\n   return s;\n}\n\nString.prototype.repeat = str_rep;\n\ns1a=s1.repeat(3); // returns &quot;aaa&quot;\ns2a=s2.repeat(5); // returns &quot;bbbbb&quot;\ns3a=s3.repeat(2); // returns &quot;cc&quot;\n\n// Create an alternate method and assign it to only one String variable\nfunction fake_rep(n) {\n   return &quot;repeat &quot; + this + &quot; &quot; + n + &quot; times.&quot;;\n}\n\ns1.repeat = fake_rep\ns1b=s1.repeat(1); // returns &quot;repeat a 1 times.&quot;\ns2b=s2.repeat(4); // returns &quot;bbbb&quot;\ns3b=s3.repeat(6); // returns &quot;cccccc&quot;</pre>\r\n        \n<p>The function in this example also works on <code>String</code> objects not created with the <code>String</code> constructor. The following code returns &quot;zzz&quot;.</p>\n<pre class = \"eval\">&quot;z&quot;.repeat(3);\n</pre>\n<p></p></div></div>",
			"<div id = \"section_8\"><span id = \"Example:_Extending_string_instances_with_a_repeat_method\"></span><h3 class = \"editable\">Example: Extending string instances with a <code>repeat</code> method</h3>\n<p>The following example creates a method, <code>str_rep</code>, and uses the statement <code>String.prototype.repeat = str_rep</code> to add the method to all <code>String</code> objects. All <code>String</code> instances then have that method, even objects already created. The example then creates an alternate method and overrides the previous method in one of the <code>String</code> objects using the statement <code>s1.repeat = fake_rep</code>. The <code>str_rep</code> method of the remaining <code>String</code> objects is not altered.</p>\n\r\n          <pre name = \"code\" class = \"js\">var s1 = new String(&quot;a&quot;);\nvar s2 = new String(&quot;b&quot;);\nvar s3 = new String(&quot;c&quot;);\n\n// Create a repeat-string-N-times method for all String objects\nfunction str_rep(n) {\n   var s = &quot;&quot;, t = this.toString();\n   while (--n &gt;= 0) {\n     s += t\n   }\n   return s;\n}\n\nString.prototype.repeat = str_rep;\n\ns1a=s1.repeat(3); // returns &quot;aaa&quot;\ns2a=s2.repeat(5); // returns &quot;bbbbb&quot;\ns3a=s3.repeat(2); // returns &quot;cc&quot;\n\n// Create an alternate method and assign it to only one String variable\nfunction fake_rep(n) {\n   return &quot;repeat &quot; + this + &quot; &quot; + n + &quot; times.&quot;;\n}\n\ns1.repeat = fake_rep\ns1b=s1.repeat(1); // returns &quot;repeat a 1 times.&quot;\ns2b=s2.repeat(4); // returns &quot;bbbb&quot;\ns3b=s3.repeat(6); // returns &quot;cccccc&quot;</pre>\r\n        \n<p>The function in this example also works on <code>String</code> objects not created with the <code>String</code> constructor. The following code returns &quot;zzz&quot;.</p>\n<pre class = \"eval\">&quot;z&quot;.repeat(3);\n</pre>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods",
			"Methods unrelated to HTML",
			"HTML wrapper methods",
			"Examples",
			"Example: Extending string instances with a repeat method"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fromCharCode",
		"title": "String.fromCharCode",
		"_id": "4eea8569a4c86c4dba000106",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Returns a string created by using the specified sequence of Unicode values.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Static Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code> String.fromCharCode(<em>num1</em>, <em>...</em>, <em>numN</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>num1, ..., num<em>N</em></code></dt> <dd>A sequence of numbers that are Unicode values.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>This method returns a string and not a <code>String</code> object.</p>\n<p>Because <code>fromCharCode</code> is a static method of <code>String</code>, you always use it as <code>String.fromCharCode()</code>, rather than as a method of a <code>String</code> object you created.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Getting_it_to_work_with_higher_values\"></span><h2 class = \"editable\">Getting it to work with higher values</h2>\n<p>Although most common Unicode values can be represented in a fixed width system/with one number (as expected early on during JavaScript standardization) and <code>fromCharCode()</code> can be used to return a single character for the most common values (i.e., UCS-2 values which are the subset of UTF-16 with the most common characters), in order to deal with ALL legal Unicode values, <code>fromCharCode()</code> alone is inadequate. Since the higher code point characters use two (lower value) &quot;surrogate&quot; numbers to form a single character, <code>fromCharCode()</code> can be used to return such a pair and thus adequately represent these higher valued characters.</p>\n<p>Be aware, therefore, that the following utility function to grab the accurate character even for higher value code points, may be returning a value which is rendered as a single character, but which has a string count of two (though usually the count will be one).</p>\n\r\n          <pre name = \"code\" class = \"js\">// String.fromCharCode() alone cannot get the character at such a high code point\n// The following, on the other hand, can return a 4-byte character as well as the \n//   usual 2-byte ones (i.e., it can return a single character which actually has \n//   a string length of 2 instead of 1!)\nalert(fixedFromCharCode(0x2F804)); // or 194564 in decimal\n\n\nfunction fixedFromCharCode (codePt) {\n    if (codePt &gt; 0xFFFF) {\n        codePt -= 0x10000;\n        return String.fromCharCode(0xD800 + (codePt &gt;&gt; 10), 0xDC00 +\n(codePt &amp; 0x3FF));\n    }\n    else {\n        return String.fromCharCode(codePt);\n    }\n}</pre>\r\n        </div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_7\"><span id = \"Example:_Using_fromCharCode\"></span><h3 class = \"editable\">Example: Using <code>fromCharCode</code></h3>\n<p>The following example returns the string &quot;ABC&quot;.</p>\n<pre>String.fromCharCode(65,66,67)\n</pre>\n</div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_fromCharCode\"></span><h3 class = \"editable\">Example: Using <code>fromCharCode</code></h3>\n<p>The following example returns the string &quot;ABC&quot;.</p>\n<pre>String.fromCharCode(65,66,67)\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/charCodeAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/charCodeAt\">String.prototype.charCodeAt</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Getting it to work with higher values",
			"Examples",
			"Example: Using fromCharCode",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare",
		"title": "String.localeCompare",
		"_id": "4eea856aa4c86c4dba000107",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> localeCompare(compareString) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p><code>compareString</code> - The string against which the referring string is comparing</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order. Returns -1 if the string occurs earlier in a sort than <code>compareString</code>, returns 1 if the string occurs afterwards in such a sort, and returns 0 if they occur at the same level.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toUpperCase\"></span><span id = \"Example:_Using_localeCompare\"></span><h4 class = \"editable\">Example: Using <code>localeCompare</code></h4>\n<p>The following example demonstrates the different potential results for a string occurring before, after, or at the same level as another:</p>\n\r\n          <pre name = \"code\" class = \"js\">alert('a'.localeCompare('b')); // -1\nalert('b'.localeCompare('a')); // 1\nalert('b'.localeCompare('b')); // 0</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toUpperCase\"></span><span id = \"Example:_Using_localeCompare\"></span><h4 class = \"editable\">Example: Using <code>localeCompare</code></h4>\n<p>The following example demonstrates the different potential results for a string occurring before, after, or at the same level as another:</p>\n\r\n          <pre name = \"code\" class = \"js\">alert('a'.localeCompare('b')); // -1\nalert('b'.localeCompare('a')); // 1\nalert('b'.localeCompare('b')); // 0</pre>\r\n        \n</div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using localeCompare"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/constructor",
		"title": "String.constructor",
		"_id": "4eea856ea4c86c4dba000108",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a reference to the <a title = \"En/Core_JavaScript_1.5_Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/String\">String</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>See <a title = \"en/JavaScript/Reference/Global_Objects/Object/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor\">constructor</a>\n</p><p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Description "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt",
		"title": "String.charCodeAt",
		"_id": "4eea856fa4c86c4dba000109",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the numeric Unicode value of the character at the given index (except for unicode codepoints &gt; 0x10000).</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<code><em>string</em>.charCodeAt(<em>index</em>)</code>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>index</code>&nbsp;</dt> <dd>An integer greater than 0 and less than the length of the string; if it is not a number, it defaults to 0.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Unicode code points range from 0 to 1,114,111. The first 128 Unicode code points are a direct match of the ASCII character encoding. For information on Unicode, see the <a title = \"en/Core_JavaScript_1.5_Guide/Unicode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide/Obsolete_Pages/Unicode\">Core JavaScript 1.5 Guide</a>.</p>\n<p>Note that <code>charCodeAt</code> will always return a value that is less than 65,536. This is because the higher code points are represented by a pair of (lower valued)&nbsp;&quot;surrogate&quot; pseudo-characters which are used to comprise the real character. Because of this, in order to examine or reproduce the full character for individual characters of value 65,536 and above, for such characters, it is necessary to retrieve not only <code>charCodeAt(i)</code>, but also <code>charCodeAt(i+1)</code> (as if examining/reproducing a string with two letters). See <a title = \"fckeditor.html?InstanceName=editarea&amp;Toolbar=MDC#Example_2.3a.c2.a0Getting_whole_characters\" rel = \"internal\" href = \"https://developer.mozilla.org/fckeditor.html?InstanceName=editarea&amp;Toolbar=MDC#Example_2.3a.c2.a0Getting_whole_characters\" class = \"new \">example 2</a> and 3 below.</p>\n<p><code>charCodeAt</code> returns <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN\">NaN</a></code> if the given index is not greater than 0 or is greater than the length of the string.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Backward_Compatibility\"></span><h3 class = \"editable\">Backward Compatibility</h3>\n<div id = \"section_6\"><span id = \"JavaScript_1.2\"></span><h4 class = \"editable\">JavaScript 1.2</h4>\n<p>The <code>charCodeAt</code> method returns a number indicating the ISO-Latin-1 codeset value of the character at the given index. The ISO-Latin-1 codeset ranges from 0 to 255. The first 0 to 127 are a direct match of the ASCII character set.</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"JavaScript_1.2\"></span><h4 class = \"editable\">JavaScript 1.2</h4>\n<p>The <code>charCodeAt</code> method returns a number indicating the ISO-Latin-1 codeset value of the character at the given index. The ISO-Latin-1 codeset ranges from 0 to 255. The first 0 to 127 are a direct match of the ASCII character set.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_8\"><span id = \"Example:_Using_charCodeAt\"></span><span id = \"Example_1:_Using_charCodeAt\"></span><h4 class = \"editable\">Example 1: Using <code>charCodeAt</code></h4>\n<p>The following example returns 65, the Unicode value for A.</p>\n<pre class = \"eval\">\n&quot;ABC&quot;.charCodeAt(0) // returns 65\n</pre>\n</div><div id = \"section_9\"><span id = \"Example_2:_Fixing_charCodeAt_to_handle_non-Basic-Multilingual-Plane_characters_if_their_presence_earlier_in_the_string_is_unknown\"></span><h4 class = \"editable\">Example 2: Fixing charCodeAt to handle non-Basic-Multilingual-Plane characters if their presence earlier in the string is unknown</h4>\n<p>&nbsp;</p>\n<p>This version might be used in for loops and the like when it is unknown whether non-BMP&nbsp;characters exist before the specified index position.</p>\n\r\n          <pre name = \"code\" class = \"js\">function fixedCharCodeAt (str, idx) {\n    // ex. fixedCharCodeAt ('\\uD800\\uDC00', 0); // 65536\n    // ex. fixedCharCodeAt ('\\uD800\\uDC00', 1); // 65536\n    idx = idx || 0;\n    var code = str.charCodeAt(idx);\n    var hi, low;\n    if (0xD800 &lt;= code &amp;&amp; code &lt;= 0xDBFF) { // High surrogate (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        hi = code;\n        low = str.charCodeAt(idx+1);\n        if (isNaN(low)) {\n            throw 'High surrogate not followed by low surrogate in fixedCharCodeAt()';\n        }\n        return ((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;\n    }\n    if (0xDC00 &lt;= code &amp;&amp; code &lt;= 0xDFFF) { // Low surrogate\n        // We return false to allow loops to skip this iteration since should have already handled high surrogate above in the previous iteration\n        return false;\n        /*hi = str.charCodeAt(idx-1);\n        low = code;\n        return ((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;*/\n    }\n    return code;\n}</pre>\r\n        </div><div id = \"section_10\"><span id = \"Example_3:_Fixing_charCodeAt_to_handle_non-Basic-Multilingual-Plane_characters_if_their_presence_earlier_in_the_string_is_known\"></span><h4 class = \"editable\">Example 3: Fixing charCodeAt to handle non-Basic-Multilingual-Plane characters if their presence earlier in the string is known</h4>\n<p>&nbsp;</p>\n\r\n          <pre name = \"code\" class = \"js\">function knownCharCodeAt (str, idx) {\n    str += '';\n    var code,\n        end = str.length;\n\n    var surrogatePairs = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n    while ((surrogatePairs.exec(str)) != null) {\n        var li = surrogatePairs.lastIndex;\n        if (li - 2 &lt; idx) {\n            idx++;\n        }\n        else {\n            break;\n        }\n    }\n\n    if (idx &gt;= end || idx &lt; 0) {\n        return NaN;\n    }\n\n    code = str.charCodeAt(idx);\n\n    var hi, low;\n    if (0xD800 &lt;= code &amp;&amp; code &lt;= 0xDBFF) {\n        hi = code;\n        low = str.charCodeAt(idx+1); // Go one further, since one of the &quot;characters&quot; is part of a surrogate pair\n        return ((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;\n    }\n    return code;\n}</pre>\r\n        \n<p>&nbsp;</p>\n</div></div>",
			"<div id = \"section_8\"><span id = \"Example:_Using_charCodeAt\"></span><span id = \"Example_1:_Using_charCodeAt\"></span><h4 class = \"editable\">Example 1: Using <code>charCodeAt</code></h4>\n<p>The following example returns 65, the Unicode value for A.</p>\n<pre class = \"eval\">\n&quot;ABC&quot;.charCodeAt(0) // returns 65\n</pre>\n</div>",
			"<div id = \"section_9\"><span id = \"Example_2:_Fixing_charCodeAt_to_handle_non-Basic-Multilingual-Plane_characters_if_their_presence_earlier_in_the_string_is_unknown\"></span><h4 class = \"editable\">Example 2: Fixing charCodeAt to handle non-Basic-Multilingual-Plane characters if their presence earlier in the string is unknown</h4>\n<p>&nbsp;</p>\n<p>This version might be used in for loops and the like when it is unknown whether non-BMP&nbsp;characters exist before the specified index position.</p>\n\r\n          <pre name = \"code\" class = \"js\">function fixedCharCodeAt (str, idx) {\n    // ex. fixedCharCodeAt ('\\uD800\\uDC00', 0); // 65536\n    // ex. fixedCharCodeAt ('\\uD800\\uDC00', 1); // 65536\n    idx = idx || 0;\n    var code = str.charCodeAt(idx);\n    var hi, low;\n    if (0xD800 &lt;= code &amp;&amp; code &lt;= 0xDBFF) { // High surrogate (could change last hex to 0xDB7F to treat high private surrogates as single characters)\n        hi = code;\n        low = str.charCodeAt(idx+1);\n        if (isNaN(low)) {\n            throw 'High surrogate not followed by low surrogate in fixedCharCodeAt()';\n        }\n        return ((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;\n    }\n    if (0xDC00 &lt;= code &amp;&amp; code &lt;= 0xDFFF) { // Low surrogate\n        // We return false to allow loops to skip this iteration since should have already handled high surrogate above in the previous iteration\n        return false;\n        /*hi = str.charCodeAt(idx-1);\n        low = code;\n        return ((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;*/\n    }\n    return code;\n}</pre>\r\n        </div>",
			"<div id = \"section_10\"><span id = \"Example_3:_Fixing_charCodeAt_to_handle_non-Basic-Multilingual-Plane_characters_if_their_presence_earlier_in_the_string_is_known\"></span><h4 class = \"editable\">Example 3: Fixing charCodeAt to handle non-Basic-Multilingual-Plane characters if their presence earlier in the string is known</h4>\n<p>&nbsp;</p>\n\r\n          <pre name = \"code\" class = \"js\">function knownCharCodeAt (str, idx) {\n    str += '';\n    var code,\n        end = str.length;\n\n    var surrogatePairs = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n    while ((surrogatePairs.exec(str)) != null) {\n        var li = surrogatePairs.lastIndex;\n        if (li - 2 &lt; idx) {\n            idx++;\n        }\n        else {\n            break;\n        }\n    }\n\n    if (idx &gt;= end || idx &lt; 0) {\n        return NaN;\n    }\n\n    code = str.charCodeAt(idx);\n\n    var hi, low;\n    if (0xD800 &lt;= code &amp;&amp; code &lt;= 0xDBFF) {\n        hi = code;\n        low = str.charCodeAt(idx+1); // Go one further, since one of the &quot;characters&quot; is part of a surrogate pair\n        return ((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;\n    }\n    return code;\n}</pre>\r\n        \n<p>&nbsp;</p>\n</div>",
			"<div id = \"section_11\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/fromCharCode\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fromCharCode\">fromCharCode</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\">charAt</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Backward Compatibility",
			"JavaScript 1.2",
			"Examples",
			"Example 1: Using charCodeAt",
			"Example 2: Fixing charCodeAt to handle non-Basic-Multilingual-Plane characters if their presence earlier in the string is unknown",
			"Example 3: Fixing charCodeAt to handle non-Basic-Multilingual-Plane characters if their presence earlier in the string is known",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/concat",
		"title": "String.concat",
		"_id": "4eea8570a4c86c4dba00010a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Combines the text of two or more strings and returns a new string.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.concat(<em>string2</em>, <em>string3</em>[, ..., <em>stringN</em>])</code></p></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>string2...string<em>N</em></code>&nbsp;</dt> <dd>Strings to concatenate to this string.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>concat</code> combines the text from one or more strings and returns a new string. Changes to the text in one string do not affect the other string.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_concat\"></span><h4 class = \"editable\">Example: Using <code>concat</code></h4>\n<p>The following example combines strings into a new string.</p>\n\r\n          <pre name = \"code\" class = \"js\">var hello = &quot;Hello, &quot;;\nconsole.log(hello.concat(&quot;Kevin&quot;, &quot; have a nice day.&quot;)); /* Hello, Kevin have a nice day. */</pre>\r\n        \n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_concat\"></span><h4 class = \"editable\">Example: Using <code>concat</code></h4>\n<p>The following example combines strings into a new string.</p>\n\r\n          <pre name = \"code\" class = \"js\">var hello = &quot;Hello, &quot;;\nconsole.log(hello.concat(&quot;Kevin&quot;, &quot; have a nice day.&quot;)); /* Hello, Kevin have a nice day. */</pre>\r\n        \n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using concat"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf",
		"title": "String.indexOf",
		"_id": "4eea8570a4c86c4dba00010b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the index within the calling <code>String</code> object of the first occurrence of the specified value, starting the search at <code>fromIndex</code>,<br/> returns -1 if the value is not found.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.indexOf(<em>searchValue</em>[, <em>fromIndex</em>]</code>)</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>searchValue</code></dt> <dd>A string representing the value to search for.</dd>\n</dl>\n<dl> <dt><code>fromIndex</code></dt> <dd>The location within the calling string to start the search from. It can be any integer between 0 and the length of the string. The default value is 0.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Characters in a string are indexed from left to right. The index of the first character is 0, and the index of the last character of a string called <code>stringName</code> is <code>stringName.length - 1</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">&quot;Blue Whale&quot;.indexOf(&quot;Blue&quot;)    // returns 0\n&quot;Blue Whale&quot;.indexOf(&quot;Blute&quot;)   // returns -1\n&quot;Blue Whale&quot;.indexOf(&quot;Whale&quot;,0) // returns 5\n&quot;Blue Whale&quot;.indexOf(&quot;Whale&quot;,5) // returns 5\n&quot;Blue Whale&quot;.indexOf(&quot;&quot;,9)      // returns 9\n&quot;Blue Whale&quot;.indexOf(&quot;&quot;,10)     // returns 10\n&quot;Blue Whale&quot;.indexOf(&quot;&quot;,11)     // returns 10</pre>\r\n        \n<p>The <code>indexOf</code> method is case sensitive. For example, the following expression returns -1:</p>\n\r\n          <pre name = \"code\" class = \"js\">&quot;Blue Whale&quot;.indexOf(&quot;blue&quot;) // returns -1</pre>\r\n        \n<p>Note that '0' doesn't evaluate to <code>true</code> and '-1' doesn't evaluate to <code>false</code>. Therefore, when checking if a specific string exists within another string the correct way to check would be:</p>\n\r\n          <pre name = \"code\" class = \"js\">&quot;Blue Whale&quot;.indexOf(&quot;Blue&quot;) != -1 // true\n&quot;Blue Whale&quot;.indexOf(&quot;Bloe&quot;) != -1 // false</pre>\r\n        \n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_indexOf_and_lastIndexOf\"></span><h4 class = \"editable\">Example: Using <code>indexOf</code> and <code>lastIndexOf</code></h4>\n<p>The following example uses <code>indexOf</code> and <code>lastIndexOf</code> to locate values in the string &quot;<code>Brave new world</code>&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">var anyString=&quot;Brave new world&quot;\n\n\ndocument.write(&quot;&lt;P&gt;The index of the first w from the beginning is &quot; +\n   anyString.indexOf(&quot;w&quot;))          // Displays 8\n\ndocument.write(&quot;&lt;P&gt;The index of the first w from the end is &quot; +\n   anyString.lastIndexOf(&quot;w&quot;))      // Displays 10\n\ndocument.write(&quot;&lt;P&gt;The index of 'new' from the beginning is &quot; +\n   anyString.indexOf(&quot;new&quot;))        // Displays 6\n\ndocument.write(&quot;&lt;P&gt;The index of 'new' from the end is &quot; +\n   anyString.lastIndexOf(&quot;new&quot;))    // Displays 6</pre>\r\n        \n</div><div id = \"section_7\"><span id = \"Example:_indexOf_and_case-sensitivity\"></span><h4 class = \"editable\">Example: <code>indexOf</code> and case-sensitivity</h4>\n<p>The following example defines two string variables. The variables contain the same string except that the second string contains uppercase letters. The first <code>writeln</code> method displays 19. But because the <code>indexOf</code> method is case sensitive, the string &quot;<code>cheddar</code>&quot; is not found in <code>myCapString</code>, so the second <code>writeln</code> method displays -1.</p>\n\r\n          <pre name = \"code\" class = \"js\">myString = &quot;brie, pepper jack, cheddar&quot;\nmyCapString = &quot;Brie, Pepper Jack, Cheddar&quot;\ndocument.writeln('myString.indexOf(&quot;cheddar&quot;) is ' +\n   myString.indexOf(&quot;cheddar&quot;))\ndocument.writeln('&lt;P&gt;myCapString.indexOf(&quot;cheddar&quot;) is ' +\n   myCapString.indexOf(&quot;cheddar&quot;))</pre>\r\n        \n</div><div id = \"section_8\"><span id = \"Example:_Using_indexOf_to_count_occurrences_of_a_letter_in_a_string\"></span><h4 class = \"editable\">Example: Using <code>indexOf</code> to count occurrences of a letter in a string</h4>\n<p>The following example sets <code>count</code> to the number of occurrences of the letter <code>x</code> in the string <code>str</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">count = 0;\npos = str.indexOf(&quot;x&quot;);\nwhile ( pos != -1 ) {\n   count++;\n   pos = str.indexOf(&quot;x&quot;,pos+1);\n}</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_indexOf_and_lastIndexOf\"></span><h4 class = \"editable\">Example: Using <code>indexOf</code> and <code>lastIndexOf</code></h4>\n<p>The following example uses <code>indexOf</code> and <code>lastIndexOf</code> to locate values in the string &quot;<code>Brave new world</code>&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">var anyString=&quot;Brave new world&quot;\n\n\ndocument.write(&quot;&lt;P&gt;The index of the first w from the beginning is &quot; +\n   anyString.indexOf(&quot;w&quot;))          // Displays 8\n\ndocument.write(&quot;&lt;P&gt;The index of the first w from the end is &quot; +\n   anyString.lastIndexOf(&quot;w&quot;))      // Displays 10\n\ndocument.write(&quot;&lt;P&gt;The index of 'new' from the beginning is &quot; +\n   anyString.indexOf(&quot;new&quot;))        // Displays 6\n\ndocument.write(&quot;&lt;P&gt;The index of 'new' from the end is &quot; +\n   anyString.lastIndexOf(&quot;new&quot;))    // Displays 6</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"Example:_indexOf_and_case-sensitivity\"></span><h4 class = \"editable\">Example: <code>indexOf</code> and case-sensitivity</h4>\n<p>The following example defines two string variables. The variables contain the same string except that the second string contains uppercase letters. The first <code>writeln</code> method displays 19. But because the <code>indexOf</code> method is case sensitive, the string &quot;<code>cheddar</code>&quot; is not found in <code>myCapString</code>, so the second <code>writeln</code> method displays -1.</p>\n\r\n          <pre name = \"code\" class = \"js\">myString = &quot;brie, pepper jack, cheddar&quot;\nmyCapString = &quot;Brie, Pepper Jack, Cheddar&quot;\ndocument.writeln('myString.indexOf(&quot;cheddar&quot;) is ' +\n   myString.indexOf(&quot;cheddar&quot;))\ndocument.writeln('&lt;P&gt;myCapString.indexOf(&quot;cheddar&quot;) is ' +\n   myCapString.indexOf(&quot;cheddar&quot;))</pre>\r\n        \n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Using_indexOf_to_count_occurrences_of_a_letter_in_a_string\"></span><h4 class = \"editable\">Example: Using <code>indexOf</code> to count occurrences of a letter in a string</h4>\n<p>The following example sets <code>count</code> to the number of occurrences of the letter <code>x</code> in the string <code>str</code>:</p>\n\r\n          <pre name = \"code\" class = \"js\">count = 0;\npos = str.indexOf(&quot;x&quot;);\nwhile ( pos != -1 ) {\n   count++;\n   pos = str.indexOf(&quot;x&quot;,pos+1);\n}</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\">charAt</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/lastIndexOf\">lastIndexOf</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/split\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split\">split</a>, <a class = \"internal\" title = \"en/Core JavaScript 1.5 Reference/Global Objects/Array/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf\">Array.indexOf</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using indexOf and lastIndexOf",
			"Example: indexOf and case-sensitivity",
			"Example: Using indexOf to count occurrences of a letter in a string",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/lastIndexOf",
		"title": "String.lastIndexOf",
		"_id": "4eea8571a4c86c4dba00010c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the index within the calling <code>String</code> object of the last occurrence of the specified value, or -1 if not found. The calling string is searched backward, starting at <code>fromIndex</code>.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.lastIndexOf(<em>searchValue</em>[, <em>fromIndex</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>searchValue</code></dt> <dd>A string representing the value to search for.</dd>\n</dl>\n<dl> <dt><code>fromIndex</code></dt> <dd>The location within the calling string to start the search from, indexed from left to right. It can be any integer between 0 and the length of the string. The default value is the length of the string.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Characters in a string are indexed from left to right. The index of the first character is 0, and the index of the last character is <code>stringName.length - 1</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">&quot;canal&quot;.lastIndexOf(&quot;a&quot;)   // returns 3\n&quot;canal&quot;.lastIndexOf(&quot;a&quot;,2) // returns 1\n&quot;canal&quot;.lastIndexOf(&quot;a&quot;,0) // returns -1\n&quot;canal&quot;.lastIndexOf(&quot;x&quot;)   // returns -1</pre>\r\n        \n<p>The <code>lastIndexOf</code> method is case sensitive. For example, the following expression returns -1:</p>\n<pre>&quot;Blue Whale, Killer Whale&quot;.lastIndexOf(&quot;blue&quot;) // returns -1\n</pre>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_indexOf_and_lastIndexOf\"></span><h4 class = \"editable\">Example: Using <code>indexOf</code> and <code>lastIndexOf</code></h4>\n<p>The following example uses <code>indexOf</code> and <code>lastIndexOf</code> to locate values in the string &quot;<code>Brave new world</code>&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">var anyString = &quot;Brave new world&quot;\n\n// Displays 8\ndocument.write(&quot;&lt;P&gt;The index of the first w from the beginning is &quot; +\n   anyString.indexOf(&quot;w&quot;))\n// Displays 10\ndocument.write(&quot;&lt;P&gt;The index of the first w from the end is &quot; +\n   anyString.lastIndexOf(&quot;w&quot;))\n// Displays 6\ndocument.write(&quot;&lt;P&gt;The index of 'new' from the beginning is &quot; +\n   anyString.indexOf(&quot;new&quot;))\n// Displays 6\ndocument.write(&quot;&lt;P&gt;The index of 'new' from the end is &quot; +\n   anyString.lastIndexOf(&quot;new&quot;))</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_indexOf_and_lastIndexOf\"></span><h4 class = \"editable\">Example: Using <code>indexOf</code> and <code>lastIndexOf</code></h4>\n<p>The following example uses <code>indexOf</code> and <code>lastIndexOf</code> to locate values in the string &quot;<code>Brave new world</code>&quot;.</p>\n\r\n          <pre name = \"code\" class = \"js\">var anyString = &quot;Brave new world&quot;\n\n// Displays 8\ndocument.write(&quot;&lt;P&gt;The index of the first w from the beginning is &quot; +\n   anyString.indexOf(&quot;w&quot;))\n// Displays 10\ndocument.write(&quot;&lt;P&gt;The index of the first w from the end is &quot; +\n   anyString.lastIndexOf(&quot;w&quot;))\n// Displays 6\ndocument.write(&quot;&lt;P&gt;The index of 'new' from the beginning is &quot; +\n   anyString.indexOf(&quot;new&quot;))\n// Displays 6\ndocument.write(&quot;&lt;P&gt;The index of 'new' from the end is &quot; +\n   anyString.lastIndexOf(&quot;new&quot;))</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\">charAt</a>, <a title = \"en/JavaScript/Reference/Global_Objects/String/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf\">indexOf</a>, <a title = \"en/JavaScript/Reference/Global_Objects/String/split\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split\">split</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using indexOf and lastIndexOf",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/match",
		"title": "String.match",
		"_id": "4eea8572a4c86c4dba00010d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Used to retrieve the matches when matching a&nbsp;<code><em>string</em></code>&nbsp;against a&nbsp;<em>regular expression</em>.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>string</em>.match(<em>regexp</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>If the regular expression does not include the <code>g</code> flag, returns the same result as <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/exec\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/exec\"><em>regexp</em>.exec(<em>string</em>)</a></code>.</p>\n<p>If the regular expression includes the <code>g</code> flag, the method returns an <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a></code> containing all matches. If there were no matches, the method returns <code>null</code>.</p>\n<p>The returned <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array\">Array</a></code> has an extra <code>input</code> property, which contains the regexp that generated it as a result. In addition, it has an <code>index</code> property, which represents the zero-based index of the match in the string.</p>\n<dl> <dt><code>regexp</code></dt> <dd>A <a title = \"en/JavaScript/Reference/Global Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\">regular expression</a> object. If a non-RegExp object <code>obj</code> is passed, it is implicitly converted to a RegExp by using <code>new RegExp(obj)</code>.</dd>\n</dl>\n<div class = \"geckoVersionNote\"> <p>\n<div class = \"geckoVersionHeading\">Gecko 8.0 note<div style = \"font-size:9px; position:relative; top:-5px; font-style:italic;\">(Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)\n</div></div>\n</p> <p>Prior to Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)\n, <code>match()</code> was implemented incorrectly; when it was called with no parameters or with <code>undefined</code>, it would match against undefined, instead of always returning an empty string. This is fixed.</p>\n</div>\n<div id = \"section_5\"><span id = \"Notes\"></span><h3 class = \"editable\">Notes</h3>\n<ul> <li>If you need to know if a string matches a regular expression <code>regexp</code>, use <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/test\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/test\"><em>regexp</em>.test(<em>string</em>)</a></code>.</li> <li>If you only want the first match found, you might want to use <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/exec\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/exec\"><em>regexp</em>.exec(<em>string</em>)</a></code> instead.</li> <li>See &sect;15.5.4.10 of the ECMA-262 specification.</li>\n</ul>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Notes\"></span><h3 class = \"editable\">Notes</h3>\n<ul> <li>If you need to know if a string matches a regular expression <code>regexp</code>, use <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/test\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/test\"><em>regexp</em>.test(<em>string</em>)</a></code>.</li> <li>If you only want the first match found, you might want to use <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/exec\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/exec\"><em>regexp</em>.exec(<em>string</em>)</a></code> instead.</li> <li>See &sect;15.5.4.10 of the ECMA-262 specification.</li>\n</ul>\n</div>",
			"<div id = \"section_6\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_7\"><span id = \"Example:_Using_match\"></span><h3 class = \"editable\">Example: Using <code>match</code></h3>\n<p>In the following example, <code>match</code> is used to find &quot;<code>Chapter</code>&quot; followed by 1 or more numeric characters followed by a decimal point and numeric character 0 or more times. The regular expression includes the <code>i</code> flag so that case will be ignored.</p>\n<pre>\n&lt;script type=&quot;text/javascript&quot;&gt;\nstr = &quot;For more information, see Chapter 3.4.5.1&quot;;\nre = /(chapter \\d+(\\.\\d)*)/i;\nfound = str.match(re);\nalert(found);\n&lt;/script&gt;\n</pre>\n<p>This returns the array containing Chapter 3.4.5.1,Chapter 3.4.5.1,.1</p>\n<p>&quot;<code>Chapter 3.4.5.1</code>&quot; is the first match and the first value remembered from <code>(Chapter \\d+(\\.\\d)*)</code>.</p>\n<p>&quot;<code>.1</code>&quot; is the second value remembered from <code>(\\.\\d)</code>.</p>\n</div><div id = \"section_8\"><span id = \"Example:_Using_global_and_ignore_case_flags_with_match\"></span><h3 class = \"editable\">Example: Using global and ignore case flags with <code>match</code></h3>\n<p>The following example demonstrates the use of the global and ignore case flags with <code>match</code>. All letters A through E and a through e are returned, each its own element in the array</p>\n<pre>\nvar str = &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&quot;;\nvar regexp = /[A-E]/gi;\nvar matches_array = str.match(regexp);\nalert(matches_array);\n</pre>\n<p><code>matches_array</code> now equals <code>['A', 'B', 'C', 'D', 'E', 'a', 'b', 'c', 'd', 'e']</code></p>\n<p></p></div></div>",
			"<div id = \"section_7\"><span id = \"Example:_Using_match\"></span><h3 class = \"editable\">Example: Using <code>match</code></h3>\n<p>In the following example, <code>match</code> is used to find &quot;<code>Chapter</code>&quot; followed by 1 or more numeric characters followed by a decimal point and numeric character 0 or more times. The regular expression includes the <code>i</code> flag so that case will be ignored.</p>\n<pre>\n&lt;script type=&quot;text/javascript&quot;&gt;\nstr = &quot;For more information, see Chapter 3.4.5.1&quot;;\nre = /(chapter \\d+(\\.\\d)*)/i;\nfound = str.match(re);\nalert(found);\n&lt;/script&gt;\n</pre>\n<p>This returns the array containing Chapter 3.4.5.1,Chapter 3.4.5.1,.1</p>\n<p>&quot;<code>Chapter 3.4.5.1</code>&quot; is the first match and the first value remembered from <code>(Chapter \\d+(\\.\\d)*)</code>.</p>\n<p>&quot;<code>.1</code>&quot; is the second value remembered from <code>(\\.\\d)</code>.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Using_global_and_ignore_case_flags_with_match\"></span><h3 class = \"editable\">Example: Using global and ignore case flags with <code>match</code></h3>\n<p>The following example demonstrates the use of the global and ignore case flags with <code>match</code>. All letters A through E and a through e are returned, each its own element in the array</p>\n<pre>\nvar str = &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&quot;;\nvar regexp = /[A-E]/gi;\nvar matches_array = str.match(regexp);\nalert(matches_array);\n</pre>\n<p><code>matches_array</code> now equals <code>['A', 'B', 'C', 'D', 'E', 'a', 'b', 'c', 'd', 'e']</code></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Notes",
			"Examples",
			"Example: Using match",
			"Example: Using global and ignore case flags with match"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/quote",
		"title": "String.quote",
		"_id": "4eea8573a4c86c4dba00010e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>str</em>.quote()</code></p>\n</div>",
			"<div id = \"section_2\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<table class = \"standard-table\" style = \"table-layout: fixed; width: 100%;\"> <thead> <tr> <th class = \"header\" scope = \"col\"><code>str</code></th> <th class = \"header\" scope = \"col\"><code>str.quote()</code></th> <th class = \"header\" scope = \"col\"><code><a title = \"en/JavaScript/Reference/Global_Objects/eval\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval\">eval</a>(str.quote())</code></th> </tr> </thead> <tbody> <tr> <td><code>Hello world!</code></td> <td><code>&quot;Hello world!&quot;</code></td> <td><code>Hello world!</code></td> </tr> <tr> <td><code>Hello<br/> &nbsp; &nbsp; &nbsp; &nbsp; world!</code></td> <td><code>&quot;Hello\\n\\tworld!&quot;</code></td> <td><code>Hello<br/> &nbsp; &nbsp; &nbsp; &nbsp; world!</code></td> </tr> <tr> <td><code>&quot; \\ &mdash; '</code></td> <td><code>\\&quot; \\\\ \\u2014 '</code></td> <td><code>&quot; \\ &mdash; '</code></td> </tr> </tbody>\n</table>\n</div>"
		],
		"sectionNames": [
			"Syntax",
			"Examples"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/search",
		"title": "String.search",
		"_id": "4eea8578a4c86c4dba00010f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Executes the search for a match between a regular expression and this <code>String</code> object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.search(<em>regexp</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>regexp</code></dt> <dd>A <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\"> regular expression</a> object. If a non-RegExp object <code>obj</code> is passed, it is implicitly converted to a RegExp by using <code>new RegExp(obj)</code>.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If successful, search returns the index of the regular expression inside the string. Otherwise, it returns -1.</p>\n<p>When you want to know whether a pattern is found in a string use <code>search</code> (similar to the regular expression <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/test\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/test\">test</a></code> method); for more information (but slower execution) use <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/match\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/match\">match</a></code> (similar to the regular expression <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/exec\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/exec\">exec</a></code> method).</p>\n<div class = \"geckoVersionNote\"> <p>\n<div class = \"geckoVersionHeading\">Gecko 8.0 note<div style = \"font-size:9px; position:relative; top:-5px; font-style:italic;\">(Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)\n</div></div>\n</p> <p>Prior to Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)\n, <code>search()</code> was implemented incorrectly; when it was called with no parameters or with <code>undefined</code>, it would match against the string &quot;undefined&quot;, instead of matching against the empty string. This is fixed; now <code>&quot;a&quot;.search()</code> and <code>&quot;a&quot;.search(undefined)</code> correctly return 0.</p>\n</div>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_search\"></span><h4 class = \"editable\">Example: Using <code>search</code></h4>\n<p>The following example prints a message which depends on the success of the test.</p>\n\r\n          <pre name = \"code\" class = \"js\">function testinput(re, str){\n   if (str.search(re) != -1){\n      midstring = &quot; contains &quot;;\n   }\n   else{\n      midstring = &quot; does not contain &quot;;\n   }\n   document.write (str + midstring + re);\n}</pre>\r\n        \n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_search\"></span><h4 class = \"editable\">Example: Using <code>search</code></h4>\n<p>The following example prints a message which depends on the success of the test.</p>\n\r\n          <pre name = \"code\" class = \"js\">function testinput(re, str){\n   if (str.search(re) != -1){\n      midstring = &quot; contains &quot;;\n   }\n   else{\n      midstring = &quot; does not contain &quot;;\n   }\n   document.write (str + midstring + re);\n}</pre>\r\n        \n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using search"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/slice",
		"title": "String.slice",
		"_id": "4eea8579a4c86c4dba000110",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Extracts a section of a string and returns a new string.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.slice(<em>beginslice</em>[, <em>endSlice</em>])</code></p></div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>beginSlice</code>&nbsp;</dt> <dd>The zero-based index at which to begin extraction.</dd>\n</dl>\n<dl> <dt><code>endSlice</code>&nbsp;</dt> <dd>The zero-based index at which to end extraction. If omitted, <code>slice</code> extracts to the end of the string.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>slice</code> extracts the text from one string and returns a new string. Changes to the text in one string do not affect the other string.</p>\n<p><code>slice</code> extracts up to but not including <code>endSlice</code>. <code>string.slice(1,4)</code> extracts the second character through the fourth character (characters indexed 1, 2, and 3).</p>\n<p>As a negative index, endSlice indicates an offset from the end of the string. string.slice(2,-1) extracts the third character through the second to last character in the string.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_slice_to_create_a_new_string\"></span><h4 class = \"editable\">Example: Using <code>slice</code> to create a new string</h4>\n<p>The following example uses <code>slice</code> to create a new string.</p>\n\r\n          <pre name = \"code\" class = \"js\">// assumes a print function is defined\nvar str1 = &quot;The morning is upon us.&quot;;\nvar str2 = str1.slice(4, -2);\nprint(str2);</pre>\r\n        \n<p>This writes:</p>\n<pre class = \"eval\">\nmorning is upon u\n</pre>\n<p>&nbsp;</p>\n<p></p></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_slice_to_create_a_new_string\"></span><h4 class = \"editable\">Example: Using <code>slice</code> to create a new string</h4>\n<p>The following example uses <code>slice</code> to create a new string.</p>\n\r\n          <pre name = \"code\" class = \"js\">// assumes a print function is defined\nvar str1 = &quot;The morning is upon us.&quot;;\nvar str2 = str1.slice(4, -2);\nprint(str2);</pre>\r\n        \n<p>This writes:</p>\n<pre class = \"eval\">\nmorning is upon u\n</pre>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using slice to create a new string"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split",
		"title": "String.split",
		"_id": "4eea857ba4c86c4dba000111",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Splits a <code>String</code> object into an array of strings by separating the string into substrings.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 3rd Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.split([<em>separator</em>][, <em>limit</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>separator</code></dt> <dd>Specifies the character to use for separating the string. The <code>separator</code> is treated as a string or a <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp\">regular expression</a>. If <code>separator</code> is omitted, the array returned contains one element consisting of the entire string.</dd>\n</dl>\n<dl> <dt><code>limit</code></dt> <dd>Integer specifying a limit on the number of splits to be found. &nbsp;The&nbsp;<code>split</code> method still splits on every match of&nbsp;<code>separator</code>, but it truncates the returned array to at most&nbsp;<code>limit</code> elements.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>split</code> method returns the new array.</p>\n<p>When found, <code>separator</code> is removed from the string and the substrings are returned in an array. If <code>separator</code> is omitted, the array contains one element consisting of the entire string.</p>\n<p>If <code>separator</code> is a regular expression that contains capturing parentheses, then each time separator is matched the results (including any undefined results) of the capturing parentheses are spliced into the output array. However, not all browsers support this capability.</p>\n<p><div class = \"note\"><strong>Note:</strong>&nbsp;When the string is empty, <code>split</code> returns an array containing one empty string, rather than an empty array.</div>\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_split\"></span><h4 class = \"editable\">Example: Using <code>split</code></h4>\n<p>The following example defines a function that splits a string into an array of strings using the specified separator. After splitting the string, the function displays messages indicating the original string (before the split), the separator used, the number of elements in the array, and the individual array elements.</p>\n\r\n          <pre name = \"code\" class = \"js\">function splitString(stringToSplit,separator)\n{\n  var arrayOfStrings = stringToSplit.split(separator);\n  print('The original string is: &quot;' + stringToSplit + '&quot;');\n  print('The separator is: &quot;' + separator + '&quot;');\n  print(&quot;The array has &quot; + arrayOfStrings.length + &quot; elements: &quot;);\n\n  for (var i=0; i &lt; arrayOfStrings.length; i++)\n    print(arrayOfStrings[i] + &quot; / &quot;);\n}\n\nvar tempestString = &quot;Oh brave new world that has such people in it.&quot;;\nvar monthString = &quot;Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec&quot;;\n\nvar space = &quot; &quot;;\nvar comma = &quot;,&quot;;\n\nsplitString(tempestString, space);\nsplitString(tempestString);\nsplitString(monthString, comma);</pre>\r\n        \n<p>This example produces the following output:</p>\n<pre class = \"eval\">The original string is: &quot;Oh brave new world that has such people in it.&quot;\nThe separator is: &quot; &quot;\nThe array has 10 elements: Oh / brave / new / world / that / has / such / people / in / it. /\n\nThe original string is: &quot;Oh brave new world that has such people in it.&quot;\nThe separator is: &quot;undefined&quot;\nThe array has 1 elements: Oh brave new world that has such people in it. /\n\nThe original string is: &quot;Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec&quot;\nThe separator is: &quot;,&quot;\nThe array has 12 elements: Jan / Feb / Mar / Apr / May / Jun / Jul / Aug / Sep / Oct / Nov / Dec /\n</pre>\n</div><div id = \"section_7\"><span id = \"Example:_Removing_spaces_from_a_string\"></span><h4 class = \"editable\">Example: Removing spaces from a string</h4>\n<p>In the following example, <code>split</code> looks for 0 or more spaces followed by a semicolon followed by 0 or more spaces and, when found, removes the spaces from the string. <code>nameList</code> is the array returned as a result of <code>split</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">var names = &quot;Harry Trump ;Fred Barney; Helen Rigby ; Bill Abel ;Chris Hand &quot;;\nprint(names);\nvar re = /\\s*;\\s*/;\nvar nameList = names.split(re);\nprint(nameList);</pre>\r\n        \n<p>This prints two lines; the first line prints the original string, and the second line prints the resulting array.</p>\n<pre class = \"eval\">Harry Trump&nbsp;;Fred Barney; Helen Rigby&nbsp;; Bill Abel&nbsp;;Chris Hand\nHarry Trump,Fred Barney,Helen Rigby,Bill Abel,Chris Hand\n</pre>\n</div><div id = \"section_8\"><span id = \"Example:_Returning_a_limited_number_of_splits\"></span><h4 class = \"editable\">Example: Returning a limited number of splits</h4>\n<p>In the following example, <code>split</code> looks for 0 or more spaces in a string and returns the first 3 splits that it finds.</p>\n\r\n          <pre name = \"code\" class = \"js\">var myString = &quot;Hello World. How are you doing?&quot;;\nvar splits = myString.split(&quot; &quot;, 3);\nprint(splits);</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">Hello,World.,How\n</pre>\n</div><div id = \"section_9\"><span id = \"Example:_Capturing_parentheses\"></span><h4 class = \"editable\">Example: Capturing parentheses</h4>\n<p>If <code>separator</code> contains capturing parentheses, matched results are returned in the array.</p>\n\r\n          <pre name = \"code\" class = \"js\">var myString = &quot;Hello 1 word. Sentence number 2.&quot;;\nvar splits = myString.split(/(\\d)/);\nprint(splits);</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">Hello ,1, word. Sentence number ,2, .\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_split\"></span><h4 class = \"editable\">Example: Using <code>split</code></h4>\n<p>The following example defines a function that splits a string into an array of strings using the specified separator. After splitting the string, the function displays messages indicating the original string (before the split), the separator used, the number of elements in the array, and the individual array elements.</p>\n\r\n          <pre name = \"code\" class = \"js\">function splitString(stringToSplit,separator)\n{\n  var arrayOfStrings = stringToSplit.split(separator);\n  print('The original string is: &quot;' + stringToSplit + '&quot;');\n  print('The separator is: &quot;' + separator + '&quot;');\n  print(&quot;The array has &quot; + arrayOfStrings.length + &quot; elements: &quot;);\n\n  for (var i=0; i &lt; arrayOfStrings.length; i++)\n    print(arrayOfStrings[i] + &quot; / &quot;);\n}\n\nvar tempestString = &quot;Oh brave new world that has such people in it.&quot;;\nvar monthString = &quot;Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec&quot;;\n\nvar space = &quot; &quot;;\nvar comma = &quot;,&quot;;\n\nsplitString(tempestString, space);\nsplitString(tempestString);\nsplitString(monthString, comma);</pre>\r\n        \n<p>This example produces the following output:</p>\n<pre class = \"eval\">The original string is: &quot;Oh brave new world that has such people in it.&quot;\nThe separator is: &quot; &quot;\nThe array has 10 elements: Oh / brave / new / world / that / has / such / people / in / it. /\n\nThe original string is: &quot;Oh brave new world that has such people in it.&quot;\nThe separator is: &quot;undefined&quot;\nThe array has 1 elements: Oh brave new world that has such people in it. /\n\nThe original string is: &quot;Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec&quot;\nThe separator is: &quot;,&quot;\nThe array has 12 elements: Jan / Feb / Mar / Apr / May / Jun / Jul / Aug / Sep / Oct / Nov / Dec /\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"Example:_Removing_spaces_from_a_string\"></span><h4 class = \"editable\">Example: Removing spaces from a string</h4>\n<p>In the following example, <code>split</code> looks for 0 or more spaces followed by a semicolon followed by 0 or more spaces and, when found, removes the spaces from the string. <code>nameList</code> is the array returned as a result of <code>split</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">var names = &quot;Harry Trump ;Fred Barney; Helen Rigby ; Bill Abel ;Chris Hand &quot;;\nprint(names);\nvar re = /\\s*;\\s*/;\nvar nameList = names.split(re);\nprint(nameList);</pre>\r\n        \n<p>This prints two lines; the first line prints the original string, and the second line prints the resulting array.</p>\n<pre class = \"eval\">Harry Trump&nbsp;;Fred Barney; Helen Rigby&nbsp;; Bill Abel&nbsp;;Chris Hand\nHarry Trump,Fred Barney,Helen Rigby,Bill Abel,Chris Hand\n</pre>\n</div>",
			"<div id = \"section_8\"><span id = \"Example:_Returning_a_limited_number_of_splits\"></span><h4 class = \"editable\">Example: Returning a limited number of splits</h4>\n<p>In the following example, <code>split</code> looks for 0 or more spaces in a string and returns the first 3 splits that it finds.</p>\n\r\n          <pre name = \"code\" class = \"js\">var myString = &quot;Hello World. How are you doing?&quot;;\nvar splits = myString.split(&quot; &quot;, 3);\nprint(splits);</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">Hello,World.,How\n</pre>\n</div>",
			"<div id = \"section_9\"><span id = \"Example:_Capturing_parentheses\"></span><h4 class = \"editable\">Example: Capturing parentheses</h4>\n<p>If <code>separator</code> contains capturing parentheses, matched results are returned in the array.</p>\n\r\n          <pre name = \"code\" class = \"js\">var myString = &quot;Hello 1 word. Sentence number 2.&quot;;\nvar splits = myString.split(/(\\d)/);\nprint(splits);</pre>\r\n        \n<p>This script displays the following:</p>\n<pre class = \"eval\">Hello ,1, word. Sentence number ,2, .\n</pre>\n</div>",
			"<div id = \"section_10\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/charAt\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charAt\">charAt</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/indexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf\">indexOf</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/lastIndexOf\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/lastIndexOf\">lastIndexOf</a>, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Array/join\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/join\">Array:join</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using split",
			"Example: Removing spaces from a string",
			"Example: Returning a limited number of splits",
			"Example: Capturing parentheses",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase",
		"title": "String.toLocaleLowerCase",
		"_id": "4eea857ba4c86c4dba000112",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the calling string value converted to lower case, according to any locale-specific case mappings.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> toLocaleLowerCase() </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toLocaleLowerCase</code> method returns the value of the string converted to lower case according to any locale-specific case mappings. <code>toLocaleLowerCase</code> does not affect the value of the string itself. In most cases, this will produce the same result as <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\">toLowerCase()</a>, but for some locales, such as Turkish, whose case mappings do not follow the default case mappings in Unicode, there may be a different result.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toUpperCase\"></span><span id = \"Example:_Using_toLocaleLowerCase\"></span><h4 class = \"editable\">Example: Using <code>toLocaleLowerCase</code></h4>\n<p>The following example displays the string &quot;alphabet&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var upperText=&quot;ALPHABET&quot;;\ndocument.write(upperText.toLocaleLowerCase());</pre>\r\n        </div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toUpperCase\"></span><span id = \"Example:_Using_toLocaleLowerCase\"></span><h4 class = \"editable\">Example: Using <code>toLocaleLowerCase</code></h4>\n<p>The following example displays the string &quot;alphabet&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var upperText=&quot;ALPHABET&quot;;\ndocument.write(upperText.toLocaleLowerCase());</pre>\r\n        </div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\">toLowerCase()</a></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using toLocaleLowerCase",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase",
		"title": "String.toLowerCase",
		"_id": "4eea857ca4c86c4dba000113",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the calling string value converted to lowercase.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.toLowerCase()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toLowerCase</code> method returns the value of the string converted to lowercase. <code>toLowerCase</code> does not affect the value of the string itself.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toLowerCase\"></span><h4 class = \"editable\">Example: Using <code>toLowerCase</code></h4>\n<p>The following example displays the lowercase string &quot;<code>alphabet</code>&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var upperText=&quot;ALPHABET&quot;;\ndocument.write(upperText.toLowerCase());</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toLowerCase\"></span><h4 class = \"editable\">Example: Using <code>toLowerCase</code></h4>\n<p>The following example displays the lowercase string &quot;<code>alphabet</code>&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var upperText=&quot;ALPHABET&quot;;\ndocument.write(upperText.toLowerCase());</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLocaleLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase\">toLocaleLowerCase</a></p>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\">toUpperCase</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using toLowerCase",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase",
		"title": "String.toUpperCase",
		"_id": "4eea857ea4c86c4dba000114",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.toUpperCase()</code></p>\n</div>",
			"<div id = \"section_2\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toUpperCase</code> method returns the value of the string converted to uppercase. <code>toUpperCase</code> does not affect the value of the string itself.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_5\"><span id = \"Example:_Using_toUpperCase\"></span><h4 class = \"editable\">Example: Using <code>toUpperCase</code></h4>\n<p>The following example displays the string &quot;<code>ALPHABET</code>&quot;:</p>\n<pre>\nvar lowerText=&quot;alphabet&quot;;\ndocument.write(lowerText.toUpperCase());</pre>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Example:_Using_toUpperCase\"></span><h4 class = \"editable\">Example: Using <code>toUpperCase</code></h4>\n<p>The following example displays the string &quot;<code>ALPHABET</code>&quot;:</p>\n<pre>\nvar lowerText=&quot;alphabet&quot;;\ndocument.write(lowerText.toUpperCase());</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLocaleUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase\">toLocaleUpperCase</a></p>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase\">toLowerCase</a></p>\n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using toUpperCase",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase",
		"title": "String.toLocaleUpperCase",
		"_id": "4eea8582a4c86c4dba000115",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the calling string value converted to upper case, according to any locale-specific case mappings.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> toLocaleUpperCase() </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>toLocaleUpperCase</code> method returns the value of the string converted to upper case according to any locale-specific case mappings. <code>toLocaleUpperCase</code> does not affect the value of the string itself. In most cases, this will produce the same result as <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\">toUpperCase()</a>, but for some locales, such as Turkish, whose case mappings do not follow the default case mappings in Unicode, there may be a different result.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toUpperCase\"></span><span id = \"Example:_Using_toLocaleUpperCase\"></span><h4 class = \"editable\">Example: Using <code>toLocaleUpperCase</code></h4>\n<p>The following example displays the string &quot;ALPHABET&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var lowerText=&quot;alphabet&quot;;\ndocument.write(lowerText.toLocaleUpperCase());</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toUpperCase\"></span><span id = \"Example:_Using_toLocaleUpperCase\"></span><h4 class = \"editable\">Example: Using <code>toLocaleUpperCase</code></h4>\n<p>The following example displays the string &quot;ALPHABET&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var lowerText=&quot;alphabet&quot;;\ndocument.write(lowerText.toLocaleUpperCase());</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/String/toUpperCase\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toUpperCase\">toUpperCase()</a></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using toLocaleUpperCase",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toSource",
		"title": "String.toSource",
		"_id": "4eea8583a4c86c4dba000116",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns a string representing the source code of the object.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><em>string</em>.toSource()</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>toSource</code> method returns the following values:\n</p><p>\n</p>\n<ul><li> For the built-in <code>String</code> object, <code>toSource</code> returns the following string indicating that the source code is not available:\n</li></ul>\n<pre class = \"eval\">function String() {[native code]}\n</pre>\n<ul><li> For instances of <code>String</code> or string literals, <code>toSource</code> returns a string representing the source code.\n</li></ul>\n<p>This method is usually called internally by JavaScript and not explicitly in code.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.prototype.toSource</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toString",
		"title": "String.toString",
		"_id": "4eea8583a4c86c4dba000117",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the specified object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.toString()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>String</code> object overrides the <code>toString</code> method of the <code><a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a></code> object; it does not inherit <code><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a></code>. For <code>String</code> objects, the <code>toString</code> method returns a string representation of the object.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toString\"></span><h4 class = \"editable\">Example: Using <code>toString</code></h4>\n<p>The following example displays the string value of a String object:</p>\n<pre>\nx = new String(&quot;Hello world&quot;);\nalert(x.toString())      // Displays &quot;Hello world&quot;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toString\"></span><h4 class = \"editable\">Example: Using <code>toString</code></h4>\n<p>The following example displays the string value of a String object:</p>\n<pre>\nx = new String(&quot;Hello world&quot;);\nalert(x.toString())      // Displays &quot;Hello world&quot;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a></p>\n<p>&nbsp;</p> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using toString",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/Trim",
		"title": "String.Trim",
		"_id": "4eea8584a4c86c4dba000118",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Removes whitespace from both ends of the string.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code><em>string</em>.trim()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>The <code>trim</code> method returns the string stripped of whitespace from both ends. <code>trim</code> does not affect the value of the string itself.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_6\"><span id = \"Example:_Using_toLowerCase\"></span><span id = \"Example:_Using_trim\"></span><h3 class = \"editable\">Example: Using <code>trim</code></h3>\n<p>The following example displays the lowercase string &quot;foo&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var orig = &quot;   foo  &quot;;\nalert(orig.trim());</pre>\r\n        \n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toLowerCase\"></span><span id = \"Example:_Using_trim\"></span><h3 class = \"editable\">Example: Using <code>trim</code></h3>\n<p>The following example displays the lowercase string &quot;foo&quot;:</p>\n\r\n          <pre name = \"code\" class = \"js\">var orig = &quot;   foo  &quot;;\nalert(orig.trim());</pre>\r\n        \n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h2 class = \"editable\">See Also</h2>\n<ul> <li><a class = \"internal\" title = \"en/Core JavaScript 1.5 Reference/Global Objects/String/trimLeft\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimLeft\"><code>trimLeft()</code></a></li> <li><a class = \"internal\" title = \"en/Core JavaScript 1.5 Reference/Global Objects/String/trimRight\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimRight\"><code>trimRight()</code></a></li>\n</ul>\n</div>",
			"<div id = \"section_8\"><span id = \"See_also\"></span><span id = \"Compatibility\"></span><h2 class = \"editable\">Compatibility</h2>\n<p>Running the following code before any other code will create <code>String.trim</code> if it's not natively available.</p>\n\r\n          <pre name = \"code\" class = \"js\">if(!String.prototype.trim) {\n  String.prototype.trim = function () {\n    return this.replace(/^\\s+|\\s+$/g,'');\n  };\n}</pre>\r\n        \n</div>",
			"<div id = \"section_9\"><span id = \"Browser_compatibility\"></span><h2 class = \"editable\">Browser compatibility</h2>\n<p>Based on <a class = \"external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat tables</a></p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td><span title = \"Please update this with the earliest version of support.\" style = \"color: #888\">(Supported)</span></td> <td>9</td> <td>10.5</td> <td>5</td> </tr> </tbody> </table>\n</div>\n<div id = \"compat-mobile\"> <table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody> </table>\n</div>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using trim",
			"See Also",
			"Compatibility",
			"Browser compatibility"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimLeft",
		"title": "String.TrimLeft",
		"_id": "4eea8587a4c86c4dba000119",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Removes whitespace from the left end of the string.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.trimLeft()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>trimLeft</code> method returns the string stripped of whitespace from its left end. <code>trimLeft</code> does not affect the value of the string itself.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toLowerCase\"></span><span id = \"Example:_Using_trimLeft\"></span><h4 class = \"editable\">Example: Using <code>trimLeft</code></h4>\n<p>The following example displays the lowercase string &quot;foo&nbsp; &quot;:</p>\n<pre>\nvar orig=&quot;   foo  &quot;\ndocument.write(orig.trimLeft())\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toLowerCase\"></span><span id = \"Example:_Using_trimLeft\"></span><h4 class = \"editable\">Example: Using <code>trimLeft</code></h4>\n<p>The following example displays the lowercase string &quot;foo&nbsp; &quot;:</p>\n<pre>\nvar orig=&quot;   foo  &quot;\ndocument.write(orig.trimLeft())\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/String/trim\" class = \"internal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/Trim\"><code>trim()</code></a>&nbsp;</li> <li><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/String/trimRight\" class = \"internal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimRight\"><code>trimRight()</code></a>&nbsp;</li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using trimLeft",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimRight",
		"title": "String.TrimRight",
		"_id": "4eea8587a4c86c4dba00011a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Removes whitespace from the right end of the string.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/String\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>string</em>.trimRight()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <code>trimRight</code> method returns the string stripped of whitespace from its right end. <code>trimRight</code> does not affect the value of the string itself.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_toLowerCase\"></span><span id = \"Example:_Using_trimRight\"></span><h4 class = \"editable\">Example: Using <code>trimRight</code></h4>\n<p>The following example displays the lowercase string &quot;&nbsp;&nbsp; foo&quot;:</p>\n<pre>\nvar orig=&quot;   foo  &quot;\ndocument.write(orig.trimRight())\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_toLowerCase\"></span><span id = \"Example:_Using_trimRight\"></span><h4 class = \"editable\">Example: Using <code>trimRight</code></h4>\n<p>The following example displays the lowercase string &quot;&nbsp;&nbsp; foo&quot;:</p>\n<pre>\nvar orig=&quot;   foo  &quot;\ndocument.write(orig.trimRight())\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<ul> <li><a title = \"en/Core JavaScript 1.5 Reference/Global Objects/String/trim\" class = \"internal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/Trim\"><code>trim()</code></a>&nbsp;</li> <li><strong><code>trimRight()</code></strong>&nbsp;</li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using trimRight",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/anchor",
		"title": "String.anchor",
		"_id": "4eea8588a4c86c4dba00011b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Creates an <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-name-A\" target = \"_blank\">HTML anchor</a> that is used as a hypertext target.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nanchor(<em>nameAttribute</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>nameAttribute</code>&nbsp;</dt><dd> A string.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>anchor</code> method with the <code>document.write</code> or <code>document.writeln</code> methods to programmatically create and display an anchor in a document. Create the anchor with the <code>anchor</code> method, and then call <code>write</code> or <code>writeln</code> to display the anchor in a document. In server-side JavaScript, use the <code>write</code> function to display the anchor.\n</p><p>In the syntax, the text string represents the literal text that you want the user to see. The <code>nameAttribute</code> string represents the <code>NAME</code> attribute of the A tag.\n</p><p>Anchors created with the <code>anchor</code> method become elements in the <code>document.anchors</code> array.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_anchor\"></span><h4 class = \"editable\"> Example: Using <code>anchor</code> </h4>\n<p>The following example code within an HTML <code>script</code> element:\n</p>\n<pre>\nvar myString = &quot;Table of Contents&quot;;\ndocument.writeln(myString.anchor(&quot;contents_anchor&quot;));\n</pre>\n<p>will output the following HTML:\n</p>\n<pre>\n&lt;A NAME=&quot;contents_anchor&quot;&gt;Table of Contents&lt;/A&gt;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_anchor\"></span><h4 class = \"editable\"> Example: Using <code>anchor</code> </h4>\n<p>The following example code within an HTML <code>script</code> element:\n</p>\n<pre>\nvar myString = &quot;Table of Contents&quot;;\ndocument.writeln(myString.anchor(&quot;contents_anchor&quot;));\n</pre>\n<p>will output the following HTML:\n</p>\n<pre>\n&lt;A NAME=&quot;contents_anchor&quot;&gt;Table of Contents&lt;/A&gt;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/link\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/link\">link</a>\n</p><p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using anchor ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/big",
		"title": "String.big",
		"_id": "4eea8589a4c86c4dba00011c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be displayed in a big font as if it were in a <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-BIG\" target = \"_blank\"><code>BIG</code> tag</a>.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nbig()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>big</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to display the string.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_big\"></span><h4 class = \"editable\"> Example: Using <code>big</code> </h4>\n<p>The following example uses <code>string</code> methods to change the size of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.small())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.big())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontsize(7))\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;SMALL&gt;Hello, world&lt;/SMALL&gt;\n&lt;P&gt;&lt;BIG&gt;Hello, world&lt;/BIG&gt;\n&lt;P&gt;&lt;FONTSIZE=7&gt;Hello, world&lt;/FONTSIZE&gt;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_big\"></span><h4 class = \"editable\"> Example: Using <code>big</code> </h4>\n<p>The following example uses <code>string</code> methods to change the size of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.small())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.big())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontsize(7))\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;SMALL&gt;Hello, world&lt;/SMALL&gt;\n&lt;P&gt;&lt;BIG&gt;Hello, world&lt;/BIG&gt;\n&lt;P&gt;&lt;FONTSIZE=7&gt;Hello, world&lt;/FONTSIZE&gt;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/fontsize\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontsize\">fontsize</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/small\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/small\">small</a>\n</p><p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using big ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/blink",
		"title": "String.blink",
		"_id": "4eea8589a4c86c4dba00011d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to blink as if it were in a <code>BLINK</code> tag.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nblink()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>blink</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to display the string.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the formatting of a string </h4>\n<p>The following example uses <code>string</code> methods to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.blink())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.bold())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.italics())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.strike())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;BLINK&gt;Hello, world&lt;/BLINK&gt;\n&lt;P&gt;&lt;B&gt;Hello, world&lt;/B&gt;\n&lt;P&gt;&lt;I&gt;Hello, world&lt;/I&gt;\n&lt;P&gt;&lt;STRIKE&gt;Hello, world&lt;/STRIKE&gt;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the formatting of a string </h4>\n<p>The following example uses <code>string</code> methods to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.blink())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.bold())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.italics())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.strike())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;BLINK&gt;Hello, world&lt;/BLINK&gt;\n&lt;P&gt;&lt;B&gt;Hello, world&lt;/B&gt;\n&lt;P&gt;&lt;I&gt;Hello, world&lt;/I&gt;\n&lt;P&gt;&lt;STRIKE&gt;Hello, world&lt;/STRIKE&gt;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/bold\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/bold\">bold</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/italics\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/italics\">italics</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/strike\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/strike\">strike</a>\n</p><p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using string methods to change the formatting of a string ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fixed",
		"title": "String.fixed",
		"_id": "4eea858da4c86c4dba00011e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be displayed in fixed-pitch font as if it were in a <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-TT\" target = \"_blank\"><code>TT</code> tag</a>.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nfixed()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>fixed</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to display the string.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_fixed_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>fixed</code> to change the formatting of a string </h4>\n<p>The following example uses the <code>fixed</code> method to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\ndocument.write(worldString.fixed())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;TT&gt;Hello, world&lt;/TT&gt;\n</pre>\n<p><br/>\n</p> </div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_fixed_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>fixed</code> to change the formatting of a string </h4>\n<p>The following example uses the <code>fixed</code> method to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\ndocument.write(worldString.fixed())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;TT&gt;Hello, world&lt;/TT&gt;\n</pre>\n<p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using fixed to change the formatting of a string "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/bold",
		"title": "String.bold",
		"_id": "4eea858da4c86c4dba00011f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be displayed as bold as if it were in a <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-B\" target = \"_blank\"><code>B</code> tag</a>.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nbold()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>bold</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to display the string.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the formatting of a string </h4>\n<p>The following example uses <code>string</code> methods to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.blink())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.bold())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.italics())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.strike())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;BLINK&gt;Hello, world&lt;/BLINK&gt;\n&lt;P&gt;&lt;B&gt;Hello, world&lt;/B&gt;\n&lt;P&gt;&lt;I&gt;Hello, world&lt;/I&gt;\n&lt;P&gt;&lt;STRIKE&gt;Hello, world&lt;/STRIKE&gt;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the formatting of a string </h4>\n<p>The following example uses <code>string</code> methods to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.blink())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.bold())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.italics())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.strike())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;BLINK&gt;Hello, world&lt;/BLINK&gt;\n&lt;P&gt;&lt;B&gt;Hello, world&lt;/B&gt;\n&lt;P&gt;&lt;I&gt;Hello, world&lt;/I&gt;\n&lt;P&gt;&lt;STRIKE&gt;Hello, world&lt;/STRIKE&gt;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/blink\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/blink\">blink</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/italics\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/italics\">italics</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/strike\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/strike\">strike</a>\n</p><p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using string methods to change the formatting of a string ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/italics",
		"title": "String.italics",
		"_id": "4eea858ea4c86c4dba000120",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be italic, as if it were in an <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-I\" target = \"_blank\"><code>I</code> tag</a>.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nitalics()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>italics</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to display the string.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the formatting of a string </h4>\n<p>The following example uses <code>string</code> methods to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.blink())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.bold())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.italics())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.strike())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;BLINK&gt;Hello, world&lt;/BLINK&gt;\n&lt;P&gt;&lt;B&gt;Hello, world&lt;/B&gt;\n&lt;P&gt;&lt;I&gt;Hello, world&lt;/I&gt;\n&lt;P&gt;&lt;STRIKE&gt;Hello, world&lt;/STRIKE&gt;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the formatting of a string </h4>\n<p>The following example uses <code>string</code> methods to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.blink())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.bold())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.italics())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.strike())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;BLINK&gt;Hello, world&lt;/BLINK&gt;\n&lt;P&gt;&lt;B&gt;Hello, world&lt;/B&gt;\n&lt;P&gt;&lt;I&gt;Hello, world&lt;/I&gt;\n&lt;P&gt;&lt;STRIKE&gt;Hello, world&lt;/STRIKE&gt;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/blink\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/blink\">blink</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/bold\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/bold\">bold</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/strike\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/strike\">strike</a>\n</p><p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using string methods to change the formatting of a string ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontcolor",
		"title": "String.fontcolor",
		"_id": "4eea858ea4c86c4dba000121",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be displayed in the specified color as if it were in a <code>&lt;FONT COLOR=&quot;<em>color</em>&quot;&gt;</code> tag.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nfontcolor(<em>color</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>color</code>&nbsp;</dt><dd> A string expressing the color as a hexadecimal RGB triplet or as a string literal. String literals for color names are listed in the <a title = \"en/JavaScript/Guide\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Guide\">Core JavaScript 1.5 Guide</a>.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>fontcolor</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to display the string.\n</p><p>If you express color as a hexadecimal RGB triplet, you must use the format <code>rrggbb</code>. For example, the hexadecimal RGB values for salmon are red=FA, green=80, and blue=72, so the RGB triplet for salmon is &quot;<code>FA8072</code>&quot;.\n</p><p>The <code>fontcolor</code> method overrides a value set in the <code>fgColor</code> property.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_fontcolor\"></span><h4 class = \"editable\"> Example: Using <code>fontcolor</code> </h4>\n<p>The following example uses the <code>fontcolor</code> method to change the color of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.fontcolor(&quot;maroon&quot;) +\n   &quot; is maroon in this line&quot;)\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;salmon&quot;) +\n   &quot; is salmon in this line&quot;)\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;red&quot;) +\n   &quot; is red in this line&quot;)\n\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;8000&quot;) +\n   &quot; is maroon in hexadecimal in this line&quot;)\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;FA8072&quot;) +\n   &quot; is salmon in hexadecimal in this line&quot;)\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;FF00&quot;) +\n   &quot; is red in hexadecimal in this line&quot;)\n</pre>\n<p>The previous example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;FONT COLOR=&quot;maroon&quot;&gt;Hello, world&lt;/FONT&gt; is maroon in this line\n&lt;P&gt;&lt;FONT COLOR=&quot;salmon&quot;&gt;Hello, world&lt;/FONT&gt; is salmon in this line\n&lt;P&gt;&lt;FONT COLOR=&quot;red&quot;&gt;Hello, world&lt;/FONT&gt; is red in this line\n\n&lt;P&gt;&lt;FONT COLOR=&quot;8000&quot;&gt;Hello, world&lt;/FONT&gt;\nis maroon in hexadecimal in this line\n&lt;P&gt;&lt;FONT COLOR=&quot;FA8072&quot;&gt;Hello, world&lt;/FONT&gt;\nis salmon in hexadecimal in this line\n&lt;P&gt;&lt;FONT COLOR=&quot;FF00&quot;&gt;Hello, world&lt;/FONT&gt;\nis red in hexadecimal in this line\n</pre> </div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_fontcolor\"></span><h4 class = \"editable\"> Example: Using <code>fontcolor</code> </h4>\n<p>The following example uses the <code>fontcolor</code> method to change the color of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.fontcolor(&quot;maroon&quot;) +\n   &quot; is maroon in this line&quot;)\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;salmon&quot;) +\n   &quot; is salmon in this line&quot;)\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;red&quot;) +\n   &quot; is red in this line&quot;)\n\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;8000&quot;) +\n   &quot; is maroon in hexadecimal in this line&quot;)\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;FA8072&quot;) +\n   &quot; is salmon in hexadecimal in this line&quot;)\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontcolor(&quot;FF00&quot;) +\n   &quot; is red in hexadecimal in this line&quot;)\n</pre>\n<p>The previous example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;FONT COLOR=&quot;maroon&quot;&gt;Hello, world&lt;/FONT&gt; is maroon in this line\n&lt;P&gt;&lt;FONT COLOR=&quot;salmon&quot;&gt;Hello, world&lt;/FONT&gt; is salmon in this line\n&lt;P&gt;&lt;FONT COLOR=&quot;red&quot;&gt;Hello, world&lt;/FONT&gt; is red in this line\n\n&lt;P&gt;&lt;FONT COLOR=&quot;8000&quot;&gt;Hello, world&lt;/FONT&gt;\nis maroon in hexadecimal in this line\n&lt;P&gt;&lt;FONT COLOR=&quot;FA8072&quot;&gt;Hello, world&lt;/FONT&gt;\nis salmon in hexadecimal in this line\n&lt;P&gt;&lt;FONT COLOR=&quot;FF00&quot;&gt;Hello, world&lt;/FONT&gt;\nis red in hexadecimal in this line\n</pre> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using fontcolor "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontsize",
		"title": "String.fontsize",
		"_id": "4eea858fa4c86c4dba000122",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be displayed in the specified font size as if it were in a <code>&lt;FONT SIZE=&quot;<em>size</em>&quot;&gt;</code> tag.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nfontsize(<em>size</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>size</code>&nbsp;</dt><dd> An integer between 1 and 7, a string representing a signed integer between 1 and 7.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>fontsize</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to display the string.\n</p><p>When you specify size as an integer, you set the size of <code>stringName</code> to one of the 7 defined sizes. When you specify <code>size</code> as a string such as &quot;-2&quot;, you adjust the font size of <code>stringName</code> relative to the size set in the <code>BASEFONT</code> tag.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_size_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the size of a string </h4>\n<p>The following example uses <code>string</code> methods to change the size of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.small())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.big())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontsize(7))\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;SMALL&gt;Hello, world&lt;/SMALL&gt;\n&lt;P&gt;&lt;BIG&gt;Hello, world&lt;/BIG&gt;\n&lt;P&gt;&lt;FONT SIZE=&quot;7&quot;&gt;Hello, world&lt;/FONT&gt;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_size_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the size of a string </h4>\n<p>The following example uses <code>string</code> methods to change the size of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.small())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.big())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontsize(7))\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;SMALL&gt;Hello, world&lt;/SMALL&gt;\n&lt;P&gt;&lt;BIG&gt;Hello, world&lt;/BIG&gt;\n&lt;P&gt;&lt;FONT SIZE=&quot;7&quot;&gt;Hello, world&lt;/FONT&gt;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/big\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/big\">big</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/small\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/small\">small</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using string methods to change the size of a string ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/small",
		"title": "String.small",
		"_id": "4eea8598a4c86c4dba000123",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be displayed in a small font, as if it were in a <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-SMALL\" target = \"_blank\"><code>SMALL</code> tag</a>.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsmall()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>small</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to display the string.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_size_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the size of a string </h4>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.small())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.big())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontsize(7))\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;SMALL&gt;Hello, world&lt;/SMALL&gt;\n&lt;P&gt;&lt;BIG&gt;Hello, world&lt;/BIG&gt;\n&lt;P&gt;&lt;FONTSIZE=7&gt;Hello, world&lt;/FONTSIZE&gt;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_size_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the size of a string </h4>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.small())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.big())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.fontsize(7))\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;SMALL&gt;Hello, world&lt;/SMALL&gt;\n&lt;P&gt;&lt;BIG&gt;Hello, world&lt;/BIG&gt;\n&lt;P&gt;&lt;FONTSIZE=7&gt;Hello, world&lt;/FONTSIZE&gt;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/big\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/big\">big</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/fontsize\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fontsize\">fontsize</a>\n</p><p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using string methods to change the size of a string ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sub",
		"title": "String.sub",
		"_id": "4eea8599a4c86c4dba000124",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be displayed as a subscript, as if it were in a <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUB\" target = \"_blank\"><code>SUB</code> tag</a>.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsub()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>sub</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to generate the HTML.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_sub_and_sup_methods_to_format_a_string\"></span><h4 class = \"editable\"> Example: Using <code>sub</code> and <code>sup</code> methods to format a string </h4>\n<p>The following example uses the <code>sub</code> and <code>sup</code> methods to format a string:\n</p>\n<pre>\nvar superText=&quot;superscript&quot;\nvar subText=&quot;subscript&quot;\n\ndocument.write(&quot;This is what a &quot; + superText.sup() + &quot; looks like.&quot;)\ndocument.write(&quot;&lt;P&gt;This is what a &quot; + subText.sub() + &quot; looks like.&quot;)\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\nThis is what a &lt;SUP&gt;superscript&lt;/SUP&gt; looks like.\n&lt;P&gt;This is what a &lt;SUB&gt;subscript&lt;/SUB&gt; looks like.\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_sub_and_sup_methods_to_format_a_string\"></span><h4 class = \"editable\"> Example: Using <code>sub</code> and <code>sup</code> methods to format a string </h4>\n<p>The following example uses the <code>sub</code> and <code>sup</code> methods to format a string:\n</p>\n<pre>\nvar superText=&quot;superscript&quot;\nvar subText=&quot;subscript&quot;\n\ndocument.write(&quot;This is what a &quot; + superText.sup() + &quot; looks like.&quot;)\ndocument.write(&quot;&lt;P&gt;This is what a &quot; + subText.sub() + &quot; looks like.&quot;)\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\nThis is what a &lt;SUP&gt;superscript&lt;/SUP&gt; looks like.\n&lt;P&gt;This is what a &lt;SUB&gt;subscript&lt;/SUB&gt; looks like.\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/sup\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sup\">sup</a>\n</p><p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using sub and sup methods to format a string ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/link",
		"title": "String.link",
		"_id": "4eea8599a4c86c4dba000125",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Creates an <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" title = \"http://www.w3.org/TR/html401/struct/links.html#adef-href\" target = \"_blank\">HTML hypertext link</a> that requests another URL.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nlink(<em>hrefAttribute</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>hrefAttribute</code>&nbsp;</dt><dd> Any string that specifies the <code>HREF</code> of the <code>A</code> tag; it should be a valid URL (relative or absolute).\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>link</code> method to create an HTML snippet for a hypertext link. The returned string can then be added to the document via <code><a rel = \"custom\" href = \"https://developer.mozilla.org/en/DOM/document.write\">document.write</a></code>\n or <code><a rel = \"custom\" href = \"https://developer.mozilla.org/en/DOM/element.innerHTML\">element.innerHTML</a></code>\n.\n</p><p>Links created with the <code>link</code> method become elements in the <code>links</code> array of the <code>document</code> object. See <code><a rel = \"custom\" href = \"https://developer.mozilla.org/en/DOM/document.links\">document.links</a></code>\n.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_link\"></span><h4 class = \"editable\"> Example: Using <code>link</code> </h4>\n<p>The following example displays the word &quot;Netscape&quot; as a hypertext link that returns the user to the Netscape home page:\n</p>\n<pre>\nvar hotText=&quot;Netscape&quot;\nvar URL=&quot;http://home.netscape.com&quot;\n\ndocument.write(&quot;Click to return to &quot; + hotText.link(URL))\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\nClick to return to &lt;A HREF=&quot;http://home.netscape.com&quot;&gt;Netscape&lt;/A&gt;\n</pre>\n<p><br/>\n</p> </div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_link\"></span><h4 class = \"editable\"> Example: Using <code>link</code> </h4>\n<p>The following example displays the word &quot;Netscape&quot; as a hypertext link that returns the user to the Netscape home page:\n</p>\n<pre>\nvar hotText=&quot;Netscape&quot;\nvar URL=&quot;http://home.netscape.com&quot;\n\ndocument.write(&quot;Click to return to &quot; + hotText.link(URL))\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\nClick to return to &lt;A HREF=&quot;http://home.netscape.com&quot;&gt;Netscape&lt;/A&gt;\n</pre>\n<p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using link "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/strike",
		"title": "String.strike",
		"_id": "4eea859aa4c86c4dba000126",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be displayed as struck-out text, as if it were in a <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" title = \"http://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE\" target = \"_blank\"><code>STRIKE</code> tag</a>.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nstrike()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>strike</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to display the string.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the formatting of a string </h4>\n<p>The following example uses <code>string</code> methods to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.blink())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.bold())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.italics())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.strike())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;BLINK&gt;Hello, world&lt;/BLINK&gt;\n&lt;P&gt;&lt;B&gt;Hello, world&lt;/B&gt;\n&lt;P&gt;&lt;I&gt;Hello, world&lt;/I&gt;\n&lt;P&gt;&lt;STRIKE&gt;Hello, world&lt;/STRIKE&gt;\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_string_methods_to_change_the_formatting_of_a_string\"></span><h4 class = \"editable\"> Example: Using <code>string</code> methods to change the formatting of a string </h4>\n<p>The following example uses <code>string</code> methods to change the formatting of a string:\n</p>\n<pre>\nvar worldString=&quot;Hello, world&quot;\n\ndocument.write(worldString.blink())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.bold())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.italics())\ndocument.write(&quot;&lt;P&gt;&quot; + worldString.strike())\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\n&lt;BLINK&gt;Hello, world&lt;/BLINK&gt;\n&lt;P&gt;&lt;B&gt;Hello, world&lt;/B&gt;\n&lt;P&gt;&lt;I&gt;Hello, world&lt;/I&gt;\n&lt;P&gt;&lt;STRIKE&gt;Hello, world&lt;/STRIKE&gt;\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/blink\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/blink\">blink</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/bold\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/bold\">bold</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/String/italics\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/italics\">italics</a>\n</p><p><br/>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using string methods to change the formatting of a string ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sup",
		"title": "String.sup",
		"_id": "4eea859fa4c86c4dba000127",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Causes a string to be displayed as a superscript, as if it were in a <a class = \"external\" rel = \"external\" href = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" title = \"http://www.w3.org/TR/html401/struct/text.html#edef-SUP\" target = \"_blank\"><code>SUP</code> tag</a>.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String\" title = \"en/JavaScript/Reference/Global_Objects/String\"><code>String</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nsup()\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Use the <code>sup</code> method with the <code>write</code> or <code>writeln</code> methods to format and display a string in a document. In server-side JavaScript, use the <code>write</code> function to generate the HTML.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_sub_and_sup_methods_to_format_a_string\"></span><h4 class = \"editable\"> Example: Using <code>sub</code> and <code>sup</code> methods to format a string </h4>\n<p>The following example uses the <code>sub</code> and <code>sup</code> methods to format a string:\n</p>\n<pre>\nvar superText=&quot;superscript&quot;\nvar subText=&quot;subscript&quot;\n\ndocument.write(&quot;This is what a &quot; + superText.sup() + &quot; looks like.&quot;)\ndocument.write(&quot;&lt;P&gt;This is what a &quot; + subText.sub() + &quot; looks like.&quot;)\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\nThis is what a &lt;SUP&gt;superscript&lt;/SUP&gt; looks like.\n&lt;P&gt;This is what a &lt;SUB&gt;subscript&lt;/SUB&gt; looks like.\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_sub_and_sup_methods_to_format_a_string\"></span><h4 class = \"editable\"> Example: Using <code>sub</code> and <code>sup</code> methods to format a string </h4>\n<p>The following example uses the <code>sub</code> and <code>sup</code> methods to format a string:\n</p>\n<pre>\nvar superText=&quot;superscript&quot;\nvar subText=&quot;subscript&quot;\n\ndocument.write(&quot;This is what a &quot; + superText.sup() + &quot; looks like.&quot;)\ndocument.write(&quot;&lt;P&gt;This is what a &quot; + subText.sub() + &quot; looks like.&quot;)\n</pre>\n<p>This example produces the same output as the following HTML:\n</p>\n<pre>\nThis is what a &lt;SUP&gt;superscript&lt;/SUP&gt; looks like.\n&lt;P&gt;This is what a &lt;SUB&gt;subscript&lt;/SUB&gt; looks like.\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/String/sub\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/sub\">sub</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using sub and sup methods to format a string ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView",
		"title": "ArrayBufferView",
		"_id": "4eea85a2a4c86c4dba000128",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Attributes\"></span><h2 class = \"editable\">&nbsp;Attributes</h2>\n<table class = \"standard-table\" style = \"width: auto;\"> <tbody> <tr> <td class = \"header\">Attribute</td> <td class = \"header\">Type</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>buffer</code></td> <td><a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a></td> <td>The buffer this view references. <strong>Read only.</strong></td> </tr> <tr> <td><code>byteLength<br/> </code></td> <td><code>unsigned long<br/> </code></td> <td>The length, in bytes, of the view. <strong>Read only.</strong></td> </tr> <tr> <td><code>byteOffset<br/> </code></td> <td><code>unsigned long<br/> </code></td> <td>The offset, in bytes, to the first byte of the view within the <a title = \"en/JavaScript typed arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a>.</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Typed_array_subclasses\"></span><h2 class = \"editable\">Typed array subclasses</h2>\n<p>The following subclasses provide buffer views allowing access to the data in specific data types:</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Type</td> <td class = \"header\">Size</td> <td class = \"header\">Description</td> <td class = \"header\">Equivalent C type</td> </tr> <tr> <td><a title = \"en/JavaScript typed arrays/Int8Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int8Array\"><code>Int8Array</code></a></td> <td>1</td> <td>8-bit twos complement signed integer</td> <td><code>signed char</code></td> </tr> <tr> <td><code><a title = \"en/JavaScript typed arrays/Uint8Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array\">Uint8Array</a><br/> </code></td> <td>1</td> <td>8-bit unsigned integer</td> <td><code>unsigned char<br/> </code></td> </tr> <tr> <td><code><a title = \"en/JavaScript typed arrays/Int16Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int16Array\">Int16Array</a><br/> </code></td> <td>2</td> <td>16-bit twos complement signed integer</td> <td><code>short<br/> </code></td> </tr> <tr> <td><code><a title = \"en/JavaScript typed arrays/Uint16Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint16Array\">Uint16Array</a><br/> </code></td> <td>2</td> <td>16-bit unsigned integer</td> <td><code>unsigned short<br/> </code></td> </tr> <tr> <td><code><a title = \"en/JavaScript typed arrays/Int32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Int32Array\">Int32Array</a><br/> </code></td> <td>4</td> <td>32-bit twos complement signed integer</td> <td><code>int<br/> </code></td> </tr> <tr> <td><code><a title = \"en/JavaScript typed arrays/Uint32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint32Array\">Uint32Array</a><br/> </code></td> <td>4</td> <td>32-bit unsigned integer</td> <td><code>unsigned int<br/> </code></td> </tr> <tr> <td><code><a title = \"en/JavaScript typed arrays/Float32Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float32Array\">Float32Array</a><br/> </code></td> <td>4</td> <td>32-bit IEEE&nbsp;floating point number</td> <td><code>float<br/> </code></td> </tr> <tr> <td><code><a title = \"en/JavaScript typed arrays/Float64Array\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/Float64Array\">Float64Array</a><br/> </code></td> <td>8</td> <td>64-bit IEEE floating point number</td> <td><code>double<br/> </code></td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_3\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript typed arrays/DataView\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/DataView\"><code>DataView</code></a></li> <li><a title = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" class = \" link-https\" rel = \"external\" href = \"https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/TypedArray-spec.html\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"&nbsp;Attributes",
			"Typed array subclasses",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype",
		"title": "Error.prototype",
		"_id": "4eea85a3a4c86c4dba000129",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Represents the prototype for the <a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>&nbsp;</p>\nAll <a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\"><code>Error</code></a> instances and instances of <a title = \"en/JavaScript/Reference/Global_Objects/Error#Error_types\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types\">non-generic errors</a> inherit from <strong><code>Error.prototype</code></strong>. As with all constructor functions, you can use the prototype of the constructor to add properties or methods to all instances created with that constructor.\n<p>&nbsp;</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h3 class = \"editable\">Properties</h3>\n<div id = \"section_4\"><span id = \"Standard_properties\"></span><h4 class = \"editable\">Standard properties</h4>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">message</a></dt> <dd>Error message.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/name\">name</a></dt> <dd>Error name.</dd>\n</dl>\n</div><div id = \"section_5\"><span id = \"Vendor-specific_extensions\"></span><h4 class = \"editable\">Vendor-specific extensions</h4>\n<p>\n\n<div style = \"overflow:hidden; border: 1px solid #FFB752; background-color: #FEE3BC; font-weight: bold; text-align: center; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\"><p style = \"margin: 4px 0px 4px 0px;\">Non-standard</p></div></p>\n<div id = \"section_6\"><span id = \"Microsoft\"></span><h5 class = \"editable\">Microsoft</h5>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/description\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/description\" class = \"new \">description</a></dt> <dd>Error description. Similar to <a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">message</a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/number\" class = \"new \">number</a></dt> <dd>Error number.</dd>\n</dl>\n</div><div id = \"section_7\"><span id = \"Mozilla\"></span><h5 class = \"editable\">Mozilla</h5>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/fileName\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/fileName\" class = \"new \">fileName</a></dt> <dd>Path to file that raised this error.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/lineNumber\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/lineNumber\" class = \"new \">lineNumber</a></dt> <dd>Line number in file that raised this error.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/stack\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack\">stack</a></dt> <dd>Stack trace.</dd>\n</dl>\n</div></div></div>",
			"<div id = \"section_4\"><span id = \"Standard_properties\"></span><h4 class = \"editable\">Standard properties</h4>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">message</a></dt> <dd>Error message.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/name\">name</a></dt> <dd>Error name.</dd>\n</dl>\n</div>",
			"<div id = \"section_5\"><span id = \"Vendor-specific_extensions\"></span><h4 class = \"editable\">Vendor-specific extensions</h4>\n<p>\n\n<div style = \"overflow:hidden; border: 1px solid #FFB752; background-color: #FEE3BC; font-weight: bold; text-align: center; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\"><p style = \"margin: 4px 0px 4px 0px;\">Non-standard</p></div></p>\n<div id = \"section_6\"><span id = \"Microsoft\"></span><h5 class = \"editable\">Microsoft</h5>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/description\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/description\" class = \"new \">description</a></dt> <dd>Error description. Similar to <a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">message</a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/number\" class = \"new \">number</a></dt> <dd>Error number.</dd>\n</dl>\n</div><div id = \"section_7\"><span id = \"Mozilla\"></span><h5 class = \"editable\">Mozilla</h5>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/fileName\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/fileName\" class = \"new \">fileName</a></dt> <dd>Path to file that raised this error.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/lineNumber\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/lineNumber\" class = \"new \">lineNumber</a></dt> <dd>Line number in file that raised this error.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/stack\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack\">stack</a></dt> <dd>Stack trace.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Microsoft\"></span><h5 class = \"editable\">Microsoft</h5>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/description\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/description\" class = \"new \">description</a></dt> <dd>Error description. Similar to <a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">message</a>.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/number\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/number\" class = \"new \">number</a></dt> <dd>Error number.</dd>\n</dl>\n</div>",
			"<div id = \"section_7\"><span id = \"Mozilla\"></span><h5 class = \"editable\">Mozilla</h5>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/fileName\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/fileName\" class = \"new \">fileName</a></dt> <dd>Path to file that raised this error.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/lineNumber\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/lineNumber\" class = \"new \">lineNumber</a></dt> <dd>Line number in file that raised this error.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/stack\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack\">stack</a></dt> <dd>Stack trace.</dd>\n</dl>\n</div>",
			"<div id = \"section_8\"><span id = \"Methods\"></span><h3 class = \"editable\">Methods</h3>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/toSource\">toSource</a></dt> <dd><span class = \"lang lang-en\"><span class = \"nonStandardInlineTemplate\" style = \"border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;\">Non-standard</span></span>     </dd> <dd>Returns a string containing the source of the specified <code>Error</code> object; you can use this value to create a new object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource\">Object.toSource</a> method.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/Error/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/toString\">toString</a></dt> <dd>Returns a string representing the specified object. Overrides the <a title = \"en/JavaScript/Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toString\">Object.toString</a> method.</dd>\n</dl>\n<span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span>\n</div>",
			"<div id = \"section_9\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\">Error</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Object/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/prototype\">Object.prototype</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Standard properties",
			"Vendor-specific extensions",
			"",
			"",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message",
		"title": "Error.message",
		"_id": "4eea85a4a4c86c4dba00012a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>A human-readable description of the error.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\"><code>Error</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>This property contains a brief description of the error if one is available or has been set. <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a> makes extensive use of the <code>message</code> property for exceptions. The <code>message</code> property combined with the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/name\">name</a></code> property is used by the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\">Error.prototype.toString</a></code> method to create a string representation of the Error.</p>\n<p>By default, the <code>message</code> property is an empty string, but this behavior can be overridden for an instance by specifying a message as the first argument to the <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error\">Error constructor</a>.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_4\"><span id = \"Example:_Throwing_a_custom_error\"></span><h4 class = \"editable\">Example: Throwing a custom error</h4>\n<pre class = \"eval\">\nvar e = new Error(&quot;Could not parse input&quot;); // e.message is &quot;Could not parse input&quot;\nthrow e;\n</pre>\n</div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Throwing_a_custom_error\"></span><h4 class = \"editable\">Example: Throwing a custom error</h4>\n<pre class = \"eval\">\nvar e = new Error(&quot;Could not parse input&quot;); // e.message is &quot;Could not parse input&quot;\nthrow e;\n</pre>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/name\">name</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\">toString</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Examples",
			"Example: Throwing a custom error",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/name",
		"title": "Error.name",
		"_id": "4eea85a5a4c86c4dba00012b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>A name for the type of error.</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\"><code>Error</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>By default, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error\">Error</a> instances are given the name &quot;Error&quot;. The <code>name</code> property, in addition to the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\">message</a></code> property, is used by the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\">Error.prototype.toString</a></code> method to create a string representation of the error.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_4\"><span id = \"Example:_Throwing_a_custom_error\"></span><h4 class = \"editable\">Example: Throwing a custom error</h4>\n<pre class = \"eval\">\nvar e = new Error(&quot;Malformed input&quot;); // e.name is &quot;Error&quot;\ne.name = &quot;ParseError&quot;;                // e.toString() would return\nthrow e;                              // &quot;ParseError: Malformed input&quot;\n</pre>\n</div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Throwing_a_custom_error\"></span><h4 class = \"editable\">Example: Throwing a custom error</h4>\n<pre class = \"eval\">\nvar e = new Error(&quot;Malformed input&quot;); // e.name is &quot;Error&quot;\ne.name = &quot;ParseError&quot;;                // e.toString() would return\nthrow e;                              // &quot;ParseError: Malformed input&quot;\n</pre>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\">message</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\">toString</a></li>\n</ul></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Examples",
			"Example: Throwing a custom error",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack",
		"title": "Error.Stack",
		"_id": "4eea85a8a4c86c4dba00012c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>This non-standard property of <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error\">Error</a> objects offers a trace of which functions were called, in what order, from which line and file, and with what arguments. The stack string proceeds from the most recent calls to earlier ones, leading back to the original global scope call.</p>\n<p>Each step will be separated by a newline, with the first part of the line being the function name (if not a call from the global scope), followed by the argument values converted to string in parentheses, then by an at (@) sign, the file location (except when the function is the error constructor as the error is being thrown), a colon, and, if there is a file location, the line number. (Note the Error object also possesses the fileName and lineNumber properties for retrieving these from the error thrown (but only the error, and not its trace).)</p>\n<p>While an object (or array, etc.) will appear in the converted form &quot;[object Object]&quot;, and as such cannot be evaluated back into the actual objects, scalar values can be retrieved (though it may be easier to use arguments.callee.caller.arguments, as could the function name be retrieved by arguments.callee.caller.name). &quot;undefined&quot; is listed as &quot;(void 0)&quot;. Note that if string arguments are passed in with values such as &quot;@&quot;, &quot;(&quot;, &quot;)&quot; (or if in file names), you cannot easily rely on these for breaking the line into its component parts.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Example\"></span><h2 class = \"editable\">Example</h2>\n<p>The following HTML markup demonstrates the use of <code>stack</code> property.</p>\n\r\n          <pre name = \"code\" class = \"xml\">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1251&quot;&gt;\n&lt;meta http-equiv=&quot;Content-Script-Type&quot; content=&quot;text/javascript&quot;&gt;\n&lt;title&gt;Stack Trace Example&lt;/title&gt;\n&lt;body&gt;\n    &lt;script type=&quot;text/javascript&quot;&gt;\n        function trace() {\n            try {\n                throw new Error(&quot;myError&quot;);\n            }\n            catch(e) {\n                alert(e.stack);\n            }\n        }\n        function b() {\n            trace();\n        }\n        function a() {\n            b(3, 4, &quot;\\n\\n&quot;, undefined, {});\n        }\n        a(&quot;first call, firstarg&quot;);\n    &lt;/script&gt;</pre>\r\n        \n<p>Assuming the above markup is saved as C:\\example.html on a Windows file system and is open in a browser it produces an alert message box with the following text:</p>\n<pre>\nError(&quot;myError&quot;)@:0\ntrace()@file:///C:/example.html:9\nb(3,4,&quot;\\n\\n&quot;,(void 0),[object Object])@file:///C:/example.html:16\na(&quot;first call, firstarg&quot;)@file:///C:/example.html:19\n@file:///C:/example.html:21\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<p><a title = \"en/Components.stack\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Components.stack\">Components.stack</a></p></div>"
		],
		"sectionNames": [
			"Description",
			"Example",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/toSource",
		"title": "Error.toSource",
		"_id": "4eea85aaa4c86c4dba00012d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns code that could eval to the same error.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Date\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\"><code>Date</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.3</td> </tr> <tr> <td>ECMAScript Edition</td> <td>none</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code><i>error</i>.toSource()</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<p>None.\n</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Calling the <code>toString</code> method of an <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error\">Error</a> instance (including <i><a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error#Error_types\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error#Error_types\">NativeErrors</a></i>) will return a string containing the source code of the error. This string can be evaluated to create an (approximately) equal object. Naturally, the string containing the source follows the structure of the <code>Error</code> constructor. For example:\n</p>\n<pre class = \"eval\">(new <i>name</i>(<i>message</i>, <i>fileName</i>, <i>lineNumber</i>))\n</pre>\n<p>where these attributes correspond to the respective properties of the error instance.\n</p>\n<div class = \"note\">Be aware that the properties used by the <code>toSource</code> method in the creation of this string are mutable and may not accurately reflect the function used to create an error instance or the filename or line number where the actual error occurred.</div>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\"> See also </h3>\n<ul><li> <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/fileName\" class = \"new \" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/fileName\">fileName</a>\n</li><li> <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/lineNumber\" class = \"new \" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/lineNumber\">lineNumber</a>\n</li><li> <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\">message</a>\n</li><li> <a rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/name\" title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/name\">name</a>\n</li></ul>\n</div>"
		],
		"sectionNames": [
			"Summary",
			" Syntax ",
			" Parameters ",
			" Description ",
			" See also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError/prototype",
		"title": "EvalError.prototype",
		"_id": "4eea85aca4c86c4dba00012e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the prototype the <a title = \"en/JavaScript/Reference/Global_Objects/EvalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError\"><code>EvalError</code></a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>All <a title = \"en/JavaScript/Reference/Global_Objects/EvalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError\">EvalError</a> instances inherit from <strong><code>EvalError.prototype</code></strong>. You can use the prototype to add properties or methods to all instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/EvalError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError/constructor\" class = \"new \"><code>constructor</code></a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/EvalError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError/name\" class = \"new \"><code>name</code></a></dt> <dd>Error name.</dd>\n</dl>\n<p><div class = \"note\"><strong>Note:</strong>&nbsp;Although ECMA-262 specifies that EvalError should provide its own message property, in SpiderMonkey, it inherits Error.prototype.message.</div>\n</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p>Although the <code>EvalError</code> prototype object does not contain any methods of its own, <a title = \"en/JavaScript/Reference/Global_Objects/EvalError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/EvalError\"><code>EvalError</code></a> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span><br/>\n<span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\"><code>Error.prototype</code></a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\"><code>Function.prototype</code></a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/toString",
		"title": "Error.toString",
		"_id": "4eea85ada4c86c4dba00012f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a string representing the specified Error object.\n</p><table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error\"><code>Error</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code><em>error</em>.toString()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>The <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error\">Error</a> object overrides the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString\">Object.prototype.toString</a></code> method inherited by all objects. According to <a title = \"en/ECMAScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a>, implementations are free to decide the behavior of this method. <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a> joins string representations of the <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/name\">name</a></code> and <code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\">message</a></code> properties with a colon and a space separating the two. If the string representation of either of these two properties is an empty string, this method simply returns the string representation of the property that has a non-zero length. If both properties' string representations are empty strings, this method returns an empty string.</p>\n<p>Note that when creating a string representation of the <code>name</code> and <code>message</code> properties, this method does not invoke those properties' <code>toString</code> methods. If the value in either of these properties is not already a string, this method will behave as if that property contained an empty string.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Example\"></span><h3 class = \"editable\">Example</h3>\n<pre class = \"eval\">\nvar e = new Error(&quot;fatal error&quot;);\ne.toString(); // returns &quot;Error: fatal error&quot;\n\ne.name = undefined;\ne.toString(); // returns &quot;fatal error&quot;\n\ne.message = undefined;\ne.toString(); // returns &quot;&quot;\n\ne.name = &quot;Error&quot;;\ne.toString(); // returns &quot;Error&quot;\n</pre>\n</div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toSource\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toSource\">toSource</a></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Example",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError/prototype",
		"title": "RangeError.prototype",
		"_id": "4eea85afa4c86c4dba000130",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Represents the prototype the <a title = \"en/JavaScript/Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>All <a title = \"en/JavaScript/Reference/Global_Functions/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a> instances inherit from <code>RangeError.prototype</code>. You can use the prototype to add properties or methods to all instances.</p></div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h3 class = \"editable\">Properties</h3>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RangeError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/RangeError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError/name\" class = \"new \">name</a></dt> <dd>Error name.</dd>\n</dl>\n<div class = \"note\">Although <a title = \"en/ECMAScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a> specifies that <a title = \"en/JavaScript/Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a> should provide its own <code>message</code> property, in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a>, it inherits <a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">Error.prototype.message</a>.</div>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h3 class = \"editable\">Methods</h3>\n<p>Although the <code>RangeError</code> prototype object does not contain any methods of its own, <a title = \"en/JavaScript/Reference/Global_Objects/RangeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RangeError\">RangeError</a> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\">Error.prototype</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">Function.prototype</a></li>\n</ul> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/prototype",
		"title": "ReferenceError.prototype",
		"_id": "4eea85b1a4c86c4dba000131",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the prototype for the <a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError\"><code>ReferenceError</code></a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>All <a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError\"><code>ReferenceError</code></a> instances inherit from <code>ReferenceError.prototype</code>. You can use the prototype to add properties or methods to all instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/name\"><code>name</code></a></dt> <dd>Error name.</dd>\n</dl>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p>Although the <code>ReferenceError</code> prototype object does not contain any methods of its own, <a title = \"en/JavaScript/Reference/Global_Objects/ReferenceError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError\"><code>ReferenceError</code></a> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\"><code>Error.prototype</code></a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\"><code>Function.prototype</code></a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/ReferenceError/name",
		"title": "ReferenceError.name",
		"_id": "4eea85b8a4c86c4dba000132",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>A name for the type of error. </p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>By default, <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/ReferenceError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/ReferenceError\">ReferenceError</a> instances are given the name &quot;ReferenceError&quot;.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message\">message</a></li> <li><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\" rel = \"internal\" href = \"https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/toString\">toString</a></li>\n</ul>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError/prototype",
		"title": "SyntaxError.prototype",
		"_id": "4eea85b9a4c86c4dba000133",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Represents the prototype for the <a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError\">SyntaxError</a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>All&nbsp;<code><a class = \"internal\" title = \"en/JavaScript/Reference/Global Objects/SyntaxError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError\">SyntaxError</a></code>&nbsp;instances inherit from&nbsp;<code>SyntaxError.prototype</code>. You can use the prototype to add properties or methods to all instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h2 class = \"editable\">Properties</h2>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError/constructor\" class = \"new \"><code>constructor</code></a></dt> <dd>Specifies the function that created an instance's prototype.</dd> <dt><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError/name\" class = \"new \">name</a></dt> <dd>Error name.</dd>\n</dl>\n<div class = \"note\"><strong>Note:</strong> Although <a title = \"en/ECMAScript\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a>&nbsp; specifies that <code><a title = \"en/JavaScript/Reference/Global Objects/SyntaxError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError\">SyntaxError</a></code> should provide its own <code>message</code> property, in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"/en/SpiderMonkey\">SpiderMonkey</a>, it inherits <a title = \"en/JavaScript/Reference/Global Objects/Error/message\" rel = \"internal\" href = \"/en/JavaScript/Reference/Global_Objects/Error/message\">Error.prototype.message</a>.</div>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<p>Although the <code>SyntaxError</code> prototype object does not contain any methods of its own, <code><a title = \"en/JavaScript/Reference/Global_Objects/SyntaxError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/SyntaxError\">SyntaxError</a></code> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\">Error.prototype</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">Function.prototype</a></li>\n</ul>\n<p></p></div></div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\">Error.prototype</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">Function.prototype</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError/prototype",
		"title": "TypeError.prototype",
		"_id": "4eea85bba4c86c4dba000134",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Represents the prototype for the <a title = \"en/JavaScript/Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\">TypeError</a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>All <a title = \"en/JavaScript/Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\">TypeError</a> instances inherit from <code>TypeError.prototype</code>. You can use the prototype to add properties or methods to all instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h3 class = \"editable\">Properties</h3>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/TypeError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/TypeError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError/name\" class = \"new \">name</a></dt> <dd>Error name.</dd>\n</dl>\n<div class = \"note\"><strong>Note:</strong> Although <a title = \"en/ECMA-262\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a> specifies that <code><a title = \"en/JavaScript/Reference/Global Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\">TypeError</a></code> should provide its own <code>message</code> property, in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a>, it inherits <a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">Error.prototype.message</a>.</div>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h3 class = \"editable\">Methods</h3>\n<p>Although the <code>TypeError</code> prototype object does not contain any methods of its own, <code><a title = \"en/JavaScript/Reference/Global_Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\">TypeError</a></code> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\">Error.prototype</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">Function.prototype</a></li>\n</ul>\n\n<p></p>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError/prototype",
		"title": "URIError.prototype",
		"_id": "4eea85bda4c86c4dba000135",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Represents the prototype for the <a title = \"en/JavaScript/Reference/Global_Objects/URIError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError\">URIError</a> constructor.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>All <a title = \"en/JavaScript/Reference/Global_Objects/URIError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError\"><code>URIError</code></a> instances inherit from <code>URIError.prototype</code>. You can use the prototype to add properties or methods to all instances.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Properties\"></span><h3 class = \"editable\">Properties</h3>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/URIError/constructor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError/constructor\" class = \"new \">constructor</a></dt> <dd>Specifies the function that created an instance's prototype.</dd>\n</dl>\n<dl> <dt><a title = \"en/JavaScript/Reference/Global_Objects/URIError/name\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError/name\" class = \"new \">name</a></dt> <dd>Error name.</dd>\n</dl>\n<div class = \"note\"><strong>Note:</strong> Although <a title = \"en/ECMA-262\" rel = \"internal\" href = \"https://developer.mozilla.org/en/ECMAScript\">ECMA-262</a>&nbsp;specifies that <code><a title = \"en/JavaScript/Reference/Global Objects/URIError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError\">URIError</a> </code>should provide its own <code>message</code> property, in <a title = \"en/SpiderMonkey\" rel = \"internal\" href = \"https://developer.mozilla.org/en/SpiderMonkey\">SpiderMonkey</a>, it inherits <code><a title = \"en/JavaScript/Reference/Global_Objects/Error/message\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/message\">Error.prototype.message</a></code>.</div>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Properties inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AfileName\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:fileName\" class = \" new\">fileName</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AlineNumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:lineNumber\" class = \" new\">lineNumber</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Amessage\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:message\" class = \" new\">message</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aname\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:name\" class = \" new\">name</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Anumber\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:number\" class = \" new\">number</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Astack\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:stack\" class = \" new\">stack</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_4\"><span id = \"Methods\"></span><h3 class = \"editable\">Methods</h3>\n<p>Although the <code>URIError</code> prototype object does not contain any methods of its own, <code><a title = \"en/JavaScript/Reference/Global_Objects/URIError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/URIError\">URIError</a></code> instances do inherit some methods through the prototype chain.</p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:prototype\" class = \" new\">Error.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoSource\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toSource\" class = \" new\">toSource</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AError%3AtoString\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Error:toString\" class = \" new\">toString</a></small>\n</p>\n</div> </span></p>\n<p><span class = \"lang lang-en\">\n\n<div style = \"border: solid #ccc 1px; background: #eee; padding: 0px 10px 0px 10px; margin: 10px 0px 10px 0px;\">\n<p><strong>Methods inherited from <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aprototype\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:prototype\" class = \" new\">Object.prototype</a></strong><br/>\n<small>\n<a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineGetter\" class = \" new\">__defineGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__defineSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__defineSetter\" class = \" new\">__defineSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AhasOwnProperty\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:hasOwnProperty\" class = \" new\">hasOwnProperty</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AisPrototypeOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:isPrototypeOf\" class = \" new\">isPrototypeOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupGetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupGetter\" class = \" new\">__lookupGetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__lookupSetter\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__lookupSetter\" class = \" new\">__lookupSetter__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3A__noSuchMethod\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:__noSuchMethod\" class = \" new\">__noSuchMethod__</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3ApropertyIsEnumerable\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:propertyIsEnumerable\" class = \" new\">propertyIsEnumerable</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Aunwatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:unwatch\" class = \" new\">unwatch</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3AvalueOf\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:valueOf\" class = \" new\">valueOf</a>, <a rel = \"internal\" href = \"https://developer.mozilla.org/Core_JavaScript_1.5_Reference%3AGlobal_Objects%3AObject%3Awatch\" title = \"Core_JavaScript_1.5_Reference:Global_Objects:Object:watch\" class = \" new\">watch</a></small>\n</p>\n</div> </span></p>\n</div>",
			"<div id = \"section_5\"><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<ul> <li><a title = \"en/JavaScript/Reference/Global_Objects/Error/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/prototype\">Error.prototype</a></li> <li><a title = \"en/JavaScript/Reference/Global_Objects/Function/prototype\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/prototype\">Function.prototype</a></li>\n</ul>\n\n<p></p>\n</div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Properties",
			"Methods",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Constructor",
		"title": "Object.Constructor",
		"_id": "4eea85bfa4c86c4dba000136",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a reference to the <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\">Object</a> function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name, but it isn't read only (except for primitive Boolean, Number or String values: 1, true, &quot;read-only&quot;).</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\" title = \"en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>All objects inherit a <code>constructor</code> property from their <code>prototype</code>:</p>\n<pre>\no = new Object // or o = {} in JavaScript 1.2\no.constructor == Object\na = new Array // or a = [] in JavaScript 1.2\na.constructor == Array\nn = new Number(3)\nn.constructor == Number\n</pre>\n<p>Even though you cannot construct most HTML objects, you can do comparisons. For example,</p>\n<pre>\ndocument.constructor == Document\ndocument.form3.constructor == Form\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_4\"><span id = \"Example:_Displaying_the_constructor_of_an_object\"></span><h4 class = \"editable\">Example: Displaying the constructor of an object</h4>\n<p>The following example creates a prototype, <code>Tree</code>, and an object of that type, <code>theTree</code>. The example then displays the <code>constructor</code> property for the object <code>theTree</code>.</p>\n<pre>\nfunction Tree(name) {\n   this.name = name;\n}\ntheTree = new Tree(&quot;Redwood&quot;);\nconsole.log(&quot;theTree.constructor is &quot; + theTree.constructor);\n</pre>\n<p>This example displays the following output:</p>\n<pre class = \"eval\">\ntheTree.constructor is function Tree(name) {\n    this.name = name;\n}\n</pre>\n</div><div id = \"section_5\"><span id = \"Example:_Changing_the_constructor_of_an_object\"></span><h4 class = \"editable\">Example: Changing the constructor of an object</h4>\n<p>The following example shows how to modify constructor value of generic objects. Only true, 1 and &quot;test&quot; variable constructors will not be changed. This example explains that is not always so safe to believe in constructor function.</p>\n<pre>\nfunction Type(){};\nvar\ttypes = [\n\tnew Array,\t[],\n\tnew Boolean,\ttrue,\n\tnew Date,\n\tnew Error,\n\tnew Function,\tfunction(){},\n\tMath,\t\n\tnew Number,\t1,\n\tnew Object,\t{},\n\tnew RegExp,\t/(?:)/,\n\tnew String,\t&quot;test&quot;\n];\nfor(var i = 0; i &lt; types.length; i++){\n\ttypes[i].constructor = Type;\n\ttypes[i] = [types[i].constructor, types[i] instanceof Type, types[i].toString()];\n};\nalert(types.join(&quot;\\n&quot;));\n</pre>\n<p></p></div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Displaying_the_constructor_of_an_object\"></span><h4 class = \"editable\">Example: Displaying the constructor of an object</h4>\n<p>The following example creates a prototype, <code>Tree</code>, and an object of that type, <code>theTree</code>. The example then displays the <code>constructor</code> property for the object <code>theTree</code>.</p>\n<pre>\nfunction Tree(name) {\n   this.name = name;\n}\ntheTree = new Tree(&quot;Redwood&quot;);\nconsole.log(&quot;theTree.constructor is &quot; + theTree.constructor);\n</pre>\n<p>This example displays the following output:</p>\n<pre class = \"eval\">\ntheTree.constructor is function Tree(name) {\n    this.name = name;\n}\n</pre>\n</div>",
			"<div id = \"section_5\"><span id = \"Example:_Changing_the_constructor_of_an_object\"></span><h4 class = \"editable\">Example: Changing the constructor of an object</h4>\n<p>The following example shows how to modify constructor value of generic objects. Only true, 1 and &quot;test&quot; variable constructors will not be changed. This example explains that is not always so safe to believe in constructor function.</p>\n<pre>\nfunction Type(){};\nvar\ttypes = [\n\tnew Array,\t[],\n\tnew Boolean,\ttrue,\n\tnew Date,\n\tnew Error,\n\tnew Function,\tfunction(){},\n\tMath,\t\n\tnew Number,\t1,\n\tnew Object,\t{},\n\tnew RegExp,\t/(?:)/,\n\tnew String,\t&quot;test&quot;\n];\nfor(var i = 0; i &lt; types.length; i++){\n\ttypes[i].constructor = Type;\n\ttypes[i] = [types[i].constructor, types[i] instanceof Type, types[i].toString()];\n};\nalert(types.join(&quot;\\n&quot;));\n</pre>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Examples",
			"Example: Displaying the constructor of an object",
			"Example: Changing the constructor of an object"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON/parse",
		"title": "JSON.parse",
		"_id": "4eea85bfa4c86c4dba000137",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Parse a string as JSON, optionally transforming the value produced by parsing.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/JSON\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON\"><code>JSON</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.7</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>JSON.parse(<em>text</em>[, <em>reviver</em>])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt><code>text</code>&nbsp;</dt> <dd>The string to parse as JSON. &nbsp;See the <a title = \"en/JavaScript/Reference/Global Objects/JSON\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON\">JSON</a> object for a description of JSON syntax.</dd>\n</dl>\n<dl> <dt><code>reviver</code>&nbsp;</dt> <dd>If a function, prescribes how the value originally produced by parsing is transformed, before being returned.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p>JSON.parse parses a string as JSON and returns the parsed value.</p>\n\r\n          <pre name = \"code\" class = \"js\">JSON.parse('{}'); // {}\nJSON.parse('true'); // true\nJSON.parse('&quot;foo&quot;'); // &quot;foo&quot;\nJSON.parse('[1, 5, &quot;false&quot;]'); // [1, 5, &quot;false&quot;]\nJSON.parse('null'); // null</pre>\r\n        \n<p>If a reviver is specified, the value computed by parsing is <em>transformed</em> before being returned. Specifically, the computed value, and all its properties (beginning with the most nested properties and proceeding to the original value itself), are individually run through the reviver, which is called with the object containing the property being processed as <code>this</code> and with the property name as a string and the property value as arguments. If the reviver function returns <code>undefined&nbsp;</code>(or returns no value, e.g. if execution falls off the end of the function), the property is deleted from the object. Otherwise the property is redefined to be the return value.</p>\n<p>The reviver is ultimately called with the empty string and the topmost value to permit transformation of the topmost value. &nbsp;Be certain to handle this case properly, usually by returning the provided value, or&nbsp;<code>JSON.parse</code>&nbsp;will return <code>undefined</code>.</p>\n\r\n          <pre name = \"code\" class = \"js\">var transformed =\n  JSON.parse('{&quot;p&quot;: 5}', function(k, v) { if (k === &quot;&quot;) return v; return v * 2; });\n// transformed is { p: 10 }</pre>\r\n        \n<p>If the string to parse is not valid JSON, a SyntaxError exception is thrown.</p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON/stringify",
		"title": "JSON.stringify",
		"_id": "4eea85c1a4c86c4dba000138",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/JSON\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON\"><code>JSON</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.7</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>JSON.stringify(<em>value</em>[, <em>replacer</em> [, <em>space</em>]])</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>value</code></dt> <dd>The value to convert to a JSON string.</dd> <dt><code>replacer</code></dt> <dd>If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.<br/> A detailed description of the <code>replacer</code> function is provided in <a title = \"en/Using native JSON#The_replacer_parameter\" rel = \"internal\" href = \"https://developer.mozilla.org/En/Using_native_JSON#The_replacer_parameter\">Using native JSON#The_replacer_parameter</a>.</dd> <dt><code>space</code></dt> <dd>Causes the resulting string to be pretty-printed.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p><code>JSON.stringify</code> converts an object to JSON notation representing it.</p>\n\r\n          <pre name = \"code\" class = \"js\">assert(JSON.stringify({}) === '{}');\nassert(JSON.stringify(true) === 'true');\nassert(JSON.stringify(&quot;foo&quot;) === '&quot;foo&quot;');\nassert(JSON.stringify([1, &quot;false&quot;, false]) === '[1,&quot;false&quot;,false]');\nassert(JSON.stringify({ x: 5 }) === '{&quot;x&quot;:5}');\nJSON.stringify({x: 5, y: 6}); // '{&quot;x&quot;:5,&quot;y&quot;:6}' or '{&quot;y&quot;:6,&quot;x&quot;:5}'</pre>\r\n        \n<p>Properties of non-array objects are not guaranteed to be stringified in any particular order. Do not rely on ordering of properties within the same object within the stringification.</p>\n<p>Boolean, Number, and String objects are converted to the corresponding primitive values during stringification, in accord with the traditional conversion semantics.</p>\n<p>If <code>undefined</code>, a function, or an XML value is encountered during conversion it is either omitted (when it is found in an object) or censored to null (when it is found in an array).</p>\n<div id = \"section_5\"><span id = \"space_argument\"></span><h4 class = \"editable\"><code>space</code> argument</h4>\n<p>The space argument may be used to control spacing in the final string. If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).</p>\n\r\n          <pre name = \"code\" class = \"js\">JSON.stringify({ a: 2 }, null, &quot; &quot;);   // '{\\n &quot;a&quot;: 2\\n}'</pre>\r\n        \n<p>Using a tab character mimics standard pretty-print appearance:</p>\n\r\n          <pre name = \"code\" class = \"js\">JSON.stringify({ uno: 1, dos : 2 }, null, '\\t')\n// returns the string:\n// '{            \\\n//     &quot;uno&quot;: 1, \\\n//     &quot;dos&quot;: 2  \\\n// }'</pre>\r\n        \n<p>&nbsp;</p>\n</div><div id = \"section_6\"><span id = \"toJSON_behavior\"></span><h4 class = \"editable\">toJSON behavior</h4>\n<p>If an object being stringified has a property named <code>toJSON</code> whose value is a function, then the <code>toJSON</code> method customizes JSON stringification behavior: instead of the object being serialized, the value returned by the <code>toJSON</code> method when called will be serialized. For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">var x = {\n  foo: 'foo',\n  toJSON: function () {\n    return 'bar';\n  }\n};\nvar json = JSON.stringify({x: x});</pre>\r\n        \n<p><code>json</code> will be the string <code>'{&quot;x&quot;:&quot;bar&quot;}'</code>.</p></div></div>",
			"<div id = \"section_5\"><span id = \"space_argument\"></span><h4 class = \"editable\"><code>space</code> argument</h4>\n<p>The space argument may be used to control spacing in the final string. If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).</p>\n\r\n          <pre name = \"code\" class = \"js\">JSON.stringify({ a: 2 }, null, &quot; &quot;);   // '{\\n &quot;a&quot;: 2\\n}'</pre>\r\n        \n<p>Using a tab character mimics standard pretty-print appearance:</p>\n\r\n          <pre name = \"code\" class = \"js\">JSON.stringify({ uno: 1, dos : 2 }, null, '\\t')\n// returns the string:\n// '{            \\\n//     &quot;uno&quot;: 1, \\\n//     &quot;dos&quot;: 2  \\\n// }'</pre>\r\n        \n<p>&nbsp;</p>\n</div>",
			"<div id = \"section_6\"><span id = \"toJSON_behavior\"></span><h4 class = \"editable\">toJSON behavior</h4>\n<p>If an object being stringified has a property named <code>toJSON</code> whose value is a function, then the <code>toJSON</code> method customizes JSON stringification behavior: instead of the object being serialized, the value returned by the <code>toJSON</code> method when called will be serialized. For example:</p>\n\r\n          <pre name = \"code\" class = \"js\">var x = {\n  foo: 'foo',\n  toJSON: function () {\n    return 'bar';\n  }\n};\nvar json = JSON.stringify({x: x});</pre>\r\n        \n<p><code>json</code> will be the string <code>'{&quot;x&quot;:&quot;bar&quot;}'</code>.</p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"space argument",
			"toJSON behavior"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/LN2",
		"title": "Math.LN2",
		"_id": "4eea85c1a4c86c4dba000139",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>The natural logarithm of 2, approximately 0.693.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>LN2</code> is a static property of <code>Math</code>, you always use it as <code>Math.LN2</code>, rather than as a property of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_4\"><span id = \"Example:_Using_Math.LN2\"></span><h4 class = \"editable\"> Example: Using <code>Math.LN2</code> </h4>\n<p>The following function returns the natural log of 2:\n</p>\n<pre>\nfunction getNatLog2() {\n   return Math.LN2\n}\n</pre> </div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_Math.LN2\"></span><h4 class = \"editable\"> Example: Using <code>Math.LN2</code> </h4>\n<p>The following function returns the natural log of 2:\n</p>\n<pre>\nfunction getNatLog2() {\n   return Math.LN2\n}\n</pre> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Description ",
			" Examples ",
			" Example: Using Math.LN2 "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/E",
		"title": "Math.E",
		"_id": "4eea85c2a4c86c4dba00013a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>The base of natural logarithms, e, approximately 2.718.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Because <code>E</code> is a static property of <code>Math</code>, you always use it as <code>Math.E</code>, rather than as a property of a <code>Math</code> object you created.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_4\"><span id = \"Example:_Using_Math.E\"></span><h4 class = \"editable\">Example: Using <code>Math.E</code></h4>\n<p>The following function returns e:</p>\n<pre>\nfunction getNapier() {\n   return Math.E\n}\n</pre> <p></p></div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_Math.E\"></span><h4 class = \"editable\">Example: Using <code>Math.E</code></h4>\n<p>The following function returns e:</p>\n<pre>\nfunction getNapier() {\n   return Math.E\n}\n</pre> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Examples",
			"Example: Using Math.E"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/LN10",
		"title": "Math.LN10",
		"_id": "4eea85c3a4c86c4dba00013b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>The natural logarithm of 10, approximately 2.302.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>LN10</code> is a static property of <code>Math</code>, you always use it as <code>Math.LN10</code>, rather than as a property of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_4\"><span id = \"Example:_Using_Math.LN10\"></span><h4 class = \"editable\"> Example: Using <code>Math.LN10</code> </h4>\n<p>The following function returns the natural log of 10:\n</p>\n<pre>\nfunction getNatLog10() {\n   return Math.LN10\n}\n</pre> </div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_Math.LN10\"></span><h4 class = \"editable\"> Example: Using <code>Math.LN10</code> </h4>\n<p>The following function returns the natural log of 10:\n</p>\n<pre>\nfunction getNatLog10() {\n   return Math.LN10\n}\n</pre> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Description ",
			" Examples ",
			" Example: Using Math.LN10 "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/LOG2E",
		"title": "Math.LOG2E",
		"_id": "4eea85c4a4c86c4dba00013c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>The base 2 logarithm of E (approximately 1.442).</p>\n<table class = \"standard-table\"> <thead> <tr> <th colspan = \"2\" class = \"header\">Property of <a title = \"en/JavaScript/Reference/Global_Objects/Math\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>LOG2E</code> is a static property of <code>Math</code>, you always use it as <code>Math.LOG2E</code>, rather than as a property of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_4\"><span id = \"Example:_Using_Math.LOG2E\"></span><h4 class = \"editable\"> Example: Using <code>Math.LOG2E</code> </h4>\n<p>The following function returns the base 2 logarithm of <code>E</code>:\n</p>\n<pre>\nfunction getLog2e() {\n   return Math.LOG2E\n}\n</pre>\n<p><br/>\n</p> </div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_Math.LOG2E\"></span><h4 class = \"editable\"> Example: Using <code>Math.LOG2E</code> </h4>\n<p>The following function returns the base 2 logarithm of <code>E</code>:\n</p>\n<pre>\nfunction getLog2e() {\n   return Math.LOG2E\n}\n</pre>\n<p><br/>\n</p> </div>"
		],
		"sectionNames": [
			"Summary",
			" Description ",
			" Examples ",
			" Example: Using Math.LOG2E "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/LOG10E",
		"title": "Math.LOG10E",
		"_id": "4eea85c9a4c86c4dba00013d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>The base 10 logarithm of E (approximately 0.434).\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>LOG10E</code> is a static property of <code>Math</code>, you always use it as <code>Math.LOG10E</code>, rather than as a property of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_4\"><span id = \"Example:_Using_Math.LOG10E\"></span><h4 class = \"editable\"> Example: Using <code>Math.LOG10E</code> </h4>\n<p>The following function returns the base 10 logarithm of <code>E</code>:\n</p>\n<pre>\nfunction getLog10e() {\n   return Math.LOG10E\n} \n</pre> </div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_Math.LOG10E\"></span><h4 class = \"editable\"> Example: Using <code>Math.LOG10E</code> </h4>\n<p>The following function returns the base 10 logarithm of <code>E</code>:\n</p>\n<pre>\nfunction getLog10e() {\n   return Math.LOG10E\n} \n</pre> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Description ",
			" Examples ",
			" Example: Using Math.LOG10E "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/PI",
		"title": "Math.PI",
		"_id": "4eea85caa4c86c4dba00013e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>The ratio of the circumference of a circle to its diameter, approximately 3.14159.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>PI</code> is a static property of <code>Math</code>, you always use it as <code>Math.PI</code>, rather than as a property of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_4\"><span id = \"Example:_Using_PI\"></span><h4 class = \"editable\"> Example: Using <code>PI</code> </h4>\n<p>The following function returns the value of pi:\n</p>\n<pre>\nfunction getPi() {\n   return Math.PI\n}\n</pre> </div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_PI\"></span><h4 class = \"editable\"> Example: Using <code>PI</code> </h4>\n<p>The following function returns the value of pi:\n</p>\n<pre>\nfunction getPi() {\n   return Math.PI\n}\n</pre> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Description ",
			" Examples ",
			" Example: Using PI "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/SQRT1_2",
		"title": "Math.SQRT1_2",
		"_id": "4eea85cba4c86c4dba00013f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>The square root of 1/2; equivalently, 1 over the square root of 2, approximately 0.707.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Because <code>SQRT1_2</code> is a static property of <code>Math</code>, you always use it as <code>Math.SQRT1_2</code>, rather than as a property of a <code>Math</code> object you created.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_4\"><span id = \"Example:_Using_SQRT1_2\"></span><h4 class = \"editable\">Example: Using <code>SQRT1_2</code></h4>\n<p>The following function returns 1 over the square root of 2:</p>\n<pre>\nfunction getRoot1_2() {\n   return Math.SQRT1_2\n}\n</pre> <p></p></div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_SQRT1_2\"></span><h4 class = \"editable\">Example: Using <code>SQRT1_2</code></h4>\n<p>The following function returns 1 over the square root of 2:</p>\n<pre>\nfunction getRoot1_2() {\n   return Math.SQRT1_2\n}\n</pre> <p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Description",
			"Examples",
			"Example: Using SQRT1_2"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/SQRT2",
		"title": "Math.SQRT2",
		"_id": "4eea85cba4c86c4dba000140",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>The square root of 2, approximately 1.414.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Property of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>SQRT2</code> is a static property of <code>Math</code>, you always use it as <code>Math.SQRT2</code>, rather than as a property of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_4\"><span id = \"Example:_Using_Math.SQRT2\"></span><h4 class = \"editable\"> Example: Using <code>Math.SQRT2</code> </h4>\n<p>The following function returns the square root of 2:\n</p>\n<pre>\nfunction getRoot2() {\n   return Math.SQRT2\n}\n</pre> </div></div>",
			"<div id = \"section_4\"><span id = \"Example:_Using_Math.SQRT2\"></span><h4 class = \"editable\"> Example: Using <code>Math.SQRT2</code> </h4>\n<p>The following function returns the square root of 2:\n</p>\n<pre>\nfunction getRoot2() {\n   return Math.SQRT2\n}\n</pre> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Description ",
			" Examples ",
			" Example: Using Math.SQRT2 "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/abs",
		"title": "Math.abs",
		"_id": "4eea85cea4c86c4dba000141",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the absolute value of a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<pre class = \"eval\">var abs = Math.abs(<em>x</em>);\n</pre>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p><code>abs</code> is a static method of <code>Math</code>, so you always use it as <code>Math.abs()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Math.abs_behavior\"></span><h4 class = \"editable\"> Example: <code>Math.abs</code> behavior </h4>\n<p>Passing a non-numeric string or undefined/empty variable returns NaN. Passing null returns 0.\n</p>\n<pre class = \"eval\">Math.abs('-1');     // 1\nMath.abs(-2);       // 2\nMath.abs(null);     // 0\nMath.abs(&quot;string&quot;); // NaN\nMath.abs();         // NaN\n</pre> </div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Math.abs_behavior\"></span><h4 class = \"editable\"> Example: <code>Math.abs</code> behavior </h4>\n<p>Passing a non-numeric string or undefined/empty variable returns NaN. Passing null returns 0.\n</p>\n<pre class = \"eval\">Math.abs('-1');     // 1\nMath.abs(-2);       // 2\nMath.abs(null);     // 0\nMath.abs(&quot;string&quot;); // NaN\nMath.abs();         // NaN\n</pre> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Math.abs behavior "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/acos",
		"title": "Math.acos",
		"_id": "4eea85d0a4c86c4dba000142",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the arccosine (in radians) of a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.acos(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>acos</code> method returns a numeric value between 0 and pi radians for x between -1 and 1. If the value of <code>number</code> is outside this range, it returns <code>NaN</code>.\n</p><p><code>acos</code> is a static method of <code>Math</code>, so you always use it as <code>Math.acos()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.acos\"></span><h4 class = \"editable\"> Example: Using <code>Math.acos</code> </h4>\n<p>The following function returns the arccosine of the variable <code>x</code>:\n</p>\n<pre>\nfunction getAcos(x) {\n   return Math.acos(x)\n}\n</pre>\n<p>If you pass -1 to <code>getAcos</code>, it returns 3.141592653589793; if you pass 2, it returns <code>NaN</code> because 2 is out of range.\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.acos\"></span><h4 class = \"editable\"> Example: Using <code>Math.acos</code> </h4>\n<p>The following function returns the arccosine of the variable <code>x</code>:\n</p>\n<pre>\nfunction getAcos(x) {\n   return Math.acos(x)\n}\n</pre>\n<p>If you pass -1 to <code>getAcos</code>, it returns 3.141592653589793; if you pass 2, it returns <code>NaN</code> because 2 is out of range.\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/asin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/asin\">asin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan\">atan</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan2\">atan2</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/cos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/cos\">cos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/sin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sin\">sin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/tan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/tan\">tan</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.acos ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/asin",
		"title": "Math.asin",
		"_id": "4eea85d1a4c86c4dba000143",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the arcsine (in radians) of a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.asin(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>asin</code> method returns a numeric value between -pi/2 and pi/2 radians for x between -1 and 1. If the value of <code>number</code> is outside this range, it returns <code>NaN</code>.\n</p><p><code>asin</code> is a static method of <code>Math</code>, so you always use it as <code>Math.asin()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.asin\"></span><h4 class = \"editable\"> Example: Using <code>Math.asin</code> </h4>\n<p>The following function returns the arcsine of the variable <code>x</code>:\n</p>\n<pre>\nfunction getAsin(x) {\n   return Math.asin(x)\n}\n</pre>\n<p>If you pass <code>getAsin</code> the value 1, it returns 1.570796326794897 (pi/2); if you pass it the value 2, it returns <code>NaN</code> because 2 is out of range.\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.asin\"></span><h4 class = \"editable\"> Example: Using <code>Math.asin</code> </h4>\n<p>The following function returns the arcsine of the variable <code>x</code>:\n</p>\n<pre>\nfunction getAsin(x) {\n   return Math.asin(x)\n}\n</pre>\n<p>If you pass <code>getAsin</code> the value 1, it returns 1.570796326794897 (pi/2); if you pass it the value 2, it returns <code>NaN</code> because 2 is out of range.\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/acos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/acos\">acos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan\">atan</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan2\">atan2</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/cos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/cos\">cos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/sin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sin\">sin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/tan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/tan\">tan</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.asin ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan",
		"title": "Math.atan",
		"_id": "4eea85d2a4c86c4dba000144",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the arctangent (in radians) of a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.atan(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>atan</code> method returns a numeric value between -pi/2 and pi/2 radians.\n</p><p><code>atan</code> is a static method of <code>Math</code>, so you always use it as <code>Math.atan()</code>, rather than as a method of a <code>Math</code> object you created. </p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.atan\"></span><h4 class = \"editable\"> Example: Using <code>Math.atan</code> </h4>\n<p>The following function returns the arctangent of the variable <code>x</code>:\n</p>\n<pre>\nfunction getAtan(x) {\n   return Math.atan(x)\n}\n</pre>\n<p>If you pass <code>getAtan</code> the value 1, it returns 0.7853981633974483; if you pass it the value .5, it returns 0.4636476090008061. </p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.atan\"></span><h4 class = \"editable\"> Example: Using <code>Math.atan</code> </h4>\n<p>The following function returns the arctangent of the variable <code>x</code>:\n</p>\n<pre>\nfunction getAtan(x) {\n   return Math.atan(x)\n}\n</pre>\n<p>If you pass <code>getAtan</code> the value 1, it returns 0.7853981633974483; if you pass it the value .5, it returns 0.4636476090008061. </p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/acos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/acos\">acos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/asin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/asin\">asin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan2\">atan2</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/cos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/cos\">cos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/sin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sin\">sin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/tan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/tan\">tan</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.atan ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan2",
		"title": "Math.atan2",
		"_id": "4eea85d2a4c86c4dba000145",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the arctangent of the quotient of its arguments.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.atan2(<em>y</em>, <em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>y, x</code>&nbsp;</dt><dd> Numbers.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>atan2</code> method returns a numeric value between -pi and pi representing the angle theta of an (x,y) point. This is the counterclockwise angle, measured in radians, between the positive X axis, and the point (<code>x,y</code>). Note that the arguments to this function pass the y-coordinate first and the x-coordinate second.\n</p><p><code>atan2</code> is passed separate <code>x</code> and <code>y</code> arguments, and <code>atan</code> is passed the ratio of those two arguments.\n</p><p>Because <code>atan2</code> is a static method of <code>Math</code>, you always use it as <code>Math.atan2()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.atan2\"></span><h4 class = \"editable\"> Example: Using <code>Math.atan2</code> </h4>\n<p>The following function returns the angle of the polar coordinate:\n</p>\n<pre>\nfunction getAtan2(y,x) {\n   return Math.atan2(y,x)\n}\n</pre>\n<p>If you pass <code>getAtan2</code> the values (90,15), it returns 1.4056476493802699; if you pass it the values (15,90), it returns 0.16514867741462683.\n</p><p><code>Math.atan2( &plusmn;0, -0 )</code> returns <code>&plusmn;PI</code>.<br/>\n<code>Math.atan2( &plusmn;0, +0 )</code> returns <code>&plusmn;0</code>.<br/>\n<code>Math.atan2( &plusmn;0, -x )</code> returns <code>&plusmn;PI</code> for x &lt; 0.<br/>\n<code>Math.atan2( &plusmn;0, x )</code> returns <code>&plusmn;0</code> for x &gt; 0.<br/>\n<code>Math.atan2( y, &plusmn;0 )</code> returns <code>-PI/2</code> for y &gt; 0.<br/>\n<code>Math.atan2( &plusmn;y, -Infinity )</code> returns <code>&plusmn;PI</code> for finite y &gt; 0.<br/>\n<code>Math.atan2( &plusmn;y, +Infinity )</code> returns <code>&plusmn;0</code> for finite y &gt; 0.<br/>\n<code>Math.atan2( &plusmn;Infinity, +x )</code> returns <code>&plusmn;PI/2</code> for finite x.<br/>\n<code>Math.atan2( &plusmn;Infinity, -Infinity )</code> returns <code>&plusmn;3*PI/4</code>.<br/>\n<code>Math.atan2( &plusmn;Infinity, +Infinity )</code> returns <code>&plusmn;PI/4</code>.\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.atan2\"></span><h4 class = \"editable\"> Example: Using <code>Math.atan2</code> </h4>\n<p>The following function returns the angle of the polar coordinate:\n</p>\n<pre>\nfunction getAtan2(y,x) {\n   return Math.atan2(y,x)\n}\n</pre>\n<p>If you pass <code>getAtan2</code> the values (90,15), it returns 1.4056476493802699; if you pass it the values (15,90), it returns 0.16514867741462683.\n</p><p><code>Math.atan2( &plusmn;0, -0 )</code> returns <code>&plusmn;PI</code>.<br/>\n<code>Math.atan2( &plusmn;0, +0 )</code> returns <code>&plusmn;0</code>.<br/>\n<code>Math.atan2( &plusmn;0, -x )</code> returns <code>&plusmn;PI</code> for x &lt; 0.<br/>\n<code>Math.atan2( &plusmn;0, x )</code> returns <code>&plusmn;0</code> for x &gt; 0.<br/>\n<code>Math.atan2( y, &plusmn;0 )</code> returns <code>-PI/2</code> for y &gt; 0.<br/>\n<code>Math.atan2( &plusmn;y, -Infinity )</code> returns <code>&plusmn;PI</code> for finite y &gt; 0.<br/>\n<code>Math.atan2( &plusmn;y, +Infinity )</code> returns <code>&plusmn;0</code> for finite y &gt; 0.<br/>\n<code>Math.atan2( &plusmn;Infinity, +x )</code> returns <code>&plusmn;PI/2</code> for finite x.<br/>\n<code>Math.atan2( &plusmn;Infinity, -Infinity )</code> returns <code>&plusmn;3*PI/4</code>.<br/>\n<code>Math.atan2( &plusmn;Infinity, +Infinity )</code> returns <code>&plusmn;PI/4</code>.\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/acos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/acos\">acos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/asin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/asin\">asin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan\">atan</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/cos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/cos\">cos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/sin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sin\">sin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/tan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/tan\">tan</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.atan2 ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/ceil",
		"title": "Math.ceil",
		"_id": "4eea85d4a4c86c4dba000146",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the smallest integer greater than or equal to a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.ceil(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>ceil</code> is a static method of <code>Math</code>, you always use it as <code>Math.ceil()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.ceil\"></span><h4 class = \"editable\"> Example: Using <code>Math.ceil</code> </h4>\n<p>The following function returns the ceil value of the variable <code>x</code>:\n</p>\n<pre>\nfunction getCeil(x) {\n   return Math.ceil(x)\n}\n</pre>\n<p>If you pass 45.95 to <code>getCeil</code>, it returns 46; if you pass -45.95, it returns -45.\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.ceil\"></span><h4 class = \"editable\"> Example: Using <code>Math.ceil</code> </h4>\n<p>The following function returns the ceil value of the variable <code>x</code>:\n</p>\n<pre>\nfunction getCeil(x) {\n   return Math.ceil(x)\n}\n</pre>\n<p>If you pass 45.95 to <code>getCeil</code>, it returns 46; if you pass -45.95, it returns -45.\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/floor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/floor\">floor</a>, <a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Math/round\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/round\">round</a></p> <p></p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.ceil ",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/cos",
		"title": "Math.cos",
		"_id": "4eea85d6a4c86c4dba000147",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the cosine of a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.cos(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>cos</code> method returns a numeric value between -1 and 1, which represents the cosine of the angle.\n</p><p>Because <code>cos</code> is a static method of <code>Math</code>, you always use it as <code>Math.cos()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.cos\"></span><h4 class = \"editable\"> Example: Using <code>Math.cos</code> </h4>\n<p>The following function returns the cosine of the variable <code>x</code>:\n</p>\n<pre>\nfunction getCos(x) {\n   return Math.cos(x)\n}\n</pre>\n<p>If <code>x</code> equals 2*<code>Math.PI</code>, <code>getCos</code> returns 1; if <code>x</code> equals <code>Math.PI</code>, the <code>getCos</code> method returns -1. </p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.cos\"></span><h4 class = \"editable\"> Example: Using <code>Math.cos</code> </h4>\n<p>The following function returns the cosine of the variable <code>x</code>:\n</p>\n<pre>\nfunction getCos(x) {\n   return Math.cos(x)\n}\n</pre>\n<p>If <code>x</code> equals 2*<code>Math.PI</code>, <code>getCos</code> returns 1; if <code>x</code> equals <code>Math.PI</code>, the <code>getCos</code> method returns -1. </p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/acos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/acos\">acos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/asin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/asin\">asin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan\">atan</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan2\">atan2</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/sin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sin\">sin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/tan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/tan\">tan</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.cos ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/floor",
		"title": "Math.floor",
		"_id": "4eea85d6a4c86c4dba000148",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the largest integer less than or equal to a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.floor(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>floor</code> is a static method of <code>Math</code>, you always use it as <code>Math.floor()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.floor\"></span><h4 class = \"editable\"> Example: Using <code>Math.floor</code> </h4>\n<p>The following function returns the floor value of the variable <code>x</code>:\n</p>\n<pre>\nfunction getFloor(x) {\n   return Math.floor(x)\n}\n</pre>\n<p>If you pass 45.95 to <code>getFloor</code>, it returns 45; if you pass -45.95, it returns -46.\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.floor\"></span><h4 class = \"editable\"> Example: Using <code>Math.floor</code> </h4>\n<p>The following function returns the floor value of the variable <code>x</code>:\n</p>\n<pre>\nfunction getFloor(x) {\n   return Math.floor(x)\n}\n</pre>\n<p>If you pass 45.95 to <code>getFloor</code>, it returns 45; if you pass -45.95, it returns -46.\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/ceil\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/ceil\">ceil</a>,&nbsp;<a title = \"en/Core JavaScript 1.5 Reference/Global Objects/Math/round\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/round\">round</a></p> <p></p></div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.floor ",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/log",
		"title": "Math.log",
		"_id": "4eea85dca4c86c4dba000149",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the natural logarithm (base <code>E</code>) of a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.log(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If the value of <code>number</code> is negative, the return value is always <code>NaN</code>.\n</p><p>Because <code>log</code> is a static method of <code>Math</code>, you always use it as <code>Math.log()</code>, rather than as a method of a <code>Math</code> object you created. </p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.log\"></span><h4 class = \"editable\"> Example: Using <code>Math.log</code> </h4>\n<p>The following function returns the natural log of the variable <code>x</code>:\n</p>\n<pre>\nfunction getLog(x) {\n   return Math.log(x)\n}\n</pre>\n<p>If you pass <code>getLog</code> the value 10, it returns 2.302585092994046; if you pass it the value 0, it returns <code>-Infinity</code>; if you pass it the value -1, it returns <code>NaN</code> because -1 is out of range.\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.log\"></span><h4 class = \"editable\"> Example: Using <code>Math.log</code> </h4>\n<p>The following function returns the natural log of the variable <code>x</code>:\n</p>\n<pre>\nfunction getLog(x) {\n   return Math.log(x)\n}\n</pre>\n<p>If you pass <code>getLog</code> the value 10, it returns 2.302585092994046; if you pass it the value 0, it returns <code>-Infinity</code>; if you pass it the value -1, it returns <code>NaN</code> because -1 is out of range.\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/exp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/exp\">exp</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/pow\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/pow\">pow</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.log ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/exp",
		"title": "Math.exp",
		"_id": "4eea85dca4c86c4dba00014a",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns <code>E<sup>x</sup></code>, where <code>x</code> is the argument, and <code>E</code> is Euler's constant, the base of the natural logarithms.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.exp(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>exp</code> is a static method of <code>Math</code>, you always use it as <code>Math.exp()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.exp\"></span><h4 class = \"editable\"> Example: Using <code>Math.exp</code> </h4>\n<p>The following function returns the exponential value of the variable <code>x</code>:\n</p>\n<pre>\nfunction getExp(x) {\n   return Math.exp(x)\n}\n</pre>\n<p>If you pass <code>getExp</code> the value 1, it returns 2.718281828459045.\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.exp\"></span><h4 class = \"editable\"> Example: Using <code>Math.exp</code> </h4>\n<p>The following function returns the exponential value of the variable <code>x</code>:\n</p>\n<pre>\nfunction getExp(x) {\n   return Math.exp(x)\n}\n</pre>\n<p>If you pass <code>getExp</code> the value 1, it returns 2.718281828459045.\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/E\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/E\">E</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/log\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/log\">log</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/pow\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/pow\">pow</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.exp ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/max",
		"title": "Math.max",
		"_id": "4eea85dda4c86c4dba00014b",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the largest of zero or more numbers.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> Math.max([<em>value1</em>[,<em>value2</em>[, ...]]]) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>value1, value2, ...</code>&nbsp;</dt> <dd>Numbers.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Because <code>max</code> is a static method of <code>Math</code>, you always use it as <code>Math.max()</code>, rather than as a method of a <code>Math</code> object you created.</p>\n<p>If no arguments are given, the results is <code>-<a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\">Infinity</a></code></p>\n<p>If at least one of arguments cannot be converted to a number, the result is <a title = \"en/Core_JavaScript_1.5_Reference/Global_Properties/NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN\">NaN</a>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.max\"></span><h4 class = \"editable\">Example: Using <code>Math.max</code></h4>\n<p><code>Math.max(10, 20)</code> returns 20. <code>Math.max(-10, -20)</code> returns -10. <code>Math.max(-10, 20)</code> returns 20.</p>\n<pre>\nfunction getMaxOfArray(numArray) {\n  return Math.max.apply(null, numArray);\n}\n</pre>\n<p>This function uses <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\"><code>apply</code></a> to find the maximum element in a numeric array. <code>getMaxOfArray([1,2,3])</code> is equivalent to <code>Math.max(1, 2, 3)</code>, but you can use <code>getMaxOfArray</code> on programmatically constructed arrays of any size.</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.max\"></span><h4 class = \"editable\">Example: Using <code>Math.max</code></h4>\n<p><code>Math.max(10, 20)</code> returns 20. <code>Math.max(-10, -20)</code> returns -10. <code>Math.max(-10, 20)</code> returns 20.</p>\n<pre>\nfunction getMaxOfArray(numArray) {\n  return Math.max.apply(null, numArray);\n}\n</pre>\n<p>This function uses <a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Function/apply\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply\"><code>apply</code></a> to find the maximum element in a numeric array. <code>getMaxOfArray([1,2,3])</code> is equivalent to <code>Math.max(1, 2, 3)</code>, but you can use <code>getMaxOfArray</code> on programmatically constructed arrays of any size.</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><span id = \"See_also\"></span><h3 class = \"editable\">See also</h3>\n<p><code><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/min\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/min\">Math.min</a></code></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using Math.max",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/pow",
		"title": "Math.pow",
		"_id": "4eea85dfa4c86c4dba00014c",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns <code>base</code> to the <code>exponent</code> power, that is, <code>base<sup>exponent</sup></code>.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.pow(<em>base</em>,<em>exponent</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>base</code>&nbsp;</dt><dd> The base number.\n</dd></dl>\n<dl><dt> <code>exponents</code>&nbsp;</dt><dd> The exponent to which to raise <code>base</code>.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>Because <code>pow</code> is a static method of <code>Math</code>, you always use it as <code>Math.pow()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.pow\"></span><h4 class = \"editable\"> Example: Using <code>Math.pow</code> </h4>\n<pre>\nfunction raisePower(x,y) {\n   return Math.pow(x,y)\n}\n</pre>\n<p>If <code>x</code> is 7 and <code>y</code> is 2, raisePower returns 49 (7 to the power of 2).\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.pow\"></span><h4 class = \"editable\"> Example: Using <code>Math.pow</code> </h4>\n<pre>\nfunction raisePower(x,y) {\n   return Math.pow(x,y)\n}\n</pre>\n<p>If <code>x</code> is 7 and <code>y</code> is 2, raisePower returns 49 (7 to the power of 2).\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/exp\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/exp\">exp</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/log\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/log\">log</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.pow ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/min",
		"title": "Math.min",
		"_id": "4eea85e0a4c86c4dba00014d",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the smallest of zero or more numbers.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Math\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>Math.min([<em>value1</em>[,<em>value2</em>[, ...]]]) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>value1, value2, ...</code></dt> <dd>Numbers.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>Because <code>min</code> is a static method of <code>Math</code>, you always use it as <code>Math.min()</code>, rather than as a method of a <code>Math</code> object you created.</p>\n<p>If no arguments are given, the result is <code><a title = \"en/JavaScript/Reference/Global_Objects/Infinity\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Infinity\">Infinity</a></code>.</p>\n<p>If at least one of arguments cannot be converted to a number, the result is <code><a title = \"en/JavaScript/Reference/Global_Objects/NaN\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN\">NaN</a></code>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.min\"></span><h4 class = \"editable\">Example: Using <code>Math.min</code></h4>\n<p>This finds the min of x and y and assigns it to z:</p>\n<pre>var x = 10, y = -20;\nvar z = Math.min(x, y);\n</pre>\n<div id = \"section_7\"><span id = \"See_Also\"></span><span id = \"Example:_Clipping_a_value_with_Math.min\"></span><h5 class = \"editable\">Example: Clipping a value with <code>Math.min</code></h5>\n<p><code>Math.min</code> is often used to clip a value so that it is always less than or equal to a boundary. For instance, this</p>\n<pre>var x = f(foo);\nif (x &gt; boundary)\n    x = boundary;\n</pre>\n<p>may be written as this</p>\n<pre>var x = Math.min(f(foo), boundary);\n</pre>\n<div><code><a title = \"en/JavaScript/Reference/Global_Objects/Math/max\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/max\">Math.max</a></code> can be used in a similar way to clip a value at the other end.</div>\n</div></div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.min\"></span><h4 class = \"editable\">Example: Using <code>Math.min</code></h4>\n<p>This finds the min of x and y and assigns it to z:</p>\n<pre>var x = 10, y = -20;\nvar z = Math.min(x, y);\n</pre>\n<div id = \"section_7\"><span id = \"See_Also\"></span><span id = \"Example:_Clipping_a_value_with_Math.min\"></span><h5 class = \"editable\">Example: Clipping a value with <code>Math.min</code></h5>\n<p><code>Math.min</code> is often used to clip a value so that it is always less than or equal to a boundary. For instance, this</p>\n<pre>var x = f(foo);\nif (x &gt; boundary)\n    x = boundary;\n</pre>\n<p>may be written as this</p>\n<pre>var x = Math.min(f(foo), boundary);\n</pre>\n<div><code><a title = \"en/JavaScript/Reference/Global_Objects/Math/max\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/max\">Math.max</a></code> can be used in a similar way to clip a value at the other end.</div>\n</div></div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><span id = \"Example:_Clipping_a_value_with_Math.min\"></span><h5 class = \"editable\">Example: Clipping a value with <code>Math.min</code></h5>\n<p><code>Math.min</code> is often used to clip a value so that it is always less than or equal to a boundary. For instance, this</p>\n<pre>var x = f(foo);\nif (x &gt; boundary)\n    x = boundary;\n</pre>\n<p>may be written as this</p>\n<pre>var x = Math.min(f(foo), boundary);\n</pre>\n<div><code><a title = \"en/JavaScript/Reference/Global_Objects/Math/max\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/max\">Math.max</a></code> can be used in a similar way to clip a value at the other end.</div>\n</div>",
			"<div id = \"section_8\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><code><a title = \"en/JavaScript/Reference/Global_Objects/Math/max\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/max\">Math.max</a></code></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using Math.min",
			"",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/random",
		"title": "Math.random",
		"_id": "4eea85e1a4c86c4dba00014e",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns a floating-point, pseudo-random number in the range <code>[0, 1)</code> that is, from 0 (inclusive) up to but not including 1 (exclusive), which you can then scale to your desired range.</p>\n<p>The random number generator is seeded from the current time, as in Java.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Math\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript ?</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript ?</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code>Math.random()</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<p>None.</p>\n</div>",
			"<div id = \"section_4\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_5\"><span id = \"Example:_Using_Math.random\"></span><h4 class = \"editable\">Example: Using <code>Math.random</code></h4>\n<p>Note that as numbers in JavaScript are IEEE 754 floating point numbers with round-to-nearest-even behavior, these ranges, excluding the one for <code>Math.random()</code> itself, aren't exact, and depending on the bounds it's possible in extremely rare cases (on the order of 1 in 2<sup>62</sup>) to calculate the usually-excluded upper bound.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Returns a random number between 0 (inclusive) and 1 (exclusive)\nfunction getRandom()\n{\n  return Math.random();\n}</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns a random number between min and max\nfunction getRandomArbitary(min, max)\n{\n  return Math.random() * (max - min) + min;\n}</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns a random integer between min and max\n// Using Math.round() will give you a non-uniform distribution!\nfunction getRandomInt(min, max)\n{\n  return Math.floor(Math.random() * (max - min + 1)) + min;\n}</pre>\r\n        \n<p>&nbsp;</p>\n<p></p></div></div>",
			"<div id = \"section_5\"><span id = \"Example:_Using_Math.random\"></span><h4 class = \"editable\">Example: Using <code>Math.random</code></h4>\n<p>Note that as numbers in JavaScript are IEEE 754 floating point numbers with round-to-nearest-even behavior, these ranges, excluding the one for <code>Math.random()</code> itself, aren't exact, and depending on the bounds it's possible in extremely rare cases (on the order of 1 in 2<sup>62</sup>) to calculate the usually-excluded upper bound.</p>\n\r\n          <pre name = \"code\" class = \"js\">// Returns a random number between 0 (inclusive) and 1 (exclusive)\nfunction getRandom()\n{\n  return Math.random();\n}</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns a random number between min and max\nfunction getRandomArbitary(min, max)\n{\n  return Math.random() * (max - min) + min;\n}</pre>\r\n        \n\r\n          <pre name = \"code\" class = \"js\">// Returns a random integer between min and max\n// Using Math.round() will give you a non-uniform distribution!\nfunction getRandomInt(min, max)\n{\n  return Math.floor(Math.random() * (max - min + 1)) + min;\n}</pre>\r\n        \n<p>&nbsp;</p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Examples",
			"Example: Using Math.random"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sin",
		"title": "Math.sin",
		"_id": "4eea85e1a4c86c4dba00014f",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the sine of a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.sin(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>sin</code> method returns a numeric value between -1 and 1, which represents the sine of the argument.\n</p><p>Because <code>sin</code> is a static method of <code>Math</code>, you always use it as <code>Math.sin()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.sin\"></span><h4 class = \"editable\"> Example: Using <code>Math.sin</code> </h4>\n<p>The following function returns the sine of the variable <code>x</code>:\n</p>\n<pre>\nfunction getSine(x) {\n   return Math.sin(x)\n}\n</pre>\n<p>If you pass <code>getSine</code> the value <code>Math.PI/2</code>, it returns 1.\n</p>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.sin\"></span><h4 class = \"editable\"> Example: Using <code>Math.sin</code> </h4>\n<p>The following function returns the sine of the variable <code>x</code>:\n</p>\n<pre>\nfunction getSine(x) {\n   return Math.sin(x)\n}\n</pre>\n<p>If you pass <code>getSine</code> the value <code>Math.PI/2</code>, it returns 1.\n</p>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/acos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/acos\">acos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/asin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/asin\">asin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan\">atan</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan2\">atan2</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/cos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/cos\">cos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/tan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/tan\">tan</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.sin ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/round",
		"title": "Math.round",
		"_id": "4eea85e1a4c86c4dba000150",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\">Summary</h3>\n<p>Returns the value of a number rounded to the nearest integer.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\">Syntax</h3>\n<p><code> Math.round(<em>x</em>) </code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\">Parameters</h3>\n<dl> <dt><code>x</code>&nbsp;</dt> <dd>A number.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\">Description</h3>\n<p>If the fractional portion of <code>number</code> is .5 or greater, the argument is rounded to the next higher integer. If the fractional portion of <code>number</code> is less than .5, the argument is rounded to the next lower integer.</p>\n<p>Because <code>round</code> is a static method of <code>Math</code>, you always use it as <code>Math.round()</code>, rather than as a method of a <code>Math</code> object you created.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\">Examples</h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.round\"></span><h4 class = \"editable\">Example: Using <code>Math.round</code></h4>\n<pre>\n//Returns the value 20\nx=Math.round(20.49)\n\n//Returns the value 21\nx=Math.round(20.5)\n\n//Returns the value -20\nx=Math.round(-20.5)\n\n//Returns the value -21\nx=Math.round(-20.51)\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.round\"></span><h4 class = \"editable\">Example: Using <code>Math.round</code></h4>\n<pre>\n//Returns the value 20\nx=Math.round(20.49)\n\n//Returns the value 21\nx=Math.round(20.5)\n\n//Returns the value -20\nx=Math.round(-20.5)\n\n//Returns the value -21\nx=Math.round(-20.51)\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\">See Also</h3>\n<p><a title = \"en/Core_JavaScript_1.5_Reference/Global_Objects/Math/ceil\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/ceil\">ceil</a>, <a style = \"\" title = \"en/Core JavaScript 1.5 Reference/Global Objects/Math/floor\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/floor\">floor</a></p>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Examples",
			"Example: Using Math.round",
			"See Also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sqrt",
		"title": "Math.sqrt",
		"_id": "4eea85e3a4c86c4dba000151",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the square root of a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.sqrt(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>If the value of <code>number</code> is negative, <code>sqrt</code> returns <code>NaN</code>.\n</p><p>Because <code>sqrt</code> is a static method of <code>Math</code>, you always use it as <code>Math.sqrt()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.sqrt\"></span><h4 class = \"editable\"> Example: Using <code>Math.sqrt</code> </h4>\n<p>The following function returns the square root of the variable <code>x</code>:\n</p>\n<pre>\nfunction getRoot(x) {\n   return Math.sqrt(x)\n}\n</pre>\n<p>If you pass <code>getRoot</code> the value 9, it returns 3; if you pass it the value 2, it returns 1.414213562373095.\n</p> </div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.sqrt\"></span><h4 class = \"editable\"> Example: Using <code>Math.sqrt</code> </h4>\n<p>The following function returns the square root of the variable <code>x</code>:\n</p>\n<pre>\nfunction getRoot(x) {\n   return Math.sqrt(x)\n}\n</pre>\n<p>If you pass <code>getRoot</code> the value 9, it returns 3; if you pass it the value 2, it returns 1.414213562373095.\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.sqrt "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/tan",
		"title": "Math.tan",
		"_id": "4eea85e4a4c86c4dba000152",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h3 class = \"editable\"> Summary </h3>\n<p>Returns the tangent of a number.\n</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math\" title = \"en/JavaScript/Reference/Global_Objects/Math\"><code>Math</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.0</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 1st Edition</td> </tr> </tbody>\n</table> </div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h3 class = \"editable\"> Syntax </h3>\n<p><code>\nMath.tan(<em>x</em>)\n</code>\n</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h3 class = \"editable\"> Parameters </h3>\n<dl><dt> <code>x</code>&nbsp;</dt><dd> A number representing an angle in radians.\n</dd></dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h3 class = \"editable\"> Description </h3>\n<p>The <code>tan</code> method returns a numeric value that represents the tangent of the angle.\n</p><p>Because <code>tan</code> is a static method of <code>Math</code>, you always use it as <code>Math.tan()</code>, rather than as a method of a <code>Math</code> object you created.\n</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Examples\"></span><h3 class = \"editable\"> Examples </h3>\n<div id = \"section_6\"><span id = \"Example:_Using_Math.tan\"></span><h4 class = \"editable\"> Example: Using <code>Math.tan</code> </h4>\n<p>The following function returns the tangent of the variable <code>x</code>:\n</p>\n<pre>\nfunction getTan(x) {\n   return Math.tan(x)\n}\n</pre>\n<p>Because the <code>Math.tan()</code> function accepts radians, but it is often easier to work with degrees, the following function accepts a value in degrees, converts it to radians and returns the tangent.\n</p>\n<pre>\nfunction getTanDeg(deg) {\n   var rad = deg * Math.PI/180;\n   return Math.tan(rad)\n}\n</pre>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Example:_Using_Math.tan\"></span><h4 class = \"editable\"> Example: Using <code>Math.tan</code> </h4>\n<p>The following function returns the tangent of the variable <code>x</code>:\n</p>\n<pre>\nfunction getTan(x) {\n   return Math.tan(x)\n}\n</pre>\n<p>Because the <code>Math.tan()</code> function accepts radians, but it is often easier to work with degrees, the following function accepts a value in degrees, converts it to radians and returns the tangent.\n</p>\n<pre>\nfunction getTanDeg(deg) {\n   var rad = deg * Math.PI/180;\n   return Math.tan(rad)\n}\n</pre>\n</div>",
			"<div id = \"section_7\"><span id = \"See_Also\"></span><h3 class = \"editable\"> See Also </h3>\n<p><a title = \"en/JavaScript/Reference/Global_Objects/Math/acos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/acos\">acos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/asin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/asin\">asin</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan\">atan</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/atan2\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/atan2\">atan2</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/cos\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/cos\">cos</a>,\n<a title = \"en/JavaScript/Reference/Global_Objects/Math/sin\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/sin\">sin</a>\n</p> </div>"
		],
		"sectionNames": [
			" Summary ",
			" Syntax ",
			" Parameters ",
			" Description ",
			" Examples ",
			" Example: Using Math.tan ",
			" See Also "
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getPrototypeOf",
		"title": "Object.getPrototypeOf",
		"_id": "4eea85f3a4c86c4dba000154",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Summary\"></span><h2 class = \"editable\">Summary</h2>\n<p>Returns the prototype of the specified object.</p>\n<table class = \"standard-table\"> <thead> <tr> <th class = \"header\" colspan = \"2\">Method of <a title = \"en/JavaScript/Reference/Global_Objects/Object\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object\"><code>Object</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.8.1</td> </tr> <tr> <td>ECMAScript Edition</td> <td>ECMAScript 5th Edition</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_2\"><span id = \"Syntax\"></span><h2 class = \"editable\">Syntax</h2>\n<p><code>Object.getPrototypeOf(<em>object</em>)</code></p>\n</div>",
			"<div id = \"section_3\"><span id = \"Parameters\"></span><h2 class = \"editable\">Parameters</h2>\n<dl> <dt>object</dt> <dd>The object whose prototype is to be returned.</dd>\n</dl>\n</div>",
			"<div id = \"section_4\"><span id = \"Description\"></span><h2 class = \"editable\">Description</h2>\n<p><code><span style = \"font-family: Verdana,Tahoma,sans-serif;\">Throws a </span><a title = \"en/JavaScript/Reference/Global Objects/TypeError\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/TypeError\"><span style = \"font-family: Courier New;\">TypeError</span></a></code><code><span style = \"font-family: Verdana,Tahoma,sans-serif;\"> exception if the object parameter isn't an </span></code><span style = \"font-family: Courier New;\">Object</span>.</p>\n</div>",
			"<div id = \"section_5\"><span id = \"Cross-browser_compatibility\"></span><h2 class = \"editable\">Cross-browser compatibility</h2>\n<p>Based on <a class = \" external\" rel = \"external\" href = \"http://kangax.github.com/es5-compat-table/\" title = \"http://kangax.github.com/es5-compat-table/\" target = \"_blank\">Kangax's compat table</a>.</p>\n<p>\n\n<div class = \"htab\"><a name = \"AutoCompatibilityTable\"></a>\n<ul> <li class = \"selected\">Desktop</li> <li>Mobile</li>\n</ul>\n</div></p>\n<div id = \"compat-desktop\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>3.5</td> <td>5</td> <td>9</td> <td><span style = \"color: rgb(255, 0, 0);\" title = \"Not supported.\">--</span></td> <td>5</td> </tr> </tbody>\n</table>\n</div>\n<div id = \"compat-mobile\">\n<table class = \"compat-table\"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> <td><span title = \"Compatibility unknown; please update this.\" style = \"color: rgb(255, 153, 0);\">?</span></td> </tr> </tbody>\n</table>\n</div>\n<p>Even if Opera does not support <code>Object.getPrototypeOf()</code> yet, it does support the non-standard <code>__proto__</code> property since Opera 10.50.</p></div>",
			"<div id = \"section_6\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a title = \"En/Core JavaScript 1.5 Reference/Global Objects/Object/IsPrototypeOf\" class = \"internal\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isPrototypeOf\">isPrototypeOf</a>&nbsp;</li> <li>John&nbsp;Resig's post on <a class = \"external\" title = \"http://ejohn.org/blog/objectgetprototypeof/\" rel = \"external\" href = \"http://ejohn.org/blog/objectgetprototypeof/\" target = \"_blank\">getPrototypeOf</a></li>\n</ul>\n<p></p></div>"
		],
		"sectionNames": [
			"Summary",
			"Syntax",
			"Parameters",
			"Description",
			"Cross-browser compatibility",
			"See also"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Proxy",
		"title": "Proxy",
		"_id": "4eea85f4a4c86c4dba000155",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Introduction\"></span><h2 class = \"editable\">Introduction</h2>\n<p>Proxies are objects for which the programmer has to define the semantics in JavaScript. The default object semantics are implemented in the JavaScript engine, often written in lower-level languages like C++. Proxies let the programmer define most of the behavior of an object in JavaScript. They are said to provide a <strong>meta-programming API</strong>.</p>\n</div>",
			"<div id = \"section_2\"><span id = \"Terminology\"></span><h2 class = \"editable\">Terminology</h2>\n<dl> <dt>catch-all mechanism (or &quot;intercession API&quot;)</dt> <dd>The technical term for this feature.</dd> <dt>handler</dt> <dd>The object that intercepts properties.</dd> <dt>proxy</dt> <dd>The object whose properties are being intercepted.</dd> <dt>proxy factory</dt> <dd>The object or method that creates intercessive proxies.</dd> <dt>traps</dt> <dd>The methods that provide property access. This is analogous to the concept of traps in operating systems.</dd>\n</dl>\n<p>Proxies can be either be <strong>trapping</strong> or <strong>fixed</strong>.</p>\n</div>",
			"<div id = \"section_3\"><span id = \"Proxy_API\"></span><h2 class = \"editable\">Proxy API</h2>\n<p>Catch-alls can be defined only on distinct proxy objects, controlled by a handler object. There are two kinds of proxies:</p>\n<p>object proxies</p>\n\r\n          <pre name = \"code\" class = \"js\">var proxy = Proxy.create(handler, proto);</pre>\r\n        \n<p>and function proxies :</p>\n\r\n          <pre name = \"code\" class = \"js\">var proxy = Proxy.createFunction(handler, callTrap, constructTrap);</pre>\r\n        \n<p>Where:</p>\n<ul> <li><code>proto</code> is an optional object representing the proxy&rsquo;s prototype (defaults to <code>null</code> if none is provided).</li> <li><code>callTrap</code> is a variable-argument&nbsp;<code>function(args) { return any; }</code> that reifies &ldquo;<code>proxy(args)</code>&rdquo;. Note: The this-binding of the <code>callTrap</code> function is the this-binding of the call-site.</li> <li><code>constructTrap</code> is an optional variable-argument&nbsp;<code>function(args) { return any-object; }</code> that reifies &ldquo;<code>new proxy(args)</code>&rdquo;. The this-binding of the <code>constructTrap</code> is either <code>undefined</code> (in strict mode) or the global object (in non-strict mode). If no <code>constructTrap</code> is provided, performing&nbsp;<code>new proxy(...args)</code> calls the proxy&rsquo;s <code>callTrap</code> with <code>this</code> bound to a new object delegating to the proxy's prototype.</li> <li><code>handler</code> is an object that implements the handler API.</li>\n</ul>\n</div>",
			"<div id = \"section_4\"><span id = \"Handler_API\"></span><h2 class = \"editable\">Handler API</h2>\n<p>There are two kinds of traps: <strong>fundamental</strong> and <strong>derived</strong> traps. If one of the fundamental traps isn't implemented and the proxy is used in a way that expects the fundamental trap to be defined, then an error is thrown. If a derived trap is implemented, then that trap's code is called whenever the corresponding behavior happens on the proxy. If the derived trap is undefined, a default implementation using the fundamental traps is used. In other words: fundamental traps are required, derived traps are optional.</p>\n<div id = \"section_5\"><span id = \"Fundamental_traps\"></span><h4 class = \"editable\">Fundamental traps</h4>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Emulated JavaScript code</td> <td class = \"header\">Handler method</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>Object.getOwnPropertyDescriptor(proxy, name)</code></td> <td><code><strong>getOwnPropertyDescriptor:</strong> function(name) -&gt; PropertyDescriptor | undefined</code></td> <td>Should return a valid property descriptor object, or <code>undefined</code> to indicate that no property with <code>name</code> exists in the emulated object.</td> </tr> <tr> <td><code>Object.getPropertyDescriptor(proxy, name)</code></td> <td><code><strong>getPropertyDescriptor:</strong> function(name) -&gt; PropertyDescriptor | undefined</code></td> <td>This function doesn't exist in ECMAScript 5. Like <code>getOwnPropertyDescriptor</code>, but should also search the prototype chain.</td> </tr> <tr> <td><code>Object.getOwnPropertyNames(proxy)</code></td> <td><code><strong>getOwnPropertyNames:</strong> function() -&gt; Strings Array</code></td> <td>Return an array of all own (non-inherited) property names of the emulated object.</td> </tr> <tr> <td><code>Object.getPropertyNames(proxy)</code></td> <td><code><strong>getPropertyNames:</strong> function() -&gt; Strings Array</code></td> <td>This function doesn't exist in ECMAScript 5. Like <code>getOwnPropertyNames</code>, but should also return non-overridden inherited properties.</td> </tr> <tr> <td><code>Object.defineProperty(proxy,name,pd)</code></td> <td><code><strong>defineProperty:</strong> function(name, propertyDescriptor) -&gt; any</code></td> <td>Define a new property whose attributes are determined by the given <code>propertyDescriptor</code>. The return value of this method is ignored.</td> </tr> <tr> <td><code>delete proxy.name</code></td> <td><code><strong>delete:</strong> function(name) -&gt; boolean</code></td> <td>Delete the named property from the proxy. The boolean return value of this method should indicate whether or not the <code>name</code> property was successfully deleted.</td> </tr> <tr> <td> <p><code>Object.freeze(proxy)</code></p> <p><code>Object.seal(proxy)</code></p> <p><code>Object.preventExtensions(proxy)</code></p> </td> <td><code><strong>fix:</strong> function() -&gt; PropertyDescriptor map (indexed on property names) | undefined</code></td> <td> <p>Should return an object that maps property names to property descriptors. After a call to <code>fix()</code>, the proxy becomes a regular (non-proxy) object with the properties listed in the return value. The handler is no longer used. Moreover, the respective method (<code>freeze()</code>, <code>seal()</code>, or <code>preventExtension()</code>) is immediately called on the fixed object. Note: the fixed object has the same object identity as the proxy object.</p> <p>If <code>fix()</code> returns <code>undefined</code>, the call throws a <code>TypeError</code> exception.</p> </td> </tr> </tbody>\n</table>\n</div><div id = \"section_6\"><span id = \"Derived_traps\"></span><h4 class = \"editable\">Derived traps</h4>\n<p>Default implementation refers to the code that is called for that trap when the trap isn't explicitly defined. In these functions, <code>this</code> refers to the handler object.</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Emulated JavaScript code</td> <td class = \"header\">Handler method</td> <td class = \"header\">Default implementation</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>name in proxy</code></td> <td><code><strong>has:</strong> function(name) -&gt; boolean</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function(name) { \n  return !!this.getPropertyDescriptor(name);\n}</pre>\r\n         </td> <td>&nbsp;</td> </tr> <tr> <td><code>Object.prototype.hasOwnProperty.call(proxy, name)</code></td> <td><code><strong>hasOwn: </strong>function(name) -&gt; boolean</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function(name) { \n  return !!this.getOwnPropertyDescriptor(name); \n}</pre>\r\n         </td> <td>&nbsp;</td> </tr> <tr> <td> <p><code>proxy.name</code> (in the context of &quot;getting the value&quot;)</p> <p><code>receiver.name</code> (if <code>receiver</code> inherits from a proxy and does not override <code>name</code>)</p> </td> <td><code><strong>get:</strong> function(receiver, name) -&gt; any</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function(receiver, name) {\n  var desc = this.getPropertyDescriptor(name);\n  if (desc === undefined) {\n    return undefined;\n  }\n  if ('value' in desc) {\n    return desc.value;\n  } else {\n    if (desc.get === undefined) {\n      return undefined;\n    }\n    return desc.get.call(receiver);\n  }\n}</pre>\r\n         </td> <td>&nbsp;<code>receiver</code> is either the proxy or an object that inherits from the proxy.</td> </tr> <tr> <td> <p><code>proxy.name = val</code> (in the context of &quot;setting the value&quot;)</p> <p><code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">receiver.name = val</code>&nbsp;(if <code>receiver</code> inherits from a proxy and does not override&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">name</code>)</p> </td> <td><code><strong>set:</strong> function(receiver, name, val) -&gt; boolean</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function(receiver, name, val) {\n  var desc = this.getOwnPropertyDescriptor(name);\n  if (desc) {\n    if ('writable' in desc) {\n      if (desc.writable) {\n        desc.value = val;\n        this.defineProperty(name, desc);\n        return true;\n      } else {\n        return false;\n      }\n    } else { // accessor\n      if (desc.set) {\n        desc.set.call(receiver, val);\n        return true;\n      } else {\n        return false;\n      }\n    }\n  }\n  desc = this.getPropertyDescriptor(name);\n  if (desc) {\n    if ('writable' in desc) {\n      if (desc.writable) {\n        // fall through\n      } else {\n        return false;\n      }\n    } else { // accessor\n      if (desc.set) {\n        desc.set.call(receiver, val);\n        return true;\n      } else {\n        return false;\n      }\n    }\n  }\n  this.defineProperty(name, {\n    value: val, \n    writable: true, \n    enumerable: true, \n    configurable: true});\n  return true;\n}</pre>\r\n         </td> <td>&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">receiver</code>&nbsp;is either the proxy or an object that inherits from the proxy.</td> </tr> <tr> <td><code>for(prop in proxy){...}</code></td> <td><code><strong>enumerate:</strong> function() -&gt; String Array</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function() {\n  return this.getPropertyNames().filter(\n    function (name) {\n      return this.getPropertyDescriptor(name).enumerable\n    }\n  );\n}</pre>\r\n         </td> <td>From the proxy user point of view, properties appear in the for..in loop in the same order as they are in the returned array.</td> </tr> <tr> <td><code>Object.keys(proxy)</code></td> <td><code><strong>keys:</strong> function() -&gt; String Array</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function() {\n  return this.getOwnPropertyNames().filter(\n    function (name) {\n      return this.getOwnPropertyDescriptor(name).enumerable\n    }\n  );\n}</pre>\r\n         </td> <td>&nbsp;</td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_5\"><span id = \"Fundamental_traps\"></span><h4 class = \"editable\">Fundamental traps</h4>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Emulated JavaScript code</td> <td class = \"header\">Handler method</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>Object.getOwnPropertyDescriptor(proxy, name)</code></td> <td><code><strong>getOwnPropertyDescriptor:</strong> function(name) -&gt; PropertyDescriptor | undefined</code></td> <td>Should return a valid property descriptor object, or <code>undefined</code> to indicate that no property with <code>name</code> exists in the emulated object.</td> </tr> <tr> <td><code>Object.getPropertyDescriptor(proxy, name)</code></td> <td><code><strong>getPropertyDescriptor:</strong> function(name) -&gt; PropertyDescriptor | undefined</code></td> <td>This function doesn't exist in ECMAScript 5. Like <code>getOwnPropertyDescriptor</code>, but should also search the prototype chain.</td> </tr> <tr> <td><code>Object.getOwnPropertyNames(proxy)</code></td> <td><code><strong>getOwnPropertyNames:</strong> function() -&gt; Strings Array</code></td> <td>Return an array of all own (non-inherited) property names of the emulated object.</td> </tr> <tr> <td><code>Object.getPropertyNames(proxy)</code></td> <td><code><strong>getPropertyNames:</strong> function() -&gt; Strings Array</code></td> <td>This function doesn't exist in ECMAScript 5. Like <code>getOwnPropertyNames</code>, but should also return non-overridden inherited properties.</td> </tr> <tr> <td><code>Object.defineProperty(proxy,name,pd)</code></td> <td><code><strong>defineProperty:</strong> function(name, propertyDescriptor) -&gt; any</code></td> <td>Define a new property whose attributes are determined by the given <code>propertyDescriptor</code>. The return value of this method is ignored.</td> </tr> <tr> <td><code>delete proxy.name</code></td> <td><code><strong>delete:</strong> function(name) -&gt; boolean</code></td> <td>Delete the named property from the proxy. The boolean return value of this method should indicate whether or not the <code>name</code> property was successfully deleted.</td> </tr> <tr> <td> <p><code>Object.freeze(proxy)</code></p> <p><code>Object.seal(proxy)</code></p> <p><code>Object.preventExtensions(proxy)</code></p> </td> <td><code><strong>fix:</strong> function() -&gt; PropertyDescriptor map (indexed on property names) | undefined</code></td> <td> <p>Should return an object that maps property names to property descriptors. After a call to <code>fix()</code>, the proxy becomes a regular (non-proxy) object with the properties listed in the return value. The handler is no longer used. Moreover, the respective method (<code>freeze()</code>, <code>seal()</code>, or <code>preventExtension()</code>) is immediately called on the fixed object. Note: the fixed object has the same object identity as the proxy object.</p> <p>If <code>fix()</code> returns <code>undefined</code>, the call throws a <code>TypeError</code> exception.</p> </td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_6\"><span id = \"Derived_traps\"></span><h4 class = \"editable\">Derived traps</h4>\n<p>Default implementation refers to the code that is called for that trap when the trap isn't explicitly defined. In these functions, <code>this</code> refers to the handler object.</p>\n<table class = \"standard-table\"> <tbody> <tr> <td class = \"header\">Emulated JavaScript code</td> <td class = \"header\">Handler method</td> <td class = \"header\">Default implementation</td> <td class = \"header\">Description</td> </tr> <tr> <td><code>name in proxy</code></td> <td><code><strong>has:</strong> function(name) -&gt; boolean</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function(name) { \n  return !!this.getPropertyDescriptor(name);\n}</pre>\r\n         </td> <td>&nbsp;</td> </tr> <tr> <td><code>Object.prototype.hasOwnProperty.call(proxy, name)</code></td> <td><code><strong>hasOwn: </strong>function(name) -&gt; boolean</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function(name) { \n  return !!this.getOwnPropertyDescriptor(name); \n}</pre>\r\n         </td> <td>&nbsp;</td> </tr> <tr> <td> <p><code>proxy.name</code> (in the context of &quot;getting the value&quot;)</p> <p><code>receiver.name</code> (if <code>receiver</code> inherits from a proxy and does not override <code>name</code>)</p> </td> <td><code><strong>get:</strong> function(receiver, name) -&gt; any</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function(receiver, name) {\n  var desc = this.getPropertyDescriptor(name);\n  if (desc === undefined) {\n    return undefined;\n  }\n  if ('value' in desc) {\n    return desc.value;\n  } else {\n    if (desc.get === undefined) {\n      return undefined;\n    }\n    return desc.get.call(receiver);\n  }\n}</pre>\r\n         </td> <td>&nbsp;<code>receiver</code> is either the proxy or an object that inherits from the proxy.</td> </tr> <tr> <td> <p><code>proxy.name = val</code> (in the context of &quot;setting the value&quot;)</p> <p><code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">receiver.name = val</code>&nbsp;(if <code>receiver</code> inherits from a proxy and does not override&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">name</code>)</p> </td> <td><code><strong>set:</strong> function(receiver, name, val) -&gt; boolean</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function(receiver, name, val) {\n  var desc = this.getOwnPropertyDescriptor(name);\n  if (desc) {\n    if ('writable' in desc) {\n      if (desc.writable) {\n        desc.value = val;\n        this.defineProperty(name, desc);\n        return true;\n      } else {\n        return false;\n      }\n    } else { // accessor\n      if (desc.set) {\n        desc.set.call(receiver, val);\n        return true;\n      } else {\n        return false;\n      }\n    }\n  }\n  desc = this.getPropertyDescriptor(name);\n  if (desc) {\n    if ('writable' in desc) {\n      if (desc.writable) {\n        // fall through\n      } else {\n        return false;\n      }\n    } else { // accessor\n      if (desc.set) {\n        desc.set.call(receiver, val);\n        return true;\n      } else {\n        return false;\n      }\n    }\n  }\n  this.defineProperty(name, {\n    value: val, \n    writable: true, \n    enumerable: true, \n    configurable: true});\n  return true;\n}</pre>\r\n         </td> <td>&nbsp;<code style = \"font: normal normal normal 100%/normal 'Courier New', 'Andale Mono', monospace; color: inherit; font-weight: inherit; \">receiver</code>&nbsp;is either the proxy or an object that inherits from the proxy.</td> </tr> <tr> <td><code>for(prop in proxy){...}</code></td> <td><code><strong>enumerate:</strong> function() -&gt; String Array</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function() {\n  return this.getPropertyNames().filter(\n    function (name) {\n      return this.getPropertyDescriptor(name).enumerable\n    }\n  );\n}</pre>\r\n         </td> <td>From the proxy user point of view, properties appear in the for..in loop in the same order as they are in the returned array.</td> </tr> <tr> <td><code>Object.keys(proxy)</code></td> <td><code><strong>keys:</strong> function() -&gt; String Array</code></td> <td> \r\n          <pre name = \"code\" class = \"js\">function() {\n  return this.getOwnPropertyNames().filter(\n    function (name) {\n      return this.getOwnPropertyDescriptor(name).enumerable\n    }\n  );\n}</pre>\r\n         </td> <td>&nbsp;</td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_7\"><span id = \"Invariants\"></span><h2 class = \"editable\">Invariants</h2>\n<p>Even though proxies provide a lot of power to users, some operations that are not trapped in order to keep the language consistency:</p>\n<ul> <li>The triple equal (<code>===</code>) operator isn't trapped. <code>p1 === p2</code> if and only if <code>p1</code> and <code>p2</code> refer to the same proxy. Fixing a proxy does not alter its object identity (the object &ldquo;generated&rdquo; by the handler during fixing does not have its own object identity, it retains the object identity of the proxy, upholding the illusion that the proxy &ldquo;becomes&rdquo; the object).</li> <li><code>Object.getPrototypeOf(proxy)</code> returns the prototype <code>proxy</code> has been initialized with for an object proxy and <code>Function.prototype</code> for a function proxy.</li> <li>typeof <ul> <li><code>typeof anObjectProxy === &ldquo;object&rdquo;</code></li> <li><code>typeof aFunctionProxy === &ldquo;function&rdquo;</code></li> </ul> </li> <li>instanceof <ul> <li><code>anObjectProxy instanceof C</code> if and only if the prototype <code>anObjectProxy</code> has been initialized with equals or inherits from <code>C.prototype</code></li> <li><code>aFunctionProxy instanceof Function === true</code></li> </ul> </li>\n</ul>\n</div>",
			"<div id = \"section_8\"><span id = \"Common_mistakes_and_misunderstanding\"></span><h2 class = \"editable\">Common mistakes and misunderstanding</h2>\n<p>When starting using proxies, there are often a few beginners mistakes and misunderstandings:</p>\n<ul> <li><strong>Not implementing all traps.</strong> Proxies are, by default, &quot;semanticless&quot; objects. If a trap isn't implemented, then if it's a derived trap, the default implementation is used. However if a fundamental trap is unimplemented, then a call to this trap will throw a TypeError. To make sure no error is thrown when your object is used, you have to implement <u><strong>at least all fundamental traps</strong></u>.</li> <li><strong>Unwanted recursion.</strong> Be careful of how you use the <code>receiver</code> argument in 'get' and 'set' traps. \r\n          <pre name = \"code\" class = \"js\">var p = Proxy.create({get: function(receiver, name) {\n  print(receiver); // looks for receiver's toString method. receiver turns out to be the proxy, so calling print results in calling the get trap.\n  return &quot;something&quot;;\n} });\n\nvar q = p.azerty; // infinite loop</pre>\r\n         </li> <li><strong>The <code>receiver</code> argument in 'get' and 'set' traps may not be the proxy itself</strong>: \r\n          <pre name = \"code\" class = \"js\">var proxy;\n\nvar handler = {\n    has: function (name) {\n        return name == 'foo';\n    },\n    get: function (rcvr, name) {\n        if (name != 'foo')\n            return undefined;\n        print(proxy !== rcvr);\n        return &quot;bye&quot;;\n    },\n};\n\nproxy = Proxy.create(handler);\n\nvar c = Object.create(proxy);\n\nprint(c.foo); // prints: 'true' (from &quot;proxy !== rcvr&quot;) and 'bye' (from &quot;c.foo&quot;).\n// In this example, the get trap rcvr argument is the c object while proxy is its prototype</pre>\r\n         </li>\n</ul>\n</div>",
			"<div id = \"section_9\"><span id = \"Examples\"></span><h2 class = \"editable\">Examples</h2>\n<div id = \"section_10\"><span id = \"Very_simple_example\"></span><h3 class = \"editable\">Very simple example</h3>\n<p>A trap is called almost each time something happens to your proxy (that is used like an object). Here is an example:</p>\n\r\n          <pre name = \"code\" class = \"js\">var incompleteHandler = {get:function(myProxy, name){\n                               alert('Property ' + name + ' accessed.'); \n                               return 1;\n                             }\n                        };\nvar p = Proxy.create(incompleteHandler);\nvar q = p.blabla; // alerts 'Property blabla accessed' and 1 is assigned to q\np.azerty = &quot;Trying to set a property&quot;; // throws an error since neither the set trap or the fundamental trap used in the set trap are implemented</pre>\r\n        \n</div><div id = \"section_11\"><span id = \"No-op_forwarding_proxy\"></span><h3 class = \"editable\">No-op forwarding proxy</h3>\n<p>In this example, we are using a native JavaScript object to which our proxy will forward all operations that are applied to it.</p>\n\r\n          <pre name = \"code\" class = \"js\">function handlerMaker(obj) {\n  return {\n    // Fundamental traps\n    getOwnPropertyDescriptor: function(name) {\n      var desc = Object.getOwnPropertyDescriptor(obj, name);\n      // a trapping proxy's properties must always be configurable\n      if (desc !== undefined) { desc.configurable = true; }\n      return desc;\n    },\n    getPropertyDescriptor:  function(name) {\n      var desc = Object.getPropertyDescriptor(obj, name); // not in ES5\n      // a trapping proxy's properties must always be configurable\n      if (desc !== undefined) { desc.configurable = true; }\n      return desc;\n    },\n    getOwnPropertyNames: function() {\n      return Object.getOwnPropertyNames(obj);\n    },\n    getPropertyNames: function() {\n      return Object.getPropertyNames(obj);                // not in ES5\n    },\n    defineProperty: function(name, desc) {\n      Object.defineProperty(obj, name, desc);\n    },\n    delete:       function(name) { return delete obj[name]; },   \n    fix:          function() {\n      if (Object.isFrozen(obj)) {\n        return Object.getOwnPropertyNames(obj).map(function(name) {\n          return Object.getOwnPropertyDescriptor(obj, name);\n        });\n      }\n      // As long as obj is not frozen, the proxy won't allow itself to be fixed\n      return undefined; // will cause a TypeError to be thrown\n    },\n   \n    // derived traps\n    has:          function(name) { return name in obj; },\n    hasOwn:       function(name) { return Object.prototype.hasOwnProperty.call(obj, name); },\n    get:          function(receiver, name) { return obj[name]; },\n    set:          function(receiver, name, val) { obj[name] = val; return true; }, // bad behavior when set fails in non-strict mode\n    enumerate:    function() {\n      var result = [];\n      for (name in obj) { result.push(name); };\n      return result;\n    },\n    keys: function() { return Object.keys(obj) }\n  };\n}\n\n// ...\n\nvar o = Object.create({});\nvar proxy = Proxy.create(handlerMaker(o));\n\nproxy.blabla = 12; // Thanks to the forwarding, o now has a 'blabla' property which value is 12\no.blabla++; // just incrementing o.blabla\n\nalert(proxy.blabla); // alerts 13: the getting operation is forwarded to o which returns 13.</pre>\r\n        \n</div></div>",
			"<div id = \"section_10\"><span id = \"Very_simple_example\"></span><h3 class = \"editable\">Very simple example</h3>\n<p>A trap is called almost each time something happens to your proxy (that is used like an object). Here is an example:</p>\n\r\n          <pre name = \"code\" class = \"js\">var incompleteHandler = {get:function(myProxy, name){\n                               alert('Property ' + name + ' accessed.'); \n                               return 1;\n                             }\n                        };\nvar p = Proxy.create(incompleteHandler);\nvar q = p.blabla; // alerts 'Property blabla accessed' and 1 is assigned to q\np.azerty = &quot;Trying to set a property&quot;; // throws an error since neither the set trap or the fundamental trap used in the set trap are implemented</pre>\r\n        \n</div>",
			"<div id = \"section_11\"><span id = \"No-op_forwarding_proxy\"></span><h3 class = \"editable\">No-op forwarding proxy</h3>\n<p>In this example, we are using a native JavaScript object to which our proxy will forward all operations that are applied to it.</p>\n\r\n          <pre name = \"code\" class = \"js\">function handlerMaker(obj) {\n  return {\n    // Fundamental traps\n    getOwnPropertyDescriptor: function(name) {\n      var desc = Object.getOwnPropertyDescriptor(obj, name);\n      // a trapping proxy's properties must always be configurable\n      if (desc !== undefined) { desc.configurable = true; }\n      return desc;\n    },\n    getPropertyDescriptor:  function(name) {\n      var desc = Object.getPropertyDescriptor(obj, name); // not in ES5\n      // a trapping proxy's properties must always be configurable\n      if (desc !== undefined) { desc.configurable = true; }\n      return desc;\n    },\n    getOwnPropertyNames: function() {\n      return Object.getOwnPropertyNames(obj);\n    },\n    getPropertyNames: function() {\n      return Object.getPropertyNames(obj);                // not in ES5\n    },\n    defineProperty: function(name, desc) {\n      Object.defineProperty(obj, name, desc);\n    },\n    delete:       function(name) { return delete obj[name]; },   \n    fix:          function() {\n      if (Object.isFrozen(obj)) {\n        return Object.getOwnPropertyNames(obj).map(function(name) {\n          return Object.getOwnPropertyDescriptor(obj, name);\n        });\n      }\n      // As long as obj is not frozen, the proxy won't allow itself to be fixed\n      return undefined; // will cause a TypeError to be thrown\n    },\n   \n    // derived traps\n    has:          function(name) { return name in obj; },\n    hasOwn:       function(name) { return Object.prototype.hasOwnProperty.call(obj, name); },\n    get:          function(receiver, name) { return obj[name]; },\n    set:          function(receiver, name, val) { obj[name] = val; return true; }, // bad behavior when set fails in non-strict mode\n    enumerate:    function() {\n      var result = [];\n      for (name in obj) { result.push(name); };\n      return result;\n    },\n    keys: function() { return Object.keys(obj) }\n  };\n}\n\n// ...\n\nvar o = Object.create({});\nvar proxy = Proxy.create(handlerMaker(o));\n\nproxy.blabla = 12; // Thanks to the forwarding, o now has a 'blabla' property which value is 12\no.blabla++; // just incrementing o.blabla\n\nalert(proxy.blabla); // alerts 13: the getting operation is forwarded to o which returns 13.</pre>\r\n        \n</div>",
			"<div id = \"section_12\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a class = \"external\" rel = \"external\" href = \"http://jsconf.eu/2010/speaker/be_proxy_objects.html\" title = \"http://jsconf.eu/2010/speaker/be_proxy_objects.html\" target = \"_blank\">&quot;Proxies are awesome&quot; Brendan Eich presentation at JSConf</a> (<a class = \"external\" rel = \"external\" href = \"http://www.slideshare.net/BrendanEich/metaprog-5303821\" title = \"http://www.slideshare.net/BrendanEich/metaprog-5303821\" target = \"_blank\">slides</a>)</li> <li><a class = \"external\" rel = \"external\" href = \"http://wiki.ecmascript.org/doku.php?id=harmony:proxies\" title = \"http://wiki.ecmascript.org/doku.php?id=harmony:proxies\" target = \"_blank\">ECMAScript Harmony Proxy proposal page</a> and <a class = \"external\" rel = \"external\" href = \"http://wiki.ecmascript.org/doku.php?id=harmony:proxies_semantics\" title = \"http://wiki.ecmascript.org/doku.php?id=harmony:proxies_semantics\" target = \"_blank\">ECMAScript Harmony proxy semantics page</a></li> <li><a class = \"external\" rel = \"external\" href = \"http://soft.vub.ac.be/~tvcutsem/proxies/\" title = \"http://soft.vub.ac.be/~tvcutsem/proxies/\" target = \"_blank\">Tutorial on proxies</a></li>\n</ul>\n</div>",
			"<div id = \"section_13\"><span id = \"Licensing_note\"></span><h2 class = \"editable\">Licensing note</h2>\n<p>Some content (text, examples) in this page has been copied or adapted from the <a class = \"external\" rel = \"external\" href = \"http://wiki.ecmascript.org/doku.php\" title = \"http://wiki.ecmascript.org/doku.php\" target = \"_blank\">ECMAScript wiki</a> which content is licensed <a class = \"external\" rel = \"external\" href = \"http://creativecommons.org/licenses/by-nc-sa/2.0/\" title = \"http://creativecommons.org/licenses/by-nc-sa/2.0/\" target = \"_blank\">CC 2.0 BY-NC-SA</a></p></div>"
		],
		"sectionNames": [
			"Introduction",
			"Terminology",
			"Proxy API",
			"Handler API",
			"Fundamental traps",
			"Derived traps",
			"Invariants",
			"Common mistakes and misunderstanding",
			"Examples",
			"Very simple example",
			"No-op forwarding proxy",
			"See also",
			"Licensing note"
		]
	},
	{
		"url": "https://developer.mozilla.org/en/JavaScript_typed_arrays/DataView",
		"title": "DataView",
		"_id": "4eea85f4a4c86c4dba000157",
		"sectionHTMLs": [
			"<div id = \"section_1\"><span id = \"Constructors\"></span><h2 class = \"editable\">Constructors</h2>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>DataView DataView(<a title = \"en/JavaScript_typed_arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a> buffer, optional unsigned long byteOffset, optional unsigned long byteLength);</code></td> </tr> </tbody>\n</table></div>",
			"<div id = \"section_2\"><span id = \"Method_overview\"></span><h2 class = \"editable\">Method overview</h2>\n<div id = \"section_3\"><span id = \"Read\"></span><h3 class = \"editable\">Read</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>byte <a href = \"#getInt8\">getInt8</a>(unsigned long byteOffset);</code></td> </tr> <tr> <td><code>unsigned byte <a href = \"#getUint8\">getUint8</a>(unsigned long byteOffset);</code></td> </tr> <tr> <td><code>short <a href = \"#getInt8\">getInt16</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>unsigned short <a href = \"#getUint16\">getUint16</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>long <a href = \"#getInt32\">getInt32</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>unsigned long <a href = \"#getUint32\">getUint32</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>float <a href = \"#getFloat32\">getFloat32</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>double <a href = \"#getFloat64\">getFloat64</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> </tbody>\n</table>\n</div><div id = \"section_4\"><span id = \"Write\"></span><h3 class = \"editable\">Write</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a href = \"#setInt8\">setInt8</a>(unsigned long byteOffset, byte value);</code></td> </tr> <tr> <td><code>void <a href = \"#setUint8\">setUint8</a>(unsigned long byteOffset, unsigned byte value);</code></td> </tr> <tr> <td><code>void <a href = \"#setInt16\">setInt16</a>(unsigned long byteOffset, short value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setUint16\">setUint16</a>(unsigned long byteOffset, unsigned short value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setInt32\">setInt32</a>(unsigned long byteOffset, long value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setUint32\">setUint32</a>(unsigned long byteOffset, unsigned long value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setFloat32\">setFloat32</a>(unsigned long byteOffset, float value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setFloat64\">setFloat64</a>(unsigned long byteOffset, double value, optional boolean littleEndian);</code></td> </tr> </tbody>\n</table>\n</div></div>",
			"<div id = \"section_3\"><span id = \"Read\"></span><h3 class = \"editable\">Read</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>byte <a href = \"#getInt8\">getInt8</a>(unsigned long byteOffset);</code></td> </tr> <tr> <td><code>unsigned byte <a href = \"#getUint8\">getUint8</a>(unsigned long byteOffset);</code></td> </tr> <tr> <td><code>short <a href = \"#getInt8\">getInt16</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>unsigned short <a href = \"#getUint16\">getUint16</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>long <a href = \"#getInt32\">getInt32</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>unsigned long <a href = \"#getUint32\">getUint32</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>float <a href = \"#getFloat32\">getFloat32</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>double <a href = \"#getFloat64\">getFloat64</a>(unsigned long byteOffset, optional boolean littleEndian);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_4\"><span id = \"Write\"></span><h3 class = \"editable\">Write</h3>\n<table class = \"standard-table\"> <tbody> <tr> <td><code>void <a href = \"#setInt8\">setInt8</a>(unsigned long byteOffset, byte value);</code></td> </tr> <tr> <td><code>void <a href = \"#setUint8\">setUint8</a>(unsigned long byteOffset, unsigned byte value);</code></td> </tr> <tr> <td><code>void <a href = \"#setInt16\">setInt16</a>(unsigned long byteOffset, short value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setUint16\">setUint16</a>(unsigned long byteOffset, unsigned short value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setInt32\">setInt32</a>(unsigned long byteOffset, long value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setUint32\">setUint32</a>(unsigned long byteOffset, unsigned long value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setFloat32\">setFloat32</a>(unsigned long byteOffset, float value, optional boolean littleEndian);</code></td> </tr> <tr> <td><code>void <a href = \"#setFloat64\">setFloat64</a>(unsigned long byteOffset, double value, optional boolean littleEndian);</code></td> </tr> </tbody>\n</table>\n</div>",
			"<div id = \"section_5\"><span id = \"Constructor\"></span><h2 class = \"editable\">Constructor</h2>\n<p>Returns a new <code>DataView</code> object using the passed <a title = \"en/JavaScript_typed_arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\">ArrayBuffer</a> for its storage.</p>\n<pre>\nDataView DataView(\n&nbsp; ArrayBuffer buffer,\n&nbsp; optional unsigned long byteOffset,\n&nbsp; optional unsigned long byteLength\n);\n</pre>\n<div id = \"section_6\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript_typed_arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>DataView</code> object.</dd> <dt><code>byteOffset</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the view of the buffer will start with the first byte.</dd> <dt><code>byteLength</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The number of elements in the byte array. If unspecified, length of the view will match the buffer's length.</dd>\n</dl>\n</div><div id = \"section_7\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>DataView</code> object representing the specified data buffer.</p>\n</div><div id = \"section_8\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The <code>byteOffset</code> and <code>byteLength</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div></div>",
			"<div id = \"section_6\"><span id = \"Parameters\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>buffer</code></dt> <dd>An existing <a title = \"en/JavaScript_typed_arrays/ArrayBuffer\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer\"><code>ArrayBuffer</code></a> to use as the storage for the new <code>DataView</code> object.</dd> <dt><code>byteOffset</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the view of the buffer will start with the first byte.</dd> <dt><code>byteLength</code> \n<span style = \"border: 1px solid #9ED2A4; background-color: #C0FFC7; font-size: x-small; white-space: nowrap; padding: 2px;\" title = \"\">Optional</span>\n</dt> <dd>The number of elements in the byte array. If unspecified, length of the view will match the buffer's length.</dd>\n</dl>\n</div>",
			"<div id = \"section_7\"><span id = \"Return_value\"></span><h6 class = \"editable\">Return value</h6>\n<p>A new <code>DataView</code> object representing the specified data buffer.</p>\n</div>",
			"<div id = \"section_8\"><span id = \"Exceptions_thrown\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The <code>byteOffset</code> and <code>byteLength</code> result in the specified view extending past the end of the buffer.</dd>\n</dl>\n</div>",
			"<div id = \"section_9\"><span id = \"Methods\"></span><h2 class = \"editable\">Methods</h2>\n<div id = \"section_10\"><span id = \"getInt8()\"></span><h3 id = \"getInt8\" class = \"editable\">getInt8()</h3>\n<p>Gets a signed 8-bit integer at the specified byte offset from the start of the view.</p>\n<pre>\nbyte getInt8(\n  unsigned long byteOffset\n);\n</pre>\n<div id = \"section_11\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>offset</code></dt> <dd>The offset, in byte, from the start of the view where to read the data.</dd>\n</dl>\n</div><div id = \"section_12\"><span id = \"Exceptions_thrown_2\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The <code>byteOffset</code> is set such as it would read beyond the end of the view</dd>\n</dl>\n</div></div><div id = \"section_13\"><span id = \"getUint8()\"></span><h3 id = \"getUint8\" class = \"editable\">getUint8()</h3>\n<p>Gets an unsigned 8-bit integer at the specified byte offset from the start of the view.</p>\n<pre>\nbyte getUint8(\n  unsigned long byteOffset\n);\n</pre>\n<div id = \"section_14\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>offset</code></dt> <dd>The offset, in byte, from the start of the view where to read the data.</dd>\n</dl>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The <code>byteOffset</code> is set such as it would read beyond the end of the view</dd>\n</dl>\n</div></div></div>",
			"<div id = \"section_10\"><span id = \"getInt8()\"></span><h3 id = \"getInt8\" class = \"editable\">getInt8()</h3>\n<p>Gets a signed 8-bit integer at the specified byte offset from the start of the view.</p>\n<pre>\nbyte getInt8(\n  unsigned long byteOffset\n);\n</pre>\n<div id = \"section_11\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>offset</code></dt> <dd>The offset, in byte, from the start of the view where to read the data.</dd>\n</dl>\n</div><div id = \"section_12\"><span id = \"Exceptions_thrown_2\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The <code>byteOffset</code> is set such as it would read beyond the end of the view</dd>\n</dl>\n</div></div>",
			"<div id = \"section_11\"><span id = \"Parameters_2\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>offset</code></dt> <dd>The offset, in byte, from the start of the view where to read the data.</dd>\n</dl>\n</div>",
			"<div id = \"section_12\"><span id = \"Exceptions_thrown_2\"></span><h6 class = \"editable\">Exceptions thrown</h6>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The <code>byteOffset</code> is set such as it would read beyond the end of the view</dd>\n</dl>\n</div>",
			"<div id = \"section_13\"><span id = \"getUint8()\"></span><h3 id = \"getUint8\" class = \"editable\">getUint8()</h3>\n<p>Gets an unsigned 8-bit integer at the specified byte offset from the start of the view.</p>\n<pre>\nbyte getUint8(\n  unsigned long byteOffset\n);\n</pre>\n<div id = \"section_14\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>offset</code></dt> <dd>The offset, in byte, from the start of the view where to read the data.</dd>\n</dl>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The <code>byteOffset</code> is set such as it would read beyond the end of the view</dd>\n</dl>\n</div></div>",
			"<div id = \"section_14\"><span id = \"Parameters_3\"></span><h6 class = \"editable\">Parameters</h6>\n<dl> <dt><code>offset</code></dt> <dd>The offset, in byte, from the start of the view where to read the data.</dd>\n</dl>\n<dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The <code>byteOffset</code> is set such as it would read beyond the end of the view</dd>\n</dl>\n</div>",
			"<div id = \"section_15\"><span id = \"See_also\"></span><h2 class = \"editable\">See also</h2>\n<ul> <li><a class = \" external\" rel = \"external\" href = \"http://www.khronos.org/registry/typedarray/specs/latest/#8\" title = \"http://www.khronos.org/registry/typedarray/specs/latest/#8\" target = \"_blank\">DataView Specification</a></li> <li><a class = \" external\" rel = \"external\" href = \"http://www.khronos.org/registry/typedarray/specs/latest/\" title = \"http://www.khronos.org/registry/typedarray/specs/latest/\" target = \"_blank\">Typed Array Specification</a></li> <li><a title = \"en/JavaScript typed arrays\" rel = \"internal\" href = \"https://developer.mozilla.org/en/JavaScript_typed_arrays\">JavaScript typed arrays</a></li> <li><a class = \" link-https\" rel = \"external\" href = \"https://github.com/vjeux/jsDataView\" title = \"https://github.com/vjeux/jsDataView\" target = \"_blank\">jDataView</a>: a Javascript library that provides the DataView API to all browsers.</li>\n</ul></div>"
		],
		"sectionNames": [
			"Constructors",
			"Method overview",
			"Read",
			"Write",
			"Constructor",
			"",
			"",
			"",
			"Methods",
			"getInt8()",
			"",
			"",
			"getUint8()",
			"",
			"See also"
		]
	}
    ]
    }