Learning Solidity: My experience

Learning Solidity: My experience

What you need to know about soildity

Welcome to my blog, hope you are doing well and staying safe. I'm here simply to discuss about my recent experience learning solidity and what I have also learnt.

So far learning solidity has been a wonderful and whole new experience for me, learning something so exciting and exploring the horizons of it. Soildity is a strongly typed(static) language used for interacting with the ethereum Blockchain. In order for you to be fully comfortable with soildity at first sight, You need to be familiar with the syntax of either C, C++, C#, JavaScript, typescript or any other statically typed language although JavaScript isn't static rather it is dynamic but it has similar syntax so to say.

So far I've learnt the various function types in soildity and I'll love to share it you 💯

Common Function Types in soildity

Function types are attached to a function they kind of define the attribute of the function.

1. Public => Anyone can call this function

it looks something like this➡️ ```string public message


### 2. Private => Only this contract can call the function attached to it something similar to the public function type but the opposite,  it can only be accessed by the creator and not the public ,Looks something like this ➡️
```string private vote

3. View => This function returns data and does not modify the contract's data.

Looks something like this ➡️

function setMessage() public view returns (string)

4. Constant => This function returns data and does not modify the contact's data, similar to view

5. Pure => it will not modify or even read the contract's data

6. Payable => When someone call this function they might send Ether along, thus the name payable 😊😁.

Stay tuned for more on my experience with solidity.