How To Put Comments In Javascript

RegisterLogin
How To Put Comments In Javascript
Post Description: This Page Will Show You How To Put Comments In Javascript Because Putting Comment In Your Javascript Code Scripts Is Easy Just Follow This Tutorial On How You Can Add Comments To Your Javascript Code
Tags: How, To, Put, Comments, In, Javascript
This Post Was Posted On Dec 30, 2009 By Webune Tutorials #2971
Welcome to Webune Web Hosting

We provide web hosting for all types of websites

today's questions is regarding a very important factor when coding your scripts in javascript or any other program language.

its comments

commments are extermely valueable for you and for other programmers, they are reminders of what the script is doing. this is specially important in areas of function. its always a good a idea to add your notes about what the function is expected to do

there are two way you can add comments

1. you can use the doubleslash way //
for example:
JAVSCRIPT COMMENTS:
// Hi I am putting comments using doulble slashes

[NOTE: with the doubles slashes, you are limited to putting comments to one line

2. the secod way is by using the astiric and a slash
JAVSCRIPT COMMENTS:
/* Hi i am puting comments using this tutorial
how i am puting more comments on the second line
and finaly, also on the third line i can go on as long as i dont close my comments with: */


Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
dubert
#5496 1
can't you use the pound hash: # like other programming languages?
Oct 04, 2011 Reply Report abuse
ee
#5456 2
/* hi i am puting comments using this tutorial
how i am puting more comments on the second line
and finaly, also on the third line i can go on as long as i dont close my comments with: */
Sep 19, 2011 Reply Report abuse
eric
#5454 3
how can i connect database in comment???
Sep 19, 2011 Reply Report abuse
Rolito
#4802 4
gaudicos great
Feb 01, 2011 Reply Report abuse
hailly
#4500 5
can you use // like php or #?
Oct 04, 2010 Reply Report abuse
dug
#4088 6
can you show me how to use java?
Jun 24, 2010 Reply Report abuse
stander
#3606 7
these are the only two, are there any other way?

llike put a pound sign like in php?

like this:

# hi these are my comments

does that work?
Apr 01, 2010 Reply Report abuse
Leave Your Comments...
©2011 Webune Forums - Wed Dec 21, 2011 7:14 am
Powered by: Webune Forums V3