3. Comments
In Groovy, comments can be added in two ways: single-line comments and multi-line comments.
// This is a single-line comment
def x = 5 // This part is also a comment
/* This is a multi-line comment
and it spans multiple lines. */
def y = 10
Contact the author