Javascript

JavaScript 예약어 모음

Redking 2021. 3. 23. 16:39

자바스크립트에서, 몇몇 식별자는 예약어여서 변수나 함수 이름으로 사용할 수가 없습니다.

사용할 수 없는 예약어 목록은 아래와 같습니다.

abstract
arguments 
boolean 
break 
byte
case  
catch 
char  
class*  
const
continue  
debugger  
default 
delete  
do
double  
else  
enum* 
eval 
export*
extends*  
false 
final 
finally 
float
for 
function  
goto  
if  
implements
import* 
in  
instanceof  
int 
interface
let 
long  
native  
new 
null
package 
private 
protected 
public  
return
short 
static  
super*  
switch  
synchronized
this  
throw 
throws  
transient 
true
try 
typeof  
var 
void  
volatile
while 
with  
yield
// *는 ES6에서 추가된 예약어