- Forums
- Javascipt
- How To Add Comments In Javascript Code
Adding Comments To Your Javascript Code Is Easy With This Tutorial From Webune [2190], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Wed Oct 21, 2009
5 Comments
386 Visits
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