Solidity Basic Syntax
// SPDX-License-Identifier:
MIT pragma solidity ^0.8.0;
contract Hello { uint a; function set(uint x) public { a = x; } function get() public view returns (uint) { return a; } }
1. Compiler Directive
In Solidity, pragma is used to specify the compi...
introduction-to-blockchain-and-ethereum.hashnode.dev4 min read