Smart Contracts in Solidity - Fundamentals
Smart Contracts in Solidity - Fundamentals
Immutable
Deterministic
EVM context
Demonstration
contracts
Click icon to add picture
solidity
Click icon to add picture
Use simple if, “if else”, “if else if” for decision making in solidity contracts
if (a>b)
{
c=true;
}
• An array is used to store a collection of data, but it is often more useful to think
of an array as a collection of variables of the same type.
• Instead of declaring individual variables, such as number0, number1, ..., and
number99, we declare one array variable such as numbers and use
numbers[0], numbers[1], and ..., numbers[99] to represent individual
variables.
• A specific element in an array is accessed by an index.