From health tips to tech hacks, find it all on IDNLearn.com. Our platform is designed to provide trustworthy and thorough answers to any questions you may have.

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