Javascript保留字(Reserved Words)是指在Javascript语言中有特定含义,成为Javascript语法中一部分的那些字。Javascript保留字是不能作为变量名和函数名使用的。使用Javascript保留字作为变量名或函数名,会使Javascript在载入过程中出现编译错误。 Javascript保留字列表: breakdelete functionreturntypeof casedoifswitchvar catche...
JavaScript:Reserved Words This JavaScript tutorial explains all about reserved words in JavaScript with examples. Description There are reserved words that have special meaning in JavaScript and can not be used in your code as variables, function names or loop labels. ...
JavaScriptReserved Words ❮ PreviousNext ❯ abstractargumentsawait*boolean breakbytecasecatch charclass*const*continue debuggerdefaultdeletedo doubleelseenum*eval export*extends*falsefinal finallyfloatforfunction gotoifimplementsimport* ininstanceofintinterface ...
Assess your knowledge of the syntax, keywords and reserved words in JavaScript. Take this quiz and answer questions on specific points like an HTML tag associated with JavaScript code and an example of a reserved word. Quiz & Worksheet Goals See what you know about these areas: Tag to use...
Table 7. Reserved Words in JavaScript abstract else instanceof switch boolean enum int synchronized break export interface this byte extends long throw case false native throws catch final new transient char finally null true class float package try const for private typeof continue function protected...
A simple reference to all the keywords and reserved words in JavaScriptThis is a list of all the keywords and reserved words.They cannot be used as variable identifiers.await break case catch class const continue debugger default delete do else enum export extends false finally for function if ...
JavaScript has a number of reserved keywords. These words come in three types: JavaScript reserved keywords, future reserved words, and words to avoid. JavaScript Keywords break false in this void continue for new true while delete function null typeof with else if return var JavaScript Future...
JavaScript Keywords & Reserved words have a special meaning in the context of a language. They are part of the syntax of JavaScript.
JavaScript Reserved Words JavaScript also has its own set of reserved words. JavaScript Example: let x = 5; if (x > 0) { console.log("Reserved word in action!"); } Advantages of Reserved words Error Reduction:Prevent misuse of important terms in code. ...
JavaScript Reserved KeywordsThis section contains a list of all keywords that are reserved in JavaScript.What are Reserved Keywords?JavaScript has a number of reserved keywords. These are the words that you cannot use as identifiers (variable names, function names, and loop labels) in your ...