Javascript Comments

Comments

Comments are most often used to provide explanations for code that may have confusing or complex logic. It helps the coder to make notes about things that they may not remember later and to help others who may view the code later.  Comments can also be used for debugging by removing pieces of code from execution.  There are two types of comments: single line and multi-line.  Single line comments are handy when only a small bit of code should be removed from execution.  However, when larger amounts of code must be removed, multi-line comments are better suited to remove the code from execution.  Single line comments are denoted with a double slash (//) while multi-line comments are denoted with opening (/*) and closing (*/) character sets.  The following example provides samples of them both.

Example: <script type=”text/javascript”>

<!–

// This is a single line JavaScript comment

 

document.write(“Bet you can’t see the single line comment!”);

//document.write(“You can’t see this!”);

//–>

 

<!–

document.write(“There are lots of lines you can’t see!”);

/*document.write(“You can’t see this!”);

document.write(“You can’t see this!”);

document.write(“You can’t see this!”);*/

//–>

 

</script>

 

Display: Bet you can’t see the single line comment!

There are lots of lines you can’t see!

This entry was posted in JavaScript Tutorial. Bookmark the permalink.

246 Responses to Javascript Comments

  1. What a lovely weblog. I will certainly be back again. Please maintain writing!

  2. We’re a group of volunteers and starting a new scheme in our community. Your site provided us with valuable information to work on. You’ve done a formidable job and our whole community will be thankful to you.

  3. You’ll find obviously quite a lot of details just like that to take into consideration. That´s a fantastic point to bring up. I offer the thoughts above as general inspiration but clearly you will discover questions like the one you bring up where the most very important thing definitely will be working in honest excellent faith. I don´t know if most useful practices have emerged around things just like that, but I am certain that your work is clearly identified as a fair game.

  4. just another says:

    qw8Cbp Say, you got a nice article post.Really looking forward to read more. Want more.

  5. The most effective magic formula for the men you can explore as we speak.

  6. Whats up! I just want to give a huge thumbs up for the good info you could have right here on this post. I might be coming again to your blog for more soon.

  7. Really enjoyed this blog article.Really thank you! Much obliged.

  8. I really liked your article.Thanks Again. Cool.

  9. Wonderful work! That is the kind of info that should be shared around the web. Shame on Google for no longer positioning this put up upper! Come on over and consult with my site. Thanks =)

  10. Wow, great blog post.Really looking forward to read more. Cool.

  11. Thanks so much for the article post.Much thanks again. Cool.

  12. I truly appreciate this blog post. Great.

  13. Im thankful for the article post.Thanks Again.

  14. Your style is unique in comparison to other people I ave read stuff from. Thanks for posting when you ave got the opportunity, Guess I will just bookmark this page.

  15. Of course, what a magnificent website and instructive posts, I surely will bookmark your website.Have an awsome day!

  16. This is a really good tip particularly to those fresh to the blogosphere. Brief but very accurate info Thanks for sharing this one. A must read article!

  17. ITIL Exam says:

    is excellent but with pics and videos, this website could undeniably be one of

  18. You ave made some decent points there. I looked on the net for more information about the issue and found most people will go along with your views on this site.

  19. Keep up the great work, I read few articles on this web site and I believe that your website is real interesting and contains bands of fantastic info.

  20. Really enjoyed this article.Really looking forward to read more.

  21. It as not that I want to copy your web-site, but I really like the layout. Could you tell me which style are you using? Or was it custom made?

  22. Very nice post and right to the point. I am not sure if this is actually the best place to ask but do you folks have any ideea where to hire some professional writers? Thanks in advance

  23. Well I definitely enjoyed studying it. This subject offered by you is very constructive for good planning.

  24. Yeah bookmaking this wasn at a risky determination great post!

  25. There is certainly a lot to learn about this topic. I love all the points you made.

  26. Bandana bibs says:

    Thank you ever so for you article post.Much thanks again. Fantastic.

  27. There as definately a great deal to know about this subject. I like all the points you have made.

  28. There is apparently a bundle to know about this. I suppose you made certain good points in features also.

  29. Looking forward to reading more. Great article post.Really thank you! Much obliged.

  30. Useful ! Thanks you. I love your site! I all come back.

  31. name says:

    Very nice post and right to the point. I am not sure if this is truly the best place to ask but do you folks have any thoughts on where to get some professional writers? Thx

  32. learning says:

    You could certainly see your skills in the work you write. The arena hopes for even more passionate writers such as you who are not afraid to mention how they believe. Always follow your heart.

  33. well happy to share my knowledge here with mates.

  34. this website says:

    Thanks a lot for the post.Really thank you! Keep writing.

  35. more info says:

    I truly appreciate this blog article.Thanks Again. Cool.

  36. this website says:

    to shoot me an email. I look forward to hearing from you!

  37. C++ says:

    Really appreciate you sharing this blog post.Much thanks again. Want more.

  38. Just Browsing While I was surfing yesterday I noticed a excellent article about

  39. I wanted to thank you for this fantastic article, I certainly loved each and every small bit of it. I ave bookmarked your internet site to look at the latest stuff you post.

  40. talents says:

    You are one talented writer thank you for the post.

  41. My spouse and I stumbled over here from a different page and thought I should check things out. I like what I see so now i am following you. Look forward to looking over your web page again.

  42. mathematic says:

    Your article Desert | trekking-voyage.com write very well, thank you share!

  43. This unique blog is no doubt awesome additionally factual. I have found many handy stuff out of it. I ad love to return every once in a while. Thanks a bunch!

  44. Major thanks for the article.Really looking forward to read more. Awesome.

  45. testing says:

    There is apparently a bundle to identify about this. I believe you made certain nice points in features also.

  46. Really informative blog article.Really thank you! Great.

  47. This can be a excellent weblog and i would like to take a look at this each and every day with the week

  48. Wow! Thank you! I permanently wanted to write on my site something like that. Can I include a portion of your post to my blog?

  49. The problem is something which not enough men and women are speaking intelligently about.

  50. Way cool! Some extremely valid points! I appreciate you writing this article plus the rest of the website is extremely good.

  51. you ave gotten an excellent weblog here! would you wish to make some invite posts on my weblog?

  52. Well I truly enjoyed reading it. This tip offered by you is very practical for accurate planning.

  53. this website says:

    payday loan Banks and credit card companies have agreed to make the claims process for mis-selling of payment protection insurance PPI clearer and simpler.

  54. Very good article post.Really thank you! Really Cool.

  55. Thanks for sharing, this is a fantastic blog article.Thanks Again. Really Great.

  56. BUY DIANABOL says:

    Some really select posts on this website , saved to my bookmarks.

  57. Wow! This could be one particular of the most helpful blogs We have ever arrive across on this subject. Basically Great. I am also an expert in this topic so I can understand your effort.

  58. Thank you ever so for you article post.Really looking forward to read more.

  59. You know so much its almost tough to argue with you (not that I personally

  60. I’а†ve learn a few excellent stuff here. Certainly value bookmarking for revisiting. I surprise how so much attempt you set to make this sort of excellent informative website.

  61. iPhone cases says:

    Wonderful blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I ave been trying for a while but I never seem to get there! Cheers

  62. This website was how do you say it? Relevant!! Finally I ave found something which helped me. Many thanks!

  63. This site may Hi there! I just wish to give an enormous thumbs up for the nice info you?ve right here on this post. I shall be coming again to your blog for extra soon.

  64. Normally I don at learn article on blogs, however I wish to say that this write-up very compelled me to check out and do it! Your writing taste has been amazed me. Thank you, quite nice article.

  65. It as not that I want to copy your web-site, but I really like the layout. Could you tell me which theme are you using? Or was it especially designed?

  66. Really informative blog article.Thanks Again. Really Cool.

  67. pretty valuable stuff, overall I feel this is worth a bookmark, thanks

  68. Nice blog here! Also your web site lots up fast! What web host are you the use of? Can I get your associate hyperlink for your host? I desire my website loaded up as quickly as yours lol

  69. You may surely see your skills in the paintings you create. The arena hopes for all the more passionate writers like you who are not afraid to say how they think. Generally go soon after your heart.

  70. Photo Gallery helps you organize and edit your photos, then share them online.

  71. Its hard to find good help I am constantnly saying that its hard to find good help, but here is

  72. Wow, awesome blog format! How long have you been running a blog for? you make blogging glance easy. The entire glance of your website is magnificent, let alone the content material!

  73. Wow, what a video it is! Actually nice quality video, the lesson given in this video is actually informative.

  74. E liquid says:

    I used to be able to find good information from your articles.

  75. I think this is a real great blog post.Much thanks again. Cool.

  76. wow, awesome post.Much thanks again. Really Cool.

  77. Thanks for sharing, this is a fantastic blog post.Really thank you! Keep writing.

  78. This is my first time visit at here and i am really impressed to read all at alone place.

  79. Merely wanna comment that you have a very nice web site , I love the design and style it really stands out.

  80. I was suggested this web site by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my problem. You are amazing! Thanks!

  81. There is visibly a bundle to identify about this. I consider you made various good points in features also.

  82. Really informative article post.Thanks Again. Will read on

  83. Major thanks for the blog.Much thanks again. Great.

  84. usually posts some very exciting stuff like this. If you

  85. Lips says:

    Only wanna comment that you have a very decent site, I love the layout it actually stands out.

  86. Im thankful for the article.Really looking forward to read more. Fantastic.

  87. What as up, I read your new stuff regularly. Your writing style is witty, keep it up!

  88. This is one awesome blog post.Thanks Again. Really Cool.

  89. Muchos Gracias for your post.Much thanks again. Cool.

  90. rich says:

    Thank you ever so for you blog article.Really looking forward to read more. Really Great.

  91. Aleida says:

    your post is just great and i can assume you are an expert on this

  92. Shantel says:

    It cаА аЂаn bаА аЂа• seeen and ju?ged only by watching the

  93. Alda says:

    The best and clear News and why it means a good deal.

  94. hammer says:

    Wonderful article! We will be linking to this great article on our website. Keep up the good writing.

  95. Muchos Gracias for your post.Really thank you! Fantastic.

  96. Whoa! This blog looks exactly like my old one! It as on a totally different subject but it has pretty much the same layout and design. Outstanding choice of colors!

  97. Dayton says:

    Way cool! Some extremely valid points! I appreciate you writing this post plus the rest of the site is also really good.

  98. Really good post! Also visit my web blog about Clomiphene Citrate side effects

  99. Wow, awesome weblog structure! How long have you been blogging for? you make running a blog look easy. The full look of your web site is fantastic, as well as the content!

  100. Wow that was odd. I just wrote an incredibly long comment but after I clicked submit my comment didn at show up. Grrrr well I am not writing all that over again. Anyway, just wanted to say great blog!

  101. You are my inspiration, I have few blogs and often run out from post . Analyzing humor is like dissecting a frog. Few people are interested and the frog dies of it. by E. B. White.

  102. One of the hair coconut oil hair growth construction and follicles.

  103. Agen bola says:

    Of course, what a great site and enlightening posts, I definitely will bookmark your blog.Best Regards!

  104. copricerchi says:

    Looking forward to reading more. Great article. Great.

  105. It is truly a great and useful piece of info. I am glad that you shared this helpful information with us. Please keep us informed like this. Thank you for sharing.

  106. Very excellent info can be found on web blog.

  107. Looking forward to reading more. Great blog post.Thanks Again. Much obliged.

  108. Pretty! This has been an incredibly wonderful post. Many thanks for providing this info.

  109. It as not that I want to copy your internet site, but I really like the layout. Could you tell me which design are you using? Or was it especially designed?

  110. Thank you ever so for you article post.Really thank you!

  111. condensation says:

    If some one wants to be updated with hottest technologies afterward he must be

  112. smartphone says:

    I’а†ve recently started a blog, the info you offer on this site has helped me greatly. Thanks for all of your time & work.

  113. Your personal stuffs outstanding. At all times handle it up!

  114. I think other web-site proprietors should take this website as an model, very clean and great user friendly style and design, let alone the content. You are an expert in this topic!

  115. I think this is a real great article post.Really looking forward to read more. Much obliged.

  116. Thanks-a-mundo for the blog post.Thanks Again. Really Cool.

  117. Pretty! This was a really wonderful post. Thank you for supplying this info.

  118. This is one awesome post.Thanks Again. Keep writing.

  119. You ave made some really good points there. I checked on the internet for more information about the issue and found most people will go along with your views on this website.

  120. It as hard to find experienced people on this subject, however, you seem like you know what you are talking about! Thanks

  121. In my opinion you are not right. I am assured. Write to me in PM, we will discuss.

  122. you will discover so lots of careers to pick out from however the unemployment rate currently have risen::

  123. I really liked your blog post.Really looking forward to read more. Cool.

  124. Wow! Thank you! I permanently needed to write on my blog something like that. Can I implement a part of your post to my blog?

  125. Thanks-a-mundo for the article post.Really thank you! Great.

  126. Really appreciate you sharing this blog.Really thank you! Great.

  127. Really enjoyed this blog.Really looking forward to read more. Really Cool.

  128. this website says:

    Really informative blog.Really thank you! Awesome.

  129. we came across a cool site that you simply could possibly love. Take a search for those who want

  130. Its hard to find good help I am constantnly saying that its hard to find good help, but here is

  131. weed labels says:

    I value the blog post.Really looking forward to read more. Keep writing.

  132. Informative and precise Its hard to find informative and accurate info but here I found

  133. It as difficult to find educated people in this particular subject, but you seem like you know what you are talking about! Thanks

  134. What as up, just wanted to mention, I liked this blog post. It was funny. Keep on posting!

  135. Thanks a bunch for sharing this with all of us you really know what you are talking about! Bookmarked. Please also visit my web site =). We could have a link exchange contract between us!

  136. Network Advertising is naturally quite well-known because it can earn you a great deal of dollars within a pretty short period of time..

  137. Well I truly enjoyed reading it. This subject provided by you is very effective for accurate planning.

  138. watches says:

    What as up, just wanted to mention, I enjoyed this post. It was funny. Keep on posting!

  139. Thanks so much for the article post.Really looking forward to read more. Will read on

  140. this website says:

    IaаАа’б‚Т€ТšаЂаŒаАа’б‚Т€ТžаБТžll complain that you have copied materials from another source

  141. I wanted to thank you for this great write-up, I definitely loved every little bit of it. I ave bookmarked your web site to look at the latest stuff you post.

  142. Woah! I am really digging the template/theme of this website. It as simple, yet

  143. I really liked your blog article.Really looking forward to read more. Fantastic.

  144. Very good blog post.Really looking forward to read more. Fantastic.

  145. to read more says:

    Lately, I did not give plenty of consideration to leaving feedback on blog page posts and have positioned remarks even a lot much less.

  146. This very blog is obviously educating and besides diverting. I have found a lot of handy stuff out of this amazing blog. I ad love to go back over and over again. Cheers!

  147. Online Article Every once in a while we choose blogs that we read. Listed above are the latest sites that we choose

  148. vacation says:

    Very good info. Lucky me I discovered your website by chance (stumbleupon). I have book-marked it for later!

  149. Sweet internet site, super pattern , real clean and utilize genial.

  150. Thanks a lot for the article.Really looking forward to read more. Fantastic.

  151. Looking forward to reading more. Great blog article.Really thank you! Will read on

  152. vape india says:

    This is the worst write-up of all, IaаАа’б‚Т€ТšаЂаŒаАа’б‚Т€ТžаБТžve study

  153. Muchos Gracias for your blog.Really thank you! Keep writing.

  154. Click here says:

    I was recommended this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my problem. You are incredible! Thanks!

  155. Im grateful for the article post.Much thanks again. Really Cool.

  156. This awesome blog is without a doubt educating and amusing. I have found a lot of interesting stuff out of this source. I ad love to return again soon. Thanks!

  157. Usually it is triggered by the fire communicated in the post I browsed.

  158. pretty helpful material, overall I consider this is really worth a bookmark, thanks

  159. Subscribe to online newsletters from the major airlines. The opportunity savings you all enjoy will a lot more than replace dealing with more pieces of your email address contact information.

  160. Way cool! Some extremely valid points! I appreciate you writing this write-up and also the rest of the website is very good.

  161. There as definately a great deal to know about this subject. I like all of the points you have made.

  162. Say, you got a nice post.Really thank you!

  163. I think this is a real great blog post.Thanks Again. Keep writing.

  164. Only a smiling visitant here to share the love (:, btw outstanding design and style. Justice is always violent to the party offending, for every man is innocent in his own eyes. by Daniel Defoe.

  165. Usually I do not learn post on blogs, but I would like to say that this write-up very forced me to check out and do it! Your writing style has been surprised me. Thanks, quite great post.

  166. Very neat article post.Much thanks again. Great.

  167. Woman of Alien Great perform you have got done, this great site is admittedly great with great facts. Time is God as strategy for trying to keep anything from taking place directly.

  168. You got a very great website, Gladiola I observed it through yahoo.

  169. Would love to constantly get updated outstanding website !.

  170. You could definitely see your enthusiasm in the work you write. The world hopes for more passionate writers like you who are not afraid to mention how they believe. At all times follow your heart.

  171. Very interesting subject , thankyou for posting.

  172. Really enjoyed this blog article. Fantastic.

  173. Wonderful article! We will be linking to this particularly great post on our site. Keep up the great writing.

  174. I really liked your blog article. Awesome.

  175. Very good blog article.Thanks Again. Really Great.

  176. OmegaTheme Content Demo deadseacosmetics

  177. GYM School says:

    You developed some decent points there. I looked on the net for the problem and discovered most of the people goes coupled with with all of your website.

  178. Say, you got a nice blog.Much thanks again. Really Cool.

  179. I think other web-site proprietors should take this website as an model, very clean and great user friendly style and design, as well as the content. You are an expert in this topic!

  180. Gym Expert says:

    this december, fruit this december, fruit cakes are becoming more common in our local supermarket. i love fruit cakes::

  181. Lovely just what I was looking for. Thanks to the author for taking his clock time on this one.

  182. visit the site Here are some of the websites we advise for our visitors

  183. Wow, awesome blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is magnificent, as well as the content!

  184. You are not right. I am assured. I can prove it. Write to me in PM, we will talk.

  185. Really appreciate you sharing this article.Really looking forward to read more. Really Cool.

  186. click here says:

    Very amusing thoughts, well told, everything is in its place:D

  187. leather sofa says:

    There is definately a lot to learn about this issue. I like all of the points you have made.

  188. to read more says:

    pretty practical stuff, overall I consider this is really worth a bookmark, thanks

  189. We stumbled over here by a different web page and thought I might check things out. I like what I see so i am just following you. Look forward to checking out your web page repeatedly.

  190. Speed Corner motoryzacja, motogry, motosport. LEMGallery

  191. longboard says:

    please pay a visit to the internet sites we comply with, such as this one, because it represents our picks through the web

  192. IE still is the market leader and a huge element of folks

  193. Very nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I all be subscribing to your rss feed and I hope you write again soon!

  194. Some truly nice stuff on this site, I it.

  195. What as up, I would like to say, I enjoyed this article. This was helpful. Keep going submitting!

  196. Say, you got a nice blog post.Really looking forward to read more. Will read on

  197. dispensary says:

    Wow! This blog looks just like my old one! It as on a completely different subject but it has pretty much the same page layout and design. Great choice of colors!

  198. Very good blog post.Thanks Again. Really Cool.

  199. That you are my role designs. Thank you to the write-up

  200. this website says:

    When I look at your blog in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping.

  201. wow, awesome article post.Much thanks again. Keep writing.

  202. Optimization? I am trying to get my blog to rank for some targeted keywords but I am not seeing very good gains.

  203. year and am anxious about switching to another platform. I have

  204. Some truly choice blog posts on this site, saved to fav.

  205. Canon iP4200 says:

    Very nice post. I just stumbled upon your blog and wanted to say that I ave really enjoyed browsing your blog posts. After all I will be subscribing to your rss feed and I hope you write again soon!

  206. find more says:

    Really appreciate you sharing this post.Thanks Again. Fantastic.

  207. check that says:

    Thanks for the article.Thanks Again. Really Cool.

  208. It as not that I want to replicate your web page, but I really like the pattern. Could you let me know which design are you using? Or was it especially designed?

  209. I think other web-site proprietors should take this web site as an model, very clean and excellent user friendly style and design, let alone the content. You are an expert in this topic!

  210. Of course, what a magnificent site and educative posts, I surely will bookmark your site.Have an awsome day!

  211. I value the article.Really looking forward to read more. Want more.

  212. It as genuinely very difficult in this full of activity life to listen news on Television, thus I only use world wide web for that purpose, and obtain the most recent news.

  213. new home says:

    Very good article. I am facing many of these issues as well..

  214. Lace Dresses says:

    You ave made some good points there. I looked on the internet for more information about the issue and found most individuals will go along with your views on this website.

  215. top mmorpg says:

    Very nice blog post. I certainly appreciate this site. Thanks!

  216. Uber coupon says:

    Thanks pertaining to discussing the following superb written content on your site. I ran into it on the search engines. I will check back again if you publish extra aricles.

  217. wow, awesome blog post.Thanks Again. Much obliged.

  218. this website says:

    You have brought up a very fantastic points , thanks for the post.

  219. Thanks so much for the post.Really thank you! Really Cool.

  220. There as certainly a great deal to learn about this issue. I really like all of the points you made.

  221. audi repair says:

    Nice article! Also visit my site about Clomid success stories

  222. I really liked your blog post.Really thank you! Much obliged.

  223. What as up to every single one, it as in fact a nice for me to go to see this web page, it contains priceless Information.

  224. like they are left by brain dead people?

  225. Greate article. Keep writing such kind of information on your blog.
    Im really impressed by your blog.
    Hi there, You have done a fantastic job. I’ll definitely digg it and individually suggest to my friends.
    I am sure they’ll be benefited from this site.

  226. Thanks for the news! Just was thinking about it! By the way Happy New Year to all of you:DD

  227. I will immediately grasp your rss as I can at to find your e-mail subscription hyperlink or newsletter service. Do you have any? Please allow me realize so that I may subscribe. Thanks.

  228. Very good article. I will be dealing with a few of these issues as well..

  229. Just wanna input that you have a very nice web site , I like the layout it really stands out.

  230. This is one awesome post.Really looking forward to read more. Keep writing.

  231. This unique blog is no doubt entertaining and also amusing. I have discovered a lot of handy advices out of this source. I ad love to visit it again and again. Thanks a lot!

  232. Wow! Thank you! I constantly needed to write on my website something like that. Can I include a fragment of your post to my site?

  233. Just came from google to your website have to say thanks.

  234. Way cool! Some extremely valid points! I appreciate you penning this post plus the rest of the site is also very good.

  235. I think other site proprietors should take this web site as an model, very clean and magnificent user friendly style and design, let alone the content. You are an expert in this topic!

  236. Major thankies for the article.Really thank you! Keep writing.

  237. Start wanting for these discount codes early, as numerous merchants will start off

  238. Merely wanna Merely wanna remark that you have a very nice site, I the design it really stands out.

  239. Real good info can be found on blog.

  240. diet pills says:

    This very blog is no doubt educating and also informative. I have picked helluva useful stuff out of this blog. I ad love to go back over and over again. Thanks!

  241. Woh I enjoy your content , saved to bookmarks!

  242. Very informative blog post.Really looking forward to read more. Much obliged.

  243. the way through which you assert it. You make it entertaining and

  244. Thanks for sharing, this is a fantastic post.Much thanks again. Much obliged.

  245. wow, awesome article.Really thank you! Cool.

  246. Thanks so much for the blog post.Thanks Again. Awesome.

Leave a Reply

Your email address will not be published.