1 00:00:00,510 --> 00:00:09,630 Hello and welcome to these feet are you in this video introducing you to the javascript string operator's 2 00:00:10,470 --> 00:00:16,980 string corporators car use to add strings together. 3 00:00:16,980 --> 00:00:28,450 You've seen the addition operator when the addition operator is used with strings. 4 00:00:28,500 --> 00:00:34,910 It is referred to call Captain nation operator. 5 00:00:35,670 --> 00:00:38,190 So we are using string operators. 6 00:00:38,190 --> 00:00:48,340 He can use the addition operator or you can also use the addition and assignment operator which is a 7 00:00:48,360 --> 00:00:59,430 plus equals tool which is the assignment you can use both types of operators to achieve a string operator 8 00:00:59,520 --> 00:01:00,620 function. 9 00:01:00,630 --> 00:01:05,810 So let me quickly illustrate with a couple of basic examples. 10 00:01:05,820 --> 00:01:15,650 So I have got my Consul here and I am going to create some variables to equate a variable just typing 11 00:01:15,670 --> 00:01:21,800 in the give a variable any name and when a gift is variable name one. 12 00:01:22,060 --> 00:01:27,310 And I'm going to give it a value of. 13 00:01:27,360 --> 00:01:30,760 Show me. 14 00:01:32,790 --> 00:01:34,470 That is a value. 15 00:01:35,580 --> 00:01:38,420 And I'm going to create another variable. 16 00:01:38,670 --> 00:01:51,570 I'm going to call this variable number two can assign this value half the meaning. 17 00:01:51,840 --> 00:02:01,190 So that's my value for variable number two and then create another variable variable number three and 18 00:02:01,330 --> 00:02:09,350 I'm going to make this variable value of variable 1. 19 00:02:10,470 --> 00:02:13,520 Plus I am now using the string operators. 20 00:02:13,570 --> 00:02:18,310 Concat devalue some add on variable 1 and them. 21 00:02:18,360 --> 00:02:21,420 He is in and quotes here. 22 00:02:21,650 --> 00:02:27,430 The blank chords here basically will create a space between the two variables. 23 00:02:27,780 --> 00:02:34,820 Hey here's another concatenation to had the variable number two. 24 00:02:35,200 --> 00:02:37,880 So now variable number three. 25 00:02:37,910 --> 00:02:46,740 Well it was fairly variable number one and two so now if I call variable number three it would give 26 00:02:46,740 --> 00:02:47,880 me value. 27 00:02:47,910 --> 00:02:50,000 Show me the money. 28 00:02:50,250 --> 00:02:58,850 So that's one way of using the string operator in the addition operator we use it this way is call call 29 00:02:58,890 --> 00:03:00,630 Captain nation. 30 00:03:00,630 --> 00:03:05,290 So let me show you a second way where you can use the assignment operator. 31 00:03:05,640 --> 00:03:08,610 So I'm going to create a very poor code. 32 00:03:08,610 --> 00:03:17,060 See how I'm going to give it a value of hello. 33 00:03:18,330 --> 00:03:25,350 Okay that would be the value of that variable. 34 00:03:25,380 --> 00:03:32,280 Now I'm going to use the assignment operator to add to the value of that variable and the well will 35 00:03:32,280 --> 00:03:32,860 do this. 36 00:03:32,880 --> 00:03:39,580 I'll just call the variable by name which is C and I use the assignment operator. 37 00:03:39,600 --> 00:03:47,420 I'm using the addition equals two together and I'm going to add value. 38 00:03:47,730 --> 00:03:56,930 With space to create some space between the text say world and. 39 00:03:59,080 --> 00:04:04,370 Because now it has now added the word world to hear loops. 40 00:04:04,440 --> 00:04:09,330 Now having that innate and or use added two strings together. 41 00:04:09,350 --> 00:04:16,560 Some use the assignment operator to achieve that and also use the addition operator. 42 00:04:16,570 --> 00:04:18,450 In this case to chip. 43 00:04:18,670 --> 00:04:24,170 So that's basically how you use string operators. 44 00:04:24,310 --> 00:04:25,780 Thank you for watching. 45 00:04:25,780 --> 00:04:27,350 Bye for now.