JavaScript Tutorial/Language Basics/Keywords

Материал из Web эксперт
Версия от 11:24, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Keywords

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

Here is the complete list of JavaScript keywords:



   <source lang="javascript">

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</source>


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:



   <source lang="javascript">

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</source>