Basic Programming Components in Verse
Lesson 2: Basic Programming Components
Ready for another plate of programming knowledge? Things are about to get a little more tasty!
Ready for another plate of programming knowledge? Things are about to get a little more tasty!
What Goes into Code
Expressions
An expression is the smallest unit of code that produces a result. For example, 1+2 is an expression that gives an output of 3 when the program runs.
Print("{1 + 2}")
Copy full snippet
Print is a built-in function that tells the program to display whatever you put into the parentheses. In this case, "{1 + 2}" tells the program to calculate what 1 + 2 equals, and the sum will be printed when you open the log.
Values
A value is the information your program uses to operate. Examples of values are numbers or text.
Results
When an expression executes, then outputs a value, that value is a result.
Evaluation
To evaluate is to execute an expression in order to produce a value. Note that evaluate and value come from the same root word.
Operators
An operator is a symbol that represents an operation like addition (+), or greater than (>).
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.