We are so close to the end result.
Now what we need is to concatenate the text plus the variables.
And the way you can do that is let's say I have the first console log.
I don't think I'm going to need the last one and I just rearrange my screen so you can see in real time
what is showing into the console.
If you are just following me, you can do the same thing in your screen.
So the first one is I want to show the last name plus the first name.
So let me just make this go away.
And the first name.
Plus last name.
So this is the way I can do both of variables in one single console log.
Let me save.
And this is the result.
We are missing one single space over here.
So how can I do that?
I can.
After the plus sign, add this single code, put a space, and then another plus sign.
So it's going to look like this.
The first variable.
I space and my second variable.
Always use the plus sign to concatenate those ones.
And we have a happy face.
Hey, we have a happy face again.
Let me save.
And now we have a space over here.
So that means I can add normal text plus variables inside of the console log.
That gives me a idea to add another one over here and said my name.
Is space plus and the first variable.
So it's going to be like this.
My name is Andre and the space and the surname save the config.
My name is Andre.
Perfect.
So that one is working.
The second one is the age.
So for the age I'm going to use double code.
I am plus age plus.
And then I can use single code or I can keep using double code.
Years old.
I'm going to put a space over here.
Otherwise it's going to be all together.
I am 28 years old.
Perfect.
Line seven.
Line eight.
They are working with text plus the variables.
So I believe we got to the end.
But I want to show you something even cooler or even better, or some other features that you can use
with variables.
Variables are not just to restore.
You can actually change the data at any point in your code, and you can also make sure nobody can change
your data inside of a variable down the line.
So yeah, let's go to the next class.