ここでは、JavaScriptで使える文字使えない文字をまとめています。ご参考になれば幸いです。
変数名、関数名、オブジェクト名に使えない文字 | 予約語とはシステムで予約されている文字です。 | |||
---|---|---|---|---|
abstract | boolean | break | byte | case |
catch | char | class | const | continue |
default | delete | do | double | else |
extends | false | final | finally | float |
for | function | goto | if | implements |
import | in | instanceof | int | interface |
long | native | new | null | package |
private | protected | public | return | short |
static | super | switch | synchronized | this |
throw | throws | transient | true | try |
typeof | var | void | while | with |