Go Back   Site Owners Forums - Webmaster Forums > Web Design > Graphic Design

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 11-07-2017, 02:14 AM   #1
thevyakar
Registered User
 
Join Date: Nov 2017
Location: USA
Posts: 75
Java script

What are the types of javascript comments?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
thevyakar is offline   Reply With Quote

Old 11-07-2017, 10:44 PM   #2
Vincy
Registered User
 
Join Date: Jul 2017
Posts: 182
JavaScript comments can be used to explain JavaScript code, and to make it more readable.
JavaScript comments can also be used to prevent execution, when testing alternative code.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Vincy is offline   Reply With Quote
Old 11-08-2017, 02:13 AM   #3
kvd1216
Registered User
 
Join Date: Sep 2017
Posts: 22
Single Line Comments
Single line comments start with //.
Any text between // and the end of the line will be ignored by JavaScript (will not be executed).

Multi-line Comments
Multi-line comments start with /* and end with */.
Any text between /* and */ will be ignored by JavaScript.

Using Comments to Prevent Execution
Using comments to prevent execution of code is suitable for code testing.
Adding // in front of a code line changes the code lines from an executable line to a comment.
kvd1216 is offline   Reply With Quote
Old 11-10-2017, 03:13 AM   #4
thevyakar
Registered User
 
Join Date: Nov 2017
Location: USA
Posts: 75
Thanks For sharing your knowledge.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
thevyakar is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The conclusion provided by the Black Hat Java Script andrebreton2121 Search Engine Optimization 6 10-17-2012 11:06 PM


All times are GMT -7. The time now is 10:24 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.