Wikipedia gives a few examples of statements that we all know:Return statement: return value;Assignment statement: var value = expression;Call statement: expression;, e.g. action();If statement short: if (expression) expression;If statement long: if (expression) { n statements }Is there a general term that includes both statements and certain elements such as a class definition, method definition, namespace importing and namespace declaration?Bonus question: are comments statements?
Is there a word that includes both statements and definitions/declarations
terminology;statement