When writing any code, be it with Arcade, Python, or another programming language, it is considered best practice to add comments within your code that explain the function of a section within the code or provide descriptive information about the code, such as who created it, when it waswritten, the date it was created, and more.
Arcade supports both single-line and multiple-line comments in your Arcade expressions. To add a single-line comment to your code, use //, as in the following code snippet:
//The following line labels a parcel with its owner's name.
When ArcGIS Pro, ArcGIS Enterprise, or ArcGIS Online processes the Arcade code, it will ignore any line that starts with // as if it does not exist and will automatically proceed to the next line in the Arcade expression.
Often, you will need to add more comments within your code that require multiple lines. To add multiple-line comments...