Hello and welcome to these feet are you in this video introducing you to the javascript string operator's
string corporators car use to add strings together.
You've seen the addition operator when the addition operator is used with strings.
It is referred to call Captain nation operator.
So we are using string operators.
He can use the addition operator or you can also use the addition and assignment operator which is a
plus equals tool which is the assignment you can use both types of operators to achieve a string operator
function.
So let me quickly illustrate with a couple of basic examples.
So I have got my Consul here and I am going to create some variables to equate a variable just typing
in the give a variable any name and when a gift is variable name one.
And I'm going to give it a value of.
Show me.
That is a value.
And I'm going to create another variable.
I'm going to call this variable number two can assign this value half the meaning.
So that's my value for variable number two and then create another variable variable number three and
I'm going to make this variable value of variable 1.
Plus I am now using the string operators.
Concat devalue some add on variable 1 and them.
He is in and quotes here.
The blank chords here basically will create a space between the two variables.
Hey here's another concatenation to had the variable number two.
So now variable number three.
Well it was fairly variable number one and two so now if I call variable number three it would give
me value.
Show me the money.
So that's one way of using the string operator in the addition operator we use it this way is call call
Captain nation.
So let me show you a second way where you can use the assignment operator.
So I'm going to create a very poor code.
See how I'm going to give it a value of hello.
Okay that would be the value of that variable.
Now I'm going to use the assignment operator to add to the value of that variable and the well will
do this.
I'll just call the variable by name which is C and I use the assignment operator.
I'm using the addition equals two together and I'm going to add value.
With space to create some space between the text say world and.
Because now it has now added the word world to hear loops.
Now having that innate and or use added two strings together.
Some use the assignment operator to achieve that and also use the addition operator.
In this case to chip.
So that's basically how you use string operators.
Thank you for watching.
Bye for now.