And welcome in this video.
I will explain what expressions are in computer programming.
What is an expression an expression is in reference to a variable 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 in number like number 7 this value a bullion value bullion values have 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 string data type So it's like the text characters
strong like a string so they're referred to as is drink in programming.
So also you have operators for example.
The addition operator multiplication pretty top assignment operators.
All these combined together are 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 is a complete statement.
This is known as a statement in programming.
This here is a javascript statement.
So this statement basically has full expression inside it.
We've got seven.
This is known as a literal value expression.
So the number 7 is referred to as a little value expression.
The B is known as a variable expression which means it basically retrieves its current value.
Okay so a variable expression is used to retrieve its current value.
There be times 7 is known as an aggregate metric expression which means is basically doing something.
So is multiplying.
This should be Time 7 basically means you want apply the value of this by 7 so that's referred to as
an aggregate metric expression of value a equals b.
Times two is known as an assignment expression.
This equals still.
Here is an assignment expression which means it is used to assign the result of B times 7 to the variable
E..
Okay so in a way you send the equals to sign is known as an assignment expression is used to place a
value inside a variable.
This here B times 7.
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 their
statements whenever you use your right statement.
You must include various types of expressions so that's it for this introduction to expressions.
Thanks for watching.
Bye for now.