Explore Westonci.ca, the top Q&A platform where your questions are answered by professionals and enthusiasts alike. Join our platform to connect with experts ready to provide accurate answers to your questions in various fields. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

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