Hello, Internet, welcome to this new tutorial in the last tutorial we saw about variables and the
title of them like Let and Constant, and in this tutorial we are going to look into the increment and
decrement operators.
So when you're writing code in most of the cases, you define the way of your algorithm looks or the
structure of the program works using mostly using mathematical operators.
For instance, you'll want a particular block of code to keep updating.
You'll use the instance icicle type of one, you you name it, and then at the end of the block of code
for that to, you know, keep on repeating into a loop.
Are you using function as equal one?
And that can be done using the increment operator, which is plus plus.
And if you want, this would increase the value of a particular variable by one.
So the more the value of the particular variable number increases, you can call it in a way that more
much of the time that your function is going to perform and you want to stop that particular function
as soon as it runs its, let's say, 25th iteration.
And then you can give a value when iteration equals equals 25, you can, you know, stop the Potkin
function or stop the particular block of code running.
So this is how you control mostly controlled loops in programming with JavaScript and.
Yeah, so you use plus plus and minus minus.
And we will look into the examples when we come across a situation.
Mostly we have to be coding as she uses JavaScript coursework or the assignment for this course.
So in that I will be showing you real examples of how that works.
So let's move on to the next slide at a nation with variables.
So, for instance, if you want to display certain things into your console or your website or the application
of let's say you want to display that your name is and a particular string in that string is going to
contain the value of that variable.
So let's say in this example, we create a structure let might that equals deduce from that is available
for change and bipartisanship game and.
So in your console, you know, I own a pet as opposed to a supermarket and, you know, and then they
put a full stop to that, you get to I own and his name like pet name can be changed under different
names based on the item let.
So as you can see in this above, using the person to actually combine the disciplines together with
the previous concatenate a string with the variable, but the variable is containing announcements for
their own two strings and introducing variables and more.
So that is the method you need to get out of this and get through this.
Let's on to the next slide into so you can also join the public distribution network.
So, for example, this is a slob who's trying to get into this.
We are using the same way by using constant.
So in the last 20 years, so it's pretty much the same.
So you don't have to buy a lot of.
Phone operators.
So these type of operators, it checks the value and returns of the string data.
There are a lot of data to find the strength of numbers booleans even in numbers that are flawed, value,
decimal values and so on and so forth.
There are a lot of data types that you need to believe in programming and what are the uses of these
data type industry.
So basically, if you're doing any validation stuff like you want to get input from the user and you
want to validate them, whether this is a particular case of this particular scenario or if you are
developing an algorithm and you need a validation, key validation point for that particular thing,
then you need to know the type of has given all that it has taken from a particular dataset.
And there will be a big unknown say becomes a very good and.
You output a particular type in the console, you use the operator type type of right.
There is no camera casing.
Everything is simple.
You just type of a particular variable name and you get the output as string.
So another variable, you define a numerical value for it.
Then you get an output to say no.
And if you say go through and then you give it a boolean value and you can get an output as boolean.
So that's how would go.
I thought, let's try this one final slide and I guess we are done with JavaScript slides, so.
Yes.
Just pretty much this.
So let's say constant.
Includes.
And let's outputted.
Console doesn't love.
This is the one that's supposed to get trimmed and an output.
We got St..
So let's name two as a numerical.
They're able to and so I made a mistake, but this is something you guys need to learn on.
So I have done my particular numerical value to to strengths and I mean, put apostrophe marks and then
you give your string value with an apostrophe marks.
The compiler reads it as a string value, not a numerical.
Let's try it again.
It's variable number three.
The.
As opposed to get no.
And we call it, as always, make sure it's portable, but these are pretty much the same thing without
the exclamation marks.
But when you move the exclamation mark, only the compiler will detect it as a numerical type or else
when you whatever the characters you can between exclamation mark, the compiler reads it as a string.
So be careful, guys.
You might these small, small mistakes might lead you into your programming, so need to be careful.
So that's out in.
Is William.
Let's say we define.
A similar type.
And.
It's still a no no.
Yes, that is it.
Thank you for your attention.
Hope to see you all in the next tutorial.
Bye bye.