1
00:00:00,630 --> 00:00:02,090
Hello and welcome.

2
00:00:02,160 --> 00:00:11,070
In this video I will explain what expressions are in computer programming.

3
00:00:11,430 --> 00:00:26,670
What is an expression an expression is any reference to a variable or value or a set of variables and

4
00:00:26,820 --> 00:00:31,380
values combined with operators.

5
00:00:31,590 --> 00:00:45,870
A variable is basically a container that is used to store values which the program we use and values

6
00:00:46,140 --> 00:00:50,940
are represented by different types of data structures.

7
00:00:50,970 --> 00:01:01,500
For example a number like number 7 is a value a boolean value boolean values are values that are either

8
00:01:01,620 --> 00:01:02,910
true or false.

9
00:01:03,330 --> 00:01:05,320
So there can only be two outcomes.

10
00:01:05,340 --> 00:01:07,820
Those are known as boolean values.

11
00:01:07,890 --> 00:01:18,450
Also a collection of text which is also referred to as a string data type so it's like the text characters

12
00:01:18,450 --> 00:01:20,280
strong like a string.

13
00:01:20,280 --> 00:01:24,900
So they're referred to as a string in programming.

14
00:01:24,900 --> 00:01:33,420
So also you have operators for example the addition operator multiplication operator assignment operators

15
00:01:33,960 --> 00:01:46,380
all these combined together on what is used to refer to as an expression computer program is basically

16
00:01:46,440 --> 00:01:55,530
a bunch of statements and statements are made up of one or more expressions.

17
00:01:55,560 --> 00:02:01,980
So let's take a look at a very basic expression it's a complete statement.

18
00:02:01,980 --> 00:02:06,990
This is known as a statement in programming.

19
00:02:06,990 --> 00:02:10,250
This here is a javascript statement.

20
00:02:10,710 --> 00:02:17,290
So this statement basically has a full expression inside it.

21
00:02:17,370 --> 00:02:19,130
We've got the seven.

22
00:02:19,260 --> 00:02:24,270
This is known as a literal value expression.

23
00:02:25,320 --> 00:02:33,990
So the number seven is referred to as a literal value expression.

24
00:02:33,990 --> 00:02:46,170
The bee is known as a variable expression which means it basically retrieves its current value.

25
00:02:46,170 --> 00:02:46,570
OK.

26
00:02:46,590 --> 00:02:53,460
So a verbal expression is used to retrieve its current value.

27
00:02:53,460 --> 00:03:01,940
The B times seven is known as an error rate meant.

28
00:03:02,070 --> 00:03:12,210
Expression which means it's basically doing something so is multiplying this so b times seven basically

29
00:03:12,210 --> 00:03:16,650
means you're multiplying the value of this by seven.

30
00:03:16,680 --> 00:03:32,680
So that's referred to as an error rate metric expression the value a equals b times two is known as

31
00:03:32,860 --> 00:03:37,630
an assignment expression this equals two.

32
00:03:37,630 --> 00:03:50,200
Here is an assignment expression which means it is used to assign the result of b times seven to the

33
00:03:50,200 --> 00:03:51,460
variable e.

34
00:03:52,330 --> 00:03:52,750
OK.

35
00:03:52,780 --> 00:03:58,460
So anyway you see an equals to sign is known as an assignment expression.

36
00:03:58,760 --> 00:04:10,540
It is used to place a value inside a variable this here b times seven.

37
00:04:10,640 --> 00:04:15,840
This is an expression that basically stands alone.

38
00:04:15,840 --> 00:04:30,530
And it is referred to as an expression statement so expressions are an important part of computer programming.

39
00:04:30,530 --> 00:04:41,410
So when you are writing your statements for your computer programs they are also used to write the statements

40
00:04:41,420 --> 00:04:43,430
whenever you use your right statement.

41
00:04:43,430 --> 00:04:48,410
You must include various type of expressions.

42
00:04:48,410 --> 00:04:52,130
So that's it for this introduction to expressions.

43
00:04:52,130 --> 00:04:53,120
Thanks for watching.

44
00:04:53,120 --> 00:04:53,720
Bye for now.
