JavaScript has some reserved words you should know before you begin coding. The following table contains a list of JavaScript reserved words, which cannot be used as JavaScript variables, functions, methods, loop labels, or object names.
abstract | 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 |
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 |