Console.WriteLine()
A command that PRINTS text to a console. Whatever is in the parentheses will be written in the game. (“Hello World”);
What is a string?
A piece of text in C#.
Console.ReadLine()
CAPTURES user input to the console.
Comments
Lines of code that are ignored by your computer. They are intended to be read by developers. // and /* */ for longer explanations.
~
Tilde.
Til-duh
ASCII art
Data Types
Languages like C-sharp tell a computer about the type of data in its program using data types.
Statically Typed
C-sharp will check that we use the correct types before the program even runs. It helps write scalable code with fewer bugs.
Int
Whole integer number
Bool
Or Boolean. Represents the logical idea of true or false.
Variable
Basically like a box in our computer memory where we can store values used in our code.
var
Error codes in C#
What do variables consist of?
Underscores, letters and digits.
What is a reserved keyword?
Words that the language already uses. If you name a variable “string” you risk creating errors in your code.
Data type conversions:
Converting Data Types:
Explicit type casting, converting.