Hello and welcome.
In this video I'm going to introduce you to see it says comments.
Comments are used to explain your code.
They can also help you to edit your source code at a later date.
Comments are ignored by the web browser.
So if you've got comments in your code when the web browser loads the page it completely ignores comments.
You can use single line comments or multiple line comments.
So I've got my Sears says file open.
So the way you can see it come in for example if you wanted to insert a single line comment or you need
to do is just do slash.
And Asterix and then be text you want to add to the comment so I would just say this makes
text.
Hey tallack.
And another asterisks and then a forward slash so we can see if it's ignored by the web browser.
So you do force flash as Terry X the text you want to write and then esoterics and then you close it
with another forward slash.
So this is known as a single line comment.
So you can have it positioned anywhere.
I can have it there or I can decide to move it and placed it.
Place it on the side here somewhere here.
It will not affect the code because it can be right in the wall is going to affect the chord.
If I move this beginning to the beginning near the end in here then it will affect that call you can
see this code.
Here is italic.
If I decide to move this for example if I am testing something I want to use check for different things.
It can see now the italics has gone because I've commented that the entire quote but I can just get
rid of that bit and just position the comment here.
Just buy the property and the property value.
That way doesn't affect the tool element that has been stalled.
So that is called a single line comment.
So we can use it to describe various parts of your CNS to yourself or to others who may want to look
at your thesis at a later date.
So if you want to add more to Paul Like Comment or you need to do you to the asterisks and then you
do the Asterix again.
In between you just typing your text just see this is a more t ball line
comment.
All right so for example here if I wanted to comment out comments about this entire block of code I
just come here maybe just grab my thesis put that all in one there and grab this one and put it here.
Completely.
Comment out that block of code you can see the effect is affected.
The element that I'm styling because I've commented that that block Alright so that's how you add or
use more t'pau line comment if you want to comment have multiple lines of code.
You can do it that way.
So that's basically on using theses comments they can come in handy.
I recommend you use them.
The earlier you start adopting that practice the easier it would be in the long run.
You get used to it.
Just comment out bits and pieces of code anything you don't understand or you know if you understand
it you may understand it when you write in the code but maybe six months down the line you may come
back to your code.
I may not know what some things mean.
So commenting your code is very useful thinking.
And bye for now.