1. Function (1) function components Functions are the executable units of code. Functions are usually defined inside a contract, but they can also be defined outside of contracts. // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.1 =0.4.22 =0.7.1 =0.4.21