1 00:00:01,150 --> 00:00:03,430 And welcome in this video. 2 00:00:03,600 --> 00:00:10,400 I will explain what expressions are in computer programming. 3 00:00:11,370 --> 00:00:27,450 What is an expression an expression is in reference to a variable value or a set of variables and values 4 00:00:27,810 --> 00:00:43,320 combined with operators a variable is basically a container that is used to store values which the program 5 00:00:43,440 --> 00:00:50,940 we use and values are represented by different types of data structures. 6 00:00:50,940 --> 00:01:01,530 For example in number like number 7 this value a bullion value bullion values have values that are either 7 00:01:01,560 --> 00:01:03,090 true or false. 8 00:01:03,300 --> 00:01:05,290 So there can only be two outcomes. 9 00:01:05,310 --> 00:01:07,710 Those are known as boolean values. 10 00:01:07,830 --> 00:01:18,420 Also a collection of text which is also referred to as string data type So it's like the text characters 11 00:01:18,420 --> 00:01:24,640 strong like a string so they're referred to as is drink in programming. 12 00:01:24,870 --> 00:01:28,660 So also you have operators for example. 13 00:01:28,680 --> 00:01:33,670 The addition operator multiplication pretty top assignment operators. 14 00:01:33,930 --> 00:01:46,350 All these combined together are what is used to refer to as an expression computer program is basically 15 00:01:46,410 --> 00:01:55,370 a bunch of statements and statements are made up of one or more expressions. 16 00:01:55,540 --> 00:02:01,950 So let's take a look at a very basic expression is a complete statement. 17 00:02:01,950 --> 00:02:06,920 This is known as a statement in programming. 18 00:02:07,020 --> 00:02:10,510 This here is a javascript statement. 19 00:02:10,680 --> 00:02:17,240 So this statement basically has full expression inside it. 20 00:02:17,340 --> 00:02:19,120 We've got seven. 21 00:02:19,200 --> 00:02:24,660 This is known as a literal value expression. 22 00:02:25,260 --> 00:02:33,640 So the number 7 is referred to as a little value expression. 23 00:02:33,940 --> 00:02:46,150 The B is known as a variable expression which means it basically retrieves its current value. 24 00:02:46,300 --> 00:02:53,500 Okay so a variable expression is used to retrieve its current value. 25 00:02:53,510 --> 00:03:07,440 There be times 7 is known as an aggregate metric expression which means is basically doing something. 26 00:03:07,440 --> 00:03:09,020 So is multiplying. 27 00:03:09,030 --> 00:03:18,300 This should be Time 7 basically means you want apply the value of this by 7 so that's referred to as 28 00:03:18,540 --> 00:03:28,620 an aggregate metric expression of value a equals b. 29 00:03:28,830 --> 00:03:36,630 Times two is known as an assignment expression. 30 00:03:36,630 --> 00:03:37,600 This equals still. 31 00:03:37,610 --> 00:03:50,850 Here is an assignment expression which means it is used to assign the result of B times 7 to the variable 32 00:03:51,060 --> 00:03:51,880 E.. 33 00:03:52,290 --> 00:04:00,700 Okay so in a way you send the equals to sign is known as an assignment expression is used to place a 34 00:04:00,840 --> 00:04:05,800 value inside a variable. 35 00:04:05,900 --> 00:04:10,290 This here B times 7. 36 00:04:10,620 --> 00:04:21,770 This is an expression that basically stands alone and it is referred to as an expression statement. 37 00:04:23,280 --> 00:04:30,510 So expressions are an important part of computer programming. 38 00:04:30,510 --> 00:04:40,740 So when you are writing your statements for your computer programs they are also used to write their 39 00:04:40,760 --> 00:04:43,400 statements whenever you use your right statement. 40 00:04:43,400 --> 00:04:52,080 You must include various types of expressions so that's it for this introduction to expressions. 41 00:04:52,080 --> 00:04:53,090 Thanks for watching. 42 00:04:53,100 --> 00:04:53,880 Bye for now.