JavaScript中不能作为变量名的关键字和保留字总结
JavaScript中不能作为变量名的关键字和保留字总结:
1、js中的关键字:
breakcasecatchcontinuedefaultdeletedoelsefinallyforfunctionifininstanceofnewreturnswitchthisthrowtrytypeofvarvoidwhilewith
2、js中的保留字:
abstractbooleanbytecharclassconstdebuggerdoubleenumexportextendsfinalfloatgotoimplementsimportintinterfacelongnativepackageprivateprotectedpublicshortstaticsupersynchronizedthrowstransientvolatile