How to use state Variable for stored values permanently in a contract storage in solidity ?

  How to use state Variable for stored values permanently in a contract storage in solidity ?


pragma solidity ^0.5.0;

contract SolidityTest {

   uint storedData;      // State variable

   constructor() public 

{

      storedData = 10;   // Using State variable

   }

}

Comments

Last 7 Days

Difference between Public vs Internal vs Private state variables in solidity programming langauge with example ?

How to add Amazon website inside iframe?

What is a < code > tag?

How to use loop attribute with < video > tag in HTML for YouTube ? with example

How to use sandbox attribute value ( allow-scripts ) with < iframe > tag in HTML ? with example

free source code for website

What does P mean in HTML?

How to use sandbox attribute value ( allow-top-navigation) with < iframe > tag in HTML ? with example

How to use comments in Solidity programming language ?