JavaScript statements often start with a keyword to identify the JavaScript action to be performed.

Visit our Reserved Words reference to view a full list of JavaScript keywords.
Here is a list of some of the keywords you will learn about in this tutorial:
KeywordDescription
breakTerminates a switch or a loop
continueJumps out of a loop and starts at the top
debuggerStops the execution of JavaScript, and calls (if available) the debugging function
do ... whileExecutes a block of statements, and repeats the block, while a condition is true
forMarks a block of statements to be executed, as long as a condition is true
functionDeclares a function
if ... elseMarks a block of statements to be executed, depending on a condition
returnExits a function
switchMarks a block of statements to be executed, depending on different cases
try ... catchImplements error handling to a block of statements
varDeclares a variable
JavaScript keywords are reserved words. Reserved words cannot be used as names for variables.