Introduction to Solidity Language Fundamentals
The Solidity language from first principles: the development environment, the structure of a contract, value and reference types with their data locations, functions with visibility and state mutability, and modifiers, events and errors.
- 4 lessons
- Module quiz
Solidity is the language of almost every Ethereum smart contract. This module introduces the development environment and teaches the core language: the structure of a contract, types and data locations, functions with their visibility and state mutability, and modifiers, events and errors.
What the exam expects
Expect short code snippets that ask what a contract does, which keyword is needed, or why a function fails. Data locations, visibility, view and pure functions, and the difference between require, revert and assert are frequent topics.
How this module is organized
Solidity and the Development Environment covers the language, Remix, Hardhat and contract anatomy. Value Types, Reference Types and Data Locations covers types, mappings and storage, memory and calldata. Functions, Visibility and State Mutability covers function declarations. Modifiers, Events and Errors covers reusable checks, logs and failure handling.