How To Add Comments In Javascript Code

RegisterLogin
How To Add Comments In Javascript Code
Post Description: Adding Comments To Your Javascript Code Is Easy With This Tutorial From Webune
Tags: How, To, Add, Comments, In, Javascript, Code
This Post Was Posted On Oct 21, 2009 By Webune Tutorials #2617
hi, welcome to Webune support forums.

Webune has excellent service. We offer great deals on web hosting.

today we are going to show you how you can insert comments in your javascript scripts inside your code. use this only when putting comments, the browser will ignore anything with this comments. comments are just for you, they have no affect on how the script works.

putting coments is very simple. lets say for example i wanted to add these comments:

Webune Has Great Web Hosting


there are two way to put comments,

1. by putting a double slass before you comments: //

2. by enclosing your comments with /* and */

so i would use this code to put my comments inside my javascript

JavaScript Code:
<script type="text/javascript" language="javascript">
//Webune Has Great Web Hosting
/* Webune Has Great Web Hosting */
</script>


thats it, try it yourself

Webune Support Team
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
paksiw
#9989 1
wer is it??.,.,,.
Oct 01, 2012 Reply Report abuse
caro
#5116 2
comentario prueba
May 17, 2011 Reply Report abuse
dog
#5084 3
is java the same as javascript?
May 05, 2011 Reply Report abuse
Christian
#4960 4
christianlouboutinsalesstore/
Apr 01, 2011 Reply Report abuse
NABA
#3446 5
fghjhghyjjdcjgoiutrjbkljtl
Feb 10, 2010 Reply Report abuse
Leave Your Comments...
©2012 Webune Forums - Mon Oct 01, 2012 9:41 pm
Powered by: Webune Forums V3