Javascript
Javascript Reserved Keywords
📣 Sponsor
When writing code, a reserved keyword is one you can't use as the name of a variable or identifier. As of 2022, this is the full list of valid reserved keywords in Javascript.
All Javascript Reserved Keywords
The below list cannot be used as variable names, as they are reserved keywords. Most of them have current functionality in Javascript. Some do not, but they are words which may have some sort of functionality in the future. Avoid using these words in variable names.
await
break
case
catch
class
const
continue
debugger
default
delete
do
else
enum
export
extends
false
finally
for
function
if
import
in
instanceof
new
null
return
super
switch
this
throw
true
try
typeof
var
void
while
with
yield
Last Updated 1645053071431
More Tips and Tricks for Javascript
- How to Change CSS with Javascript
- Demystifying how 'this' works in Javascript
- Check if an Object Contains all Keys in Array in Javascript
- Javascript Add Event Listener to Multiple Elements
- Sharing Screens with the New Javascript Screen Capture API
- The Many Quirks of Javascript Dates
- Changing HTML Classes and Attributes in Javascript
- A Guide to Heaps, Stacks, References and Values in Javascript
- Creating 3d Animated Gradient Effects with Javascript and WebGL
- Using the New Google Analytics API to Get Most Popular Pages