Preview:
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

contract HelloWeb3 {
    string public getName;

    constructor() {
      getName = "Unknown";
    }

    function setName(string memory newName) public{
		  getName = newName;
    }
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter