← Code LabSolidity0/50 solved · 0%
Fundamentals · easy

1. Hello, Solidity

Your first contract — store and return a string.

## Welcome to the Code Lab Every Solidity file starts with an SPDX license tag and a `pragma` declaring the compiler version. Declare a contract called `Hello` with a `public string` state variable `greeting` initialized to `"Hello, SolForge!"`.
Required in your answer: string public greetingHello, SolForge!