JavaScript Tutorial/Language Basics/Keywords

Материал из Web эксперт
Перейти к: навигация, поиск

Keywords

Keywords are reserved and cannot be used as variable or function names.

Here is the complete list of JavaScript keywords:



break        else          New      var
case         finally       return   void
catch        for           switch   while
continue     function      This     with
default      if            throw
delete       in            try
do           instanceof    typeof


Reserved Words

The reserved words are words that are reserved for future use as keywords.

The reserved words cannot be used as variable or function names.

The complete list of reserved words in ECMA-262 Edition 3 is as follows:



abstract      enum        int        short
boolean       Export      interface  static
byte          extends     long       super
char          final       native     synchronized
class         float       package    throws
const         goto        private    transient
debugger      implements  protected  volatile
double        Import      public