Smart contract

Smart contract is a piece of code that automatically execute tasks when certain conditions are met.
For example, a smart contract could say, “pay Jane $10 if she writes a 1000 word article by September 15, 2020,” and it would pay Jane once the conditions are met.
DApps use smart contracts to connect to the blockchain.

What is Ethereum?what are smart contracts and decentralized applications