bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/JavaScript/Debugging, Projects, and Reference
JavaScript•Debugging, Projects, and Reference

JavaScript Statements

Flash cards

Review the key moves

1/3
Core idea

What is the main idea behind JavaScript Statements?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Order

Put the learning moves in the order that makes the concept easiest to apply.

Statement identifiers are reserved words (cannot be used as variable names or any other things).
JavaScript statements start with a statement identifier to identify the action to be performed.
Statement Identifiers

Statement Identifiers

JavaScript statements start with a statement identifier to identify the action to be performed.

Statement identifiers are reserved words (cannot be used as variable names or any other things).

Revised July 2025

StatementDescription
{ }Creates an block of statements
async functionCreates an AsyncFunction object
async function*Creates an AsyncGeneratorFunction object
await usingDeclares local variables that are asynchronously disposed
breakExits a switch or a loop
classDeclares a class
constDeclares a variable with a constant value
continueBreaks one iteration (in the loop) if a specified condition occurs, and continues with the next iteration in the loop
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
forLoops through a block of code a number of times
for...inLoops through the properties of an object
for...ofLoops through the values of an iterable object
for await...ofLoops over async iterable objects
functionDeclares a function
function*Creates a GeneratorFunction object
if...else...else ifMarks a block of statements to be executed depending on a condition
importDefines a read-only import of a module
import attributesDefines how a module should be loaded
letDeclares a variable
returnStops the execution of a function (and returns a value)
switchMarks a block of statements to be executed depending on different cases
throwThrows (generates) an error
try...catch...finallyMarks the block of statements to be executed when an error occurs in a try block, and implements error handling
usingDeclares local variables that are synchronously disposed
varDeclares a variable
whileMarks a block of statements to be executed while a condition is true

See Also

Tutorial: JavaScript Statements

Previous

JavaScript Debugging

Next

Project - localStorage Counter