Hello and welcome.
In this video I will explain what expressions are in computer programming.
What is an expression an expression is any reference to a variable or value or a set of variables and
values combined with operators.
A variable is basically a container that is used to store values which the program we use and values
are represented by different types of data structures.
For example a number like number 7 is a value a boolean value boolean values are values that are either
true or false.
So there can only be two outcomes.
Those are known as boolean values.
Also a collection of text which is also referred to as a string data type so it's like the text characters
strong like a string.
So they're referred to as a string in programming.
So also you have operators for example the addition operator multiplication operator assignment operators
all these combined together on what is used to refer to as an expression computer program is basically
a bunch of statements and statements are made up of one or more expressions.
So let's take a look at a very basic expression it's a complete statement.
This is known as a statement in programming.
This here is a javascript statement.
So this statement basically has a full expression inside it.
We've got the seven.
This is known as a literal value expression.
So the number seven is referred to as a literal value expression.
The bee is known as a variable expression which means it basically retrieves its current value.
OK.
So a verbal expression is used to retrieve its current value.
The B times seven is known as an error rate meant.
Expression which means it's basically doing something so is multiplying this so b times seven basically
means you're multiplying the value of this by seven.
So that's referred to as an error rate metric expression the value a equals b times two is known as
an assignment expression this equals two.
Here is an assignment expression which means it is used to assign the result of b times seven to the
variable e.
OK.
So anyway you see an equals to sign is known as an assignment expression.
It is used to place a value inside a variable this here b times seven.
This is an expression that basically stands alone.
And it is referred to as an expression statement so expressions are an important part of computer programming.
So when you are writing your statements for your computer programs they are also used to write the statements
whenever you use your right statement.
You must include various type of expressions.
So that's it for this introduction to expressions.
Thanks for watching.
Bye for now.