In code, comments are used to explain your code, whether that be the logic, some notes as to the functionality, or anything else of importance. Many coding languages, including Java, JavaScript, and many more, allow you to make comments by putting "//" in front of some text. Take for example, this Java program:
public class Main {
public static void main(String[] args) {
System.out.println("This is code that's actually being run, comments are ignored by compilers and interpreters.");
// This is a comment!
}
}
In Python, comments are achieved by using an octothorpe, (aka the hashtag), like this:
print("This code is going to be interpreted.")
#This comment will be ignored by the interpreter.
I hope this helps! If you have other questions regarding comments, feel free to ask.
Have a wonderful day,
-TransCode