1
00:00:00,640 --> 00:00:01,780
Hello and welcome.

2
00:00:01,790 --> 00:00:09,160
In this video I will explain what the statements are in computer programming.

3
00:00:09,720 --> 00:00:21,180
What is a statement compared to language a statement basically is a God of words.

4
00:00:21,180 --> 00:00:29,450
Numbers are paratus that performs a specific task.

5
00:00:29,460 --> 00:00:38,380
Now this group of words could also include things like comments comments are basically a way of explaining

6
00:00:38,410 --> 00:00:43,180
in various parts of your computer code.

7
00:00:43,260 --> 00:00:53,910
So a statement is a combination of words numbers operators and the various components that the programming

8
00:00:53,910 --> 00:00:57,710
language needs to create a program.

9
00:00:57,990 --> 00:01:04,280
So the first component of a statement can include vallieres values.

10
00:01:04,370 --> 00:01:08,880
I like the data that the computer program needs to function.

11
00:01:08,880 --> 00:01:16,200
For example a value could be a number it could be a text which in programming terms is referred to as

12
00:01:16,650 --> 00:01:17,430
a string.

13
00:01:17,430 --> 00:01:19,590
It can also be expression.

14
00:01:19,820 --> 00:01:24,920
It could also be operators like a plus operator minus operator.

15
00:01:24,930 --> 00:01:29,010
Those are known as operators could be a keyword like VAR.

16
00:01:29,280 --> 00:01:30,590
Could be comments.

17
00:01:30,690 --> 00:01:37,230
So these are various components that you can have in a statement.

18
00:01:37,230 --> 00:01:49,770
When a computer program runs it looks at distastes meant in the code and it runs or executes from top

19
00:01:50,280 --> 00:01:58,260
to bottom left to right one by one just to where you fully read the book from top to bottom.

20
00:01:58,260 --> 00:02:08,970
Computer programming is executed or runs the computer programs from top to bottom and from left to right.

21
00:02:09,150 --> 00:02:18,690
So usually the order is executed in the same order in which this statement is read written in computer

22
00:02:18,690 --> 00:02:29,120
programming to run a program is to execute a program statement is just like a sentence in English language.

23
00:02:29,470 --> 00:02:37,180
And just like in sentences you can have different components that make up the sentence.

24
00:02:37,590 --> 00:02:44,440
A typical computer program will consist of multiple statements.

25
00:02:44,770 --> 00:02:53,940
I have opened up a blank web page and the rest is called About column blank so if you type this in to

26
00:02:53,940 --> 00:02:59,310
your web browser and just press enter it will give you a blank page.

27
00:02:59,490 --> 00:03:06,360
So you were going to do is going to access the developer tool console so to do that.

28
00:03:06,360 --> 00:03:15,280
If you just right click click on inspect and click on console and that will give you the console area.

29
00:03:15,300 --> 00:03:22,680
So in this area here we can play around and experiment with some javascript code some won't to write

30
00:03:22,850 --> 00:03:26,690
a very simple javascript statement.

31
00:03:26,950 --> 00:03:31,860
So I'm going to say a quartz to

32
00:03:36,390 --> 00:03:39,840
be times.

33
00:03:40,820 --> 00:03:41,890
7.

34
00:03:43,130 --> 00:03:46,220
This is a complete statement.

35
00:03:46,220 --> 00:03:47,250
Even do a simple.

36
00:03:47,270 --> 00:03:49,430
It's a complete statement.

37
00:03:49,430 --> 00:03:55,860
Just like in the English language you can end your statement with a full stop in some programming languages.

38
00:03:55,910 --> 00:04:00,890
They have different plantations depending on the language in javascript.

39
00:04:01,010 --> 00:04:05,150
You typically end your statement with a say in my column.

40
00:04:05,180 --> 00:04:10,010
This is a typical valid statement in javascript.

41
00:04:10,130 --> 00:04:21,920
Let me quickly run through the statement with you that Characters A and B are called variables variables

42
00:04:22,100 --> 00:04:32,110
are basically like simple boxes that you can use to store any of your stuff in computer programming

43
00:04:32,110 --> 00:04:35,160
and you can use variables to store data.

44
00:04:35,450 --> 00:04:46,310
Okay programs variables are used to hold values in value could be a number like 7 and the values are

45
00:04:47,850 --> 00:04:52,010
things or data that the program will use.

46
00:04:52,130 --> 00:05:01,130
So you can think of variables as a symbolic place holder for the values that they contain.

47
00:05:01,190 --> 00:05:13,380
Now this number 7 here is basically is a value in itself and is called a literal value.

48
00:05:13,700 --> 00:05:22,440
This is because it stands alone without being stored in a variable.

49
00:05:22,500 --> 00:05:31,750
That equals to this as written here both characters are called operators.

50
00:05:31,820 --> 00:05:42,400
They are used to perform actions with the values of variables such as an assignment and my mouth might

51
00:05:42,400 --> 00:05:44,690
be called multiplication.

52
00:05:44,690 --> 00:05:52,550
This equals tool is known as an assignment operator and this asterisk is no nothing more triplication

53
00:05:52,700 --> 00:05:53,620
operator.

54
00:05:53,810 --> 00:06:05,790
So basically what this is doing here is saying that he is a force to the value of b time.

55
00:06:05,980 --> 00:06:07,430
7.

56
00:06:07,460 --> 00:06:12,690
All right so once you get the value of your time to buy 7 story back in a.

57
00:06:12,860 --> 00:06:15,610
That's basically what that statement is saying.

58
00:06:15,830 --> 00:06:17,980
There are different types of operator.

59
00:06:17,990 --> 00:06:22,390
This is just one that I have illustrated with.

60
00:06:22,640 --> 00:06:31,200
Now most statement in group and or are concluded with a semicolon at the end.

61
00:06:31,230 --> 00:06:35,000
This is specific to jamas group.

62
00:06:35,000 --> 00:06:39,240
Other languages have different syntax requirement.

63
00:06:39,530 --> 00:06:52,460
So this statement causes B time 7 basically tells the computer to get the current value that is stored

64
00:06:52,880 --> 00:06:53,820
in the variable.

65
00:06:53,820 --> 00:06:55,230
B.

66
00:06:55,280 --> 00:07:04,610
Multiply that value by 7 then store the result back into the variable we call a.

67
00:07:04,700 --> 00:07:07,010
That's what this statement is saying.

68
00:07:07,220 --> 00:07:17,600
So programs are just a collection of many statements which together describe all the steps that it takes

69
00:07:17,600 --> 00:07:21,440
to perform a computer program.

70
00:07:21,440 --> 00:07:28,820
So you may have a busy program for example that adds numbers together so the various steps that you

71
00:07:28,820 --> 00:07:35,430
have to specify for the computer to follow they are collectively referred to as statements.
