Single Line

Comment

A comment is text in your code that the computer ignores when the program runs. It’s meant for humans, not the computer.

What a comment does#

Consider this example:

Console.WriteLine("Hello, World!");

// This is a comment. It's ignored and not executed.

Console.WriteLine("Hello, Again!");
print("Hello, World!")

# This is a comment. It's ignored and not executed.

print("Hello, Again!")
console.log("Hello, World!");

// This is a comment. It's ignored and not executed.

console.log("Hello, Again!");

The output of this program is: