JavaScript keywords are reserved words used by the language to define syntax and control program behavior. These words cannot be used as variable, function, or class names.


Core JavaScript Keywords

KeywordCategorySimple Meaning
varVariableDeclares a function-scoped variable
letVariableDeclares a block-scoped variable
constVariableDeclares a constant reference
ifControl FlowRuns code when condition is true
elseControl FlowRuns code when condition is false
switchControl FlowSelects code based on value
caseControl FlowMatches a case in switch
defaultControl FlowRuns when no case matches
forLoopLoop with counter
whileLoopRuns while condition is true
doLoopRuns loop at least once
breakLoop ControlStops loop or switch
continueLoop ControlSkips current iteration
functionFunctionsDeclares a function
returnFunctionsSends value back from function

Object-Oriented Programming Keywords

KeywordCategorySimple Meaning
classOOPDefines a class
extendsOOPInherits another class
constructorOOPInitializes class
superOOPCalls parent constructor
newObjectsCreates new object
thisObjectsRefers to current object

Error Handling Keywords

KeywordCategorySimple Meaning
tryError HandlingWraps risky code
catchError HandlingHandles errors
finallyError HandlingAlways runs
throwError HandlingThrows custom error

Operators and Type Checking Keywords

KeywordCategorySimple Meaning
typeofOperatorReturns data type
instanceofOperatorChecks object type
inOperatorChecks property in object
deleteOperatorDeletes object property

Modules and Async Keywords

KeywordCategorySimple Meaning
importModulesImports module
exportModulesExports module
asyncAsyncDeclares async function
awaitAsyncWaits for promise
yieldGeneratorsPauses generator

Reserved Keywords (Do Not Use as Identifiers)

Reserved Words
abstract, boolean, byte, char, double, final, float, goto, int, long, native, short, synchronized, throws, transient, volatile

Deprecated / Special Keywords

KeywordStatusMeaning
withDeprecatedExtends scope chain
debuggerDebuggingPauses execution in dev tools

Summary Table

PurposeKeywords
Variablesvar, let, const
Conditionsif, else, switch, case, default
Loopsfor, while, do, break, continue
Functionsfunction, return
OOPclass, extends, constructor, super, this, new
Errorstry, catch, finally, throw
Modulesimport, export
Asyncasync, await, yield
Operatorstypeof, instanceof, in, delete