List of Keywords and Reserved Words in JavaScript
In JavaScript, there are certain keywords and reserved words that cannot be used as variable identifiers. This list serves as a reference for all these keywords and reserved words:
awaitbreakcasecatchclassconstcontinuedebuggerdefaultdeletedoelseenumexportextendsfalsefinallyforfunctionifimplementsimportininstanceofinterfaceletnewnullpackageprivateprotectedpublicreturnsuperswitchstaticthisthrowtryTruetypeofvarvoidwhilewithyield
Using any of these words as variable identifiers will result in a syntax error. It’s important to avoid using them and choose meaningful and descriptive names for variables in JavaScript.
Tags: JavaScript, keywords, reserved words