TSHey Bruce, Glad you liked the article. I pasted the code in https://remix.ethereum.org and we can see the gas consumed at the bottomReply·Article·Sep 23, 2023·How To Save Gas When Writing Your Smart Contract In Solidity?
TSThanks Nitish Srivastava Yes, the testFunction2() consumed less gas, I've updated the table. :)Reply·Article·Mar 29, 2023·How To Save Gas When Writing Your Smart Contract In Solidity?