In programming languages such as C++, Java, and JavaScript, what is the primary purpose of terminating a statement with a semicolon?
A) To indicate the end of a conditional statement
B) To separate different parts of a function
C) To signify the beginning of a loop
D) To mark the end of an executable statement