Hello Solidity

Hello Solidity

Starting Solidity

With the advent of web3 and blockchain technology, much interest has been put into programming and building applications on web3. Solidity is one of the choice programming languages for creating smart contracts (applications on the blockchain)

This is the beginning of a series of short articles on the fundamentals of the Solidity language, the language is explained in a series of code examples designed to give readers the feel of how the programming language works, learners are encouraged to test code examples on the online Solidity IDE REMIX.

We start with a simple Hello World implementation, the first line tells you that the source code is licensed under the MIT license. Machine-readable license specifiers are essential in a setting where publishing the source code is the default, the pragma keyword specifies the compiler version

// SPDX-License-Identifier: MIT
// compiler version must be greater than or equal to 0.7.3
pragma solidity >=0.7.3;

contract HelloWorld {
    string public greet = "Hello World!";

This is the result of the code on Remix