+ 2
What are comments used for?
20 Respuestas
+ 5
If you want to be a Professional web developer.You should use comments
+ 4
in simple words comments is explanation of the codes ;what is this code ; why did you used it and so on, comments usually will help you in the future to remember why u have used this single line of codes and it will help others to understand your program when they read it
hope this will help you.
+ 2
Adding Comment in script helps other to understand your logic behind the code and others can uderstand easily your coding
+ 2
comments are text you dont want the computer to work on
+ 1
// is used for comment and
/*
is used for multiple comment lines
*/
+ 1
1. make description
2. deactivate a line of code or some lines of code
:D
+ 1
I like to think of comments as a way to hide text inside the code for any purpose you want: for your future reference, for explaining the code to other developers or yourself (after a while you tend to forget why you code something in that way), for a quick way to exclude sections of code when you are trying and debugging, or even to leve secret love messages to a love one hahaha..
There are also some programs (like Ide's) that make use of comments to interact with code when implementing behaviour during code generation. I found and example like this in a pluging for writing UI in Eclipse (Eclipse is a Ide for Java code developing and other languages)...
+ 1
A comment is used whenever you want to leave relevant info about your code or some other relevant info. It is good practice and helps you or others who are working with the code.
It can also have other usages as deactivate code.
0
Comments are usually used for the programmer to remind himself of what he was doing.
0
comments is used for remember the functionality of the code by commenting the specific meaning. this code will not show up in the output.
0
often used to explain some part of the code, what it does or intented to do. useful for the author of the code, or others who will work with the code in the future
0
to add secret messeges in your page :)
0
they are for extra information on the code
0
That's for understanding your code for yourself and others, specially after some months!
0
IT IS USED.TO ADD.THE.COMMENT OF YOUR PAGE
0
In case you want to, Change the certain par
t of webpage or you have made a mistake and you want to change it then probably searching for the mistake without even the slightest idea will be difficult but if you know where mistake is it it will be a lot easier for you to find mistake and change it and in fact in the some big websites it is nearly impossible to find the mistake without knowing where the mistake is so we use it
0
to make a description
or
// this use for single line deactivate Nd
/*
is used for multiple comment line
*/
0
May I ask the script scrol box
0
The purpose of comments is to explain the meaning of parts of your code, so other programmers know what it means, and so you know what it means if you come back years later.