One article of a helpful JavaScript guide repeatedly refers to break
and continue
as 'directives', but I have only seen them referred to as 'control flow statements' before. What is the motivation for this terminology (particularly in JavaScript)?
My guess would be that it simply indicates that if we were to interpret the code into assembly, it would appear as a directive; I am wondering if there is any more meaning behind its usage, or if my guess is totally off base.
The article is wrong, in JavaScript the term "directive" refers to a string value in a directive prologue, like "use strict";
and others.
As you say, break;
and continue;
are statements.