-
Notifications
You must be signed in to change notification settings - Fork 7
/
JavaScript-Reserved-Words.html
executable file
·17 lines (15 loc) · 12.4 KB
/
JavaScript-Reserved-Words.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="utf-8"?><html xmlns:xsl="urn:schemas-microsoft-com:xslt" xmlns:MSHelp="http://msdn.microsoft.com/mshelp" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:ms-help="http://msdn.microsoft.com/mshelp" xmlns:t="http://www.microsoft.com/topic/t" xmlns:msie="http://www.microsoft.com/ie/msie" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:tool="http://www.microsoft.com/tooltip" xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:o="urn:schemas-microsoft-com:office:dvraddata" xmlns:u1="http://www.microsoft.com/vs/dvvwdcon" xmlns:anim="http://www.microsoft.com/windowssdk/anim" xmlns:w="http://www.microsoft.com/windows/w" xmlns:v="http://www.microsoft.com/windows/v" xmlns:msxsl="http://www.microsoft.com/aspnet/cpguide" xmlns:st1="http://www.microsoft.com/webservices/mscomwssdkproject" xmlns:ds="http://www.microsoft.com/xml/xmlsdk/ds" xmlns:xsd="http://www.microsoft.com/xml/xmlsdk/xsd" xmlns:xdr="http://www.microsoft.com/xml/xmlsdk/xdr" xmlns:sql="http://www.microsoft.com/sql/xmlsql" xmlns:ph="http://www.microsoft.com/ph/placeholder" xmlns:xlink="http://www.w3.org/1999/xlink"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="save" content="history" /><title>JavaScript Reserved Words</title><meta name="Language" content="en-us" /><meta name="System.Keywords" content="reserved words" /><meta name="Microsoft.Help.Id" content="ab2c246c-99c7-4594-b598-c91909653e09" /><meta name="Description" content="JavaScript has a number of reserved words that you cannot use as identifiers. Reserved words have a specific meaning to the JavaScript language, as they are part of the language syntax." /><meta name="Microsoft.Help.ContentType" content="Concepts" /><meta name="Refinement.TopicID" content="196" /><meta name="DCSext.ProductFamily" content="LIB_DG" /><meta name="DCSext.Product" content="VS_JScript" /><meta name="DCSext.Title" content="JavaScript Reserved Words" /><link rel="stylesheet" type="text/css" href="../styles/presentation.css" /><link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" /><script type="text/javascript" src="../scripts/EventUtilities.js"><![CDATA[ ]]></script><script type="text/javascript" src="../scripts/SplitScreen.js"><![CDATA[ ]]></script><script type="text/javascript" src="../scripts/Dropdown.js"><![CDATA[ ]]></script><script type="text/javascript" src="../scripts/script_manifold.js"><![CDATA[ ]]></script><script type="text/javascript" src="../scripts/script_feedBack.js"><![CDATA[ ]]></script><script type="text/javascript" src="../scripts/CheckboxMenu.js"><![CDATA[ ]]></script><script type="text/javascript" src="../scripts/CommonUtilities.js"><![CDATA[ ]]></script><xml><mshelp:keyword index="A" term="ab2c246c-99c7-4594-b598-c91909653e09" /><mshelp:keyword index="K" term="reserved words" /><mshelp:attr name="RevisionNumber" value="7" /><mshelp:attr name="AssetID" value="ab2c246c-99c7-4594-b598-c91909653e09" /><mshelp:attr name="Abstract" value="JavaScript has a number of reserved words that you cannot use as identifiers. Reserved words have a specific meaning to the JavaScript language, as they are part of the language syntax. Using a reserved word causes a compilation error when loading yo ..." /><mshelp:attr name="TopicVersion" value="8.0.13105.10000" /><mshelp:attr name="Catalog Container" value="System_Default_Catalog" /><mshelp:attr name="Content Set Container" value="System_Default_Content_Set" /><mshelp:attr name="PreferredLib" value="/library/ie" /><mshelp:attr name="Search.Refinement.TopicID" value="196" /><mshelp:attr name="TopicType" value="kbArticle" /><mshelp:attr name="Locale" value="en-us" /></xml></head><body><input type="hidden" id="userDataCache" class="userDataStyle" /><input type="hidden" id="hiddenScrollOffset" /><img id="collapseImage" style="display:none; height:0; width:0;" src="../icons/collapse_all.gif" alt="Collapse image" title="Collapse image" /><img id="expandImage" style="display:none; height:0; width:0;" src="../icons/expand_all.gif" alt="Expand Image" title="Expand Image" /><img id="collapseAllImage" style="display:none; height:0; width:0;" src="../icons/collapse_all.gif" /><img id="expandAllImage" style="display:none; height:0; width:0;" src="../icons/expand_all.gif" /><img id="dropDownImage" style="display:none; height:0; width:0;" src="../icons/dropdown.gif" /><img id="dropDownHoverImage" style="display:none; height:0; width:0;" src="../icons/dropdownHover.gif" /><img id="copyImage" style="display:none; height:0; width:0;" src="../icons/copycode.gif" alt="Copy image" title="Copy image" /><img id="copyHoverImage" style="display:none; height:0; width:0;" src="../icons/copycodeHighlight.gif" alt="CopyHover image" title="CopyHover image" /><div id="header"><table id="topTable" cellspacing="0" cellpadding="0"><tr><td><span onclick="ExpandCollapseAll(toggleAllImage)" style="cursor:default;" onkeypress="ExpandCollapseAll_CheckKey(toggleAllImage, event)" tabindex="0"><img id="toggleAllImage" class="toggleAll" src="../icons/collapse_all.gif" /> <label id="collapseAllLabel" for="toggleAllImage" style="display: none;">Collapse All</label><label id="expandAllLabel" for="toggleAllImage" style="display: none;">Expand All</label> </span><span>    </span><span id="devlangsDropdown" class="filter" tabindex="0"><img id="devlangsDropdownImage" src="../icons/dropdown.gif" /> <label id="devlangsMenuAllLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: All </nobr></label><label id="devlangsMenuMultipleLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Multiple </nobr></label><label id="devlangsMenuVisualBasicLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Visual Basic </nobr></label><label id="devlangsMenuCSharpLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: C# </nobr></label><label id="devlangsMenuManagedCPlusPlusLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Visual C++ </nobr></label><label id="devlangsMenuFSharpLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: F# </nobr></label><label id="devlangsMenuHLSLLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: HLSL </nobr></label><label id="devlangsMenuJScriptLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: JScript </nobr></label></span></td></tr></table><div id="devlangsMenu"><input id="VisualBasicCheckbox" type="checkbox" data="VisualBasic,vb,'persist'" value="on" onclick="SetLanguage(this)" /><label class="checkboxLabel" for="VisualBasicCheckbox">Visual Basic</label><br /><input id="CSharpCheckbox" type="checkbox" data="CSharp,cs,'persist'" value="on" onclick="SetLanguage(this)" /><label class="checkboxLabel" for="CSharpCheckbox">C#</label><br /><input id="ManagedCPlusPlusCheckbox" type="checkbox" data="ManagedCPlusPlus,cpp,'persist'" value="on" onclick="SetLanguage(this)" /><label class="checkboxLabel" for="ManagedCPlusPlusCheckbox">Visual C++</label><br /><input id="FSharpCheckbox" type="checkbox" data="FSharp,fs,'persist'" value="on" onclick="SetLanguage(this)" /><label class="checkboxLabel" for="FSharpCheckbox">F#</label><br /><input id="HLSLCheckbox" type="checkbox" data="HLSL,cpp,'persist'" value="on" onclick="SetLanguage(this)" /><label class="checkboxLabel" for="HLSLCheckbox">HLSL</label><br /><input id="JScriptCheckbox" type="checkbox" data="JScript,cs,'persist'" value="on" onclick="SetLanguage(this)" /><label class="checkboxLabel" for="JScriptCheckbox">JScript</label><br /></div><table id="bottomTable" cellpadding="0" cellspacing="0"><tr id="headerTableRow1"><td align="left"><span id="runningHeaderText">JavaScript</span></td></tr><tr id="headerTableRow2"><td align="left"><span id="nsrTitle">JavaScript Reserved Words</span></td></tr><tr id="headerTableRow3"><td align="left">
<span id="headfeedbackarea" class="feedbackhead">
<a href="javascript:SubmitFeedback('DevDocs@Microsoft.com','','','','8.0.13105.10000','%0\dThank%20you%20for%20your%20feedback.%20The%20developer%20writing%20teams%20use%20your%20feedback%20to%20improve%20documentation.%20While%20we%20are%20reviewing%20your%20feedback,%20we%20may%20send%20you%20e-mail%20to%20ask%20for%20clarification%20or%20feedback%20on%20a%20solution.%20We%20do%20not%20use%20your%20e-mail%20address%20for%20any%20other%20purpose%20and%20we%20delete%20it%20after%20we%20finish%20our%20review.%0\AFor%20further%20information%20about%20the%20privacy%20policies%20of%20Microsoft,%20please%20see%20http://privacy.microsoft.com/en-us/default.aspx.%0\A%0\d','Customer%20Feedback');">
Send Feedback
</a>
</span>
</td></tr></table><table id="gradientTable"><tr><td class="nsrBottom" background="../icons/gradient.gif" /></tr></table></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()" /><font color="DarkGray"><p /></font> <div class="introduction"><p xmlns:util="util">JavaScript has a number of reserved words that you cannot use as identifiers. Reserved words have a specific meaning to the JavaScript language, as they are part of the language syntax. Using a reserved word causes a compilation error when loading your script.</p><p xmlns:util="util">JavaScript also has a list of future reserved words. These words are not currently part of the JavaScript language, although they are reserved for future use. For more information about future reserved keywords in JavaScript, see <span sdata="link"><a href="570de156-8e5c-413c-ac04-51120bdbb634.htm">JavaScript Future Reserved Words</a></span>.</p><p xmlns:util="util">When choosing identifiers it is also important to avoid any words that are already the names of intrinsic JavaScript objects or functions, such as <span sdata="langKeyword" value="String"><span class="keyword">String</span></span> or <b>parseInt</b>.</p></div><h1 class="heading"><span onclick="ExpandCollapse(sectionToggle0)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(sectionToggle0, event)" tabindex="0"><img id="sectionToggle0" class="toggle" name="toggleSwitch" src="../icons/collapse_all.gif" />Reserved Keywords</span></h1><div id="sectionSection0" class="section" name="collapseableSection" style="" expanded="true"><div class="caption"></div><div class="tableSection"><table width="50%" cellspacing="2" cellpadding="5" frame="lhs"><tr><td><p xmlns:util="util">break</p></td><td><p xmlns:util="util">delete</p></td><td><p xmlns:util="util">if</p></td><td><p xmlns:util="util">this</p></td><td><p xmlns:util="util">while</p></td></tr><tr><td><p xmlns:util="util">case</p></td><td><p xmlns:util="util">do</p></td><td><p xmlns:util="util">in</p></td><td><p xmlns:util="util">throw</p></td><td><p xmlns:util="util">with</p></td></tr><tr><td><p xmlns:util="util">catch</p></td><td><p xmlns:util="util">else</p></td><td><p xmlns:util="util">instanceof</p></td><td><p xmlns:util="util">try</p></td><td><p xmlns:util="util" /></td></tr><tr><td><p xmlns:util="util">continue</p></td><td><p xmlns:util="util">finally</p></td><td><p xmlns:util="util">new</p></td><td><p xmlns:util="util">typeof</p></td><td><p xmlns:util="util" /></td></tr><tr><td><p xmlns:util="util">debugger</p></td><td><p xmlns:util="util">for</p></td><td><p xmlns:util="util">return</p></td><td><p xmlns:util="util">var</p></td><td><p xmlns:util="util" /></td></tr><tr><td><p xmlns:util="util">default</p></td><td><p xmlns:util="util">function</p></td><td><p xmlns:util="util">switch</p></td><td><p xmlns:util="util">void</p></td><td><p xmlns:util="util" /></td></tr></table></div></div></div><div id="footer"><div class="footerLine"><img width="100%" height="3px" src="../icons/footer.gif" alt="Footer image" title="Footer image" /></div>
<span id="feedbackarea">
Send
<a href="javascript:SubmitFeedback('DevDocs@Microsoft.com','','','','8.0.13105.10000','%0\dThank%20you%20for%20your%20feedback.%20The%20developer%20writing%20teams%20use%20your%20feedback%20to%20improve%20documentation.%20While%20we%20are%20reviewing%20your%20feedback,%20we%20may%20send%20you%20e-mail%20to%20ask%20for%20clarification%20or%20feedback%20on%20a%20solution.%20We%20do%20not%20use%20your%20e-mail%20address%20for%20any%20other%20purpose%20and%20we%20delete%20it%20after%20we%20finish%20our%20review.%0\AFor%20further%20information%20about%20the%20privacy%20policies%20of%20Microsoft,%20please%20see%20http://privacy.microsoft.com/en-us/default.aspx.%0\A%0\d','Customer%20Feedback');">
feedback
</a>
on this topic to Microsoft.
</span>
</div></div></body></html>