In JavaScript, there are 64 reserved keywords that have special meanings in the language syntax and cannot be used as identifiers (such as variable names, function names, etc.). Here is the list of these reserved keywords:
abstract
await
(only in modules)boolean
break
byte
case
catch
char
class
const
continue
debugger
default
delete
do
double
else
enum
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
Notes:
Some keywords, like
abstract
,goto
,native
,synchronized
, and others, are reserved for future use and are not currently implemented in JavaScript.await
is only reserved within modules.The use of these reserved keywords as identifiers will result in syntax errors, so they should be avoided when naming variables, functions, or other entities in your code.