Search⌘ K
AI Features

Exercise: Writing Functions

Explore how to implement and test basic smart contract functions including incrementing state variables and returning multiple values. Learn to update constructors and utilize Remix IDE for hands-on practice in Ethereum dapp development.

Now, it's time to practice our newly-acquired skills and try to write a few functions ourselves.

In all exercises, a starter code will include several TODO comments, which we'll need to replace with a correct implementation.

Increment function

For the first exercise, we need to define a function that ...