JavaScript关键词与保留字
JavaScript关键词与保留字是在JavaScript语法中出现的,因此我们声明变量,函数名的时候不能使用下面关键词与保留字。
JavaScript关键词
break | case | catch | continue | default |
delete | do | else | finally | for |
function | if | in | instanceof | new |
return | switch | this | throw | try |
typeof | var | void | while | with |
JavaScript保留字
abstract | boolean | byte | char | class |
const | debugger | double | enum | export |
extends | final | float | goto | implements |
import | int | interface | long | native |
package | private | protected | public | short |
static | super | synchronized | throws | transient |
volatile |