×

c# · level 1 · unit 2 · lesson 3

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Give every box a name that tells you what is inside.

Names can use letters, digits and _. They cannot have spaces and cannot start with a digit. Capitals matter, so score and Score are two different boxes.

Some words are taken. A such as int, string or using already means something to C#, so it cannot be a name.

For names made of several words, C# coders use : squash the words together and give each new word a capital, like favouriteFood. Pick names that say what is inside.

using System;

string favouriteFood = "pizza";
int bestScore = 120;
Console.WriteLine(favouriteFood);
Console.WriteLine(bestScore);

A box called x works, but bestScore tells you what it holds.