[source,javascript]
----
if (condition)
  firstActionInBlock();
  secondAction();  // Noncompliant: secondAction is executed unconditionally
thirdAction();
----

[source,javascript]
----
if (condition) firstActionInBlock(); secondAction();  // Noncompliant: secondAction is executed unconditionally
----

[source,javascript]
----
if (condition) firstActionInBlock();  // Noncompliant
  secondAction();  // Executed unconditionally
----

[source,javascript]
----
if (condition); secondAction();  // Noncompliant: secondAction is executed unconditionally
----

[source,javascript]
----
let str = undefined;
for (let i = 0; i < array.length; i++) 
  str = array[i];
  doTheThing(str);  // Noncompliant: executed only on the last element
----