Open Remix.

You can see a default contract written in Solidity, the HelloWorld smart contract. Easy to understand!

HelloWorld

Note the word pragma. Source files can (and should) be annotated with a so-called version pragma to reject being compiled with future compiler versions that might introduce incompatible changes.

And a tip to learn: the constructor runs only when the contract is created.

So, we have our first smart contract!

Go to the next module.