Expression Statement
Expression statements cause expressions to be evaluated. No transfer of control or iteration takes place as a result of an expression statement.
The syntax for the expression statement is simply
Syntax
[expression ] ;
Remarks
All expressions in an expression statement are evaluated and all side effects are completed before the next statement is executed. The most common expression statements are assignments and function calls. Since the expression is optional, a semicolon alone is considered an empty expression statement, referred to as the null statement.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for