In this Crypto Zombie lesson we go over declaring and initializing a state variable that is an integer. Solidity allows us to store state variables permanently on the blockchain within our created contract. In this specific lesson we create an unsigned integege (unsigned means that it cannot be negative) by the name of dnaDigits which we use to store the number of digits in our zombies DNA (in this case 16).
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.