Comments in Solidity

Learn how to write comments in Solidity.

We'll cover the following

In this very short lesson, we'll cover how to use comments in Solidity and a special comment type called code license identifier.


As in other programming languages, we can write comments in Solidity. Solidity supports two types of comments: a single-line comment and a multi-line comment.

A single-line comment starts with a // sequence:

Get hands-on with 1200+ tech skills courses.