How Does a Smart Contract Relate to a Decentralized Application (Dapp)?
A smart contract is the backend logic and core functionality of a dApp. The dApp is the complete application, including a user interface (frontend) that interacts with the smart contract (backend) on the blockchain.
Essentially, the smart contract defines the rules and state changes, while the dApp provides the means for users to interact with those rules.