samplecode

noun
UK /ˈsɑːmpl kəʊd/
US /ˈsæmpl koʊd/

A small piece of computer code that shows you how to do something.

The teacher gave us samplecode to help us start our first program.


OTHER MEANINGS

2. A short bit of code used to test whether a system works.

The engineer ran samplecode to check the new app.

3. Code included in a lesson or book to teach coding.

Each chapter ends with samplecode you can try yourself.

4. A small free piece of software given to show what a full product can do.

They shared samplecode so people could try the game before buying it.