Statement
noun
say it: “STAYT-ment” /ˈsteɪtmənt/
One complete instruction in a program, such as creating a variable or printing a line. JavaScript runs statements one after another, top to bottom.
What is a Statement?
A statement is a line of code.
You can think of a statement like a sentence. A sentence is made up of words and a statement is made up of expressions.
Statements perform an action.
let answer = 3 + 4;
In a sentence
- “Each statement in my script ends with a semicolon, so I can see where one instruction stops and the next begins.”
Level: Novice · More General terms at this level
Updated