Hello and welcome.
In this video I'll be showing you some variable naming convention.
These are basic rules that you need to follow when giving you a variable names.
So I'm just going to read through this table.
So the first thing to take into account is that variable names can not start with numericable.
For example you can use any number you can name in variable 3 x all 4 cars just for example.
Those will be easily called variable names.
However you can combine the numbers w text he can call it variable.
Maybe cars 4 or go for 8 and things like that.
They are perfect that lead variable and you cannot use operators.
Operators may have a mathematical or logical operators you can't use that in variable name.
For example you can call it variable this block that or this minus dad or D times that you can't do
that you can not use any pointers nation marks of any kind in a javascript variable name that the underscore.
So you can call you a variable car call lawn or car hash.
But you can use an underscore on this call is allowed so you can give a variable name on the score card
for example or something on the score.
Some people think that is allowed javascript variable names must never contain spaces.
Never for example you can't name your variable.
My car spays car does not allowed.
However you can give it my car that is legal.
They can not be any spaces between variable names variable names are case sensitive.
For example if you declare a variable my car is different from a variable called my car or my car.
They are all different variations so when you declare and variable name you got to be careful in the
case you use so that when you want to refer to that variable name you are referencing the corette variable
like having a key to the wrong door.
If you don't have the right key you will not be able to open the door so you must make sure you have
your variable names correct in the current case.
Finally you can use any javascript key key words are part of the javascript language itself.
You can't use any of that variable.
For example a window is the key word in javascript.
Part of the language.
Things like open is part of the language location or string.
Those are part of the as group language so it would be illegal to use them on their own.
However you can use them in combination with other things that are the key word.
For example you can call it variable in that window.
Or maybe my string or whatever you can combine them with a text that is acceptable to all.
These are just some key basic rules you need to take into consideration when you are keeping your variable
names.
That's it for this for you.
Thank you for watching.
Bye for now.