answersLogoWhite

0

Javascript uses C-style comments, for block comments (multiline) use:

/*

comments go anywhere in here

*/

for short one line comments use double-slash:

// this is also a comment

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you add HTML tag within javascript?

Unless it is in a comment, you can't


How do you get a working comment box on your website?

To get a working comment/feedback box, you will need to use the programming languages HTML and Javascript (javascript is widely used for forms)


What is the correct JavaScript syntax to insert a comment that has more than one line?

The proper syntax to insert a multi-line comment into JavaScript is to surround the comment with /* and */ function useless() { /* This function doesn't do anything We should come back to it. Soon. */ }


What HTML lines are used to hide javascript from older browsers?

The comment tags which are The comment tags which are The comment tags which are The comment tags which are The comment tags which are The comment tags which are The comment tags which are The comment tags which are The comment tags which are The comment tags which are The comment tags which are


How do you add a comment to a discussion?

If you are asking about posting a comment in Facebook under the main status or picture is an add comment box, put your comment there. In other forums make sure you are a member of the forum and at the end of the discussion there is usually a box for you to add you comment.


What hides JavaScript code from browsers and web devices that do not interpret the code correctly?

For very old devices that aren't able to interpret JavaScript you can hide the script by adding the HTML comment block around the script. To keep this block of interfering with the script itself, you have to use JavaScript comment code to the end of the HTML comment block as well.Here's how.This technique is almost never employed anymore. The browsers that don't support JavaScript natively are that old.


Where is the new comment section located in Excel?

The question is not clear. To add a comment to a cell, right-click on the cell and select the add comment option.


How does you call javascript file in css?

In your HTML add in the tags


Is there a noscript add-on for chrome or annother easy to use javascript blocker add-on?

Unfortunately, Chrome does not have any way to disable Javascript, nor does it appear to be planned for "any time soon".


State the difference between comments in HTML and javascript?

HTML:Comment start: Javascript:Use // to comment a single line or /* */ to comment 1 or more lines. For example:// comment a single line/* Everything between these is a comment.Can span multiple lines. */


How do you add a comment within the head tags?

<!-- Comment Goes Here -->


What element do you use to add JavaScript code to a web page and how is it structured?

To add javascript code in HTML, you have to include the script tag on top. It can be added as <script src="source of script"></script>