kalastaja:
I know I have a lousy track record, but isn't that obvious! My point was that is not standard procedure and not that easy to figure out - one would assume comments are fairly safe! So if this helps someone - ok; one peculiarity on display - the forum is here for that purpose, isn't it!?
and since we're SHARING so that folks KNOW, here's MORE on comments. (because Google is your friend..:smile:)
How do I insert comments in JavaScript code? Answer: JavaScript supports three different types of comments:
-
- Multiple-line C-style comments. Everything between / and / is a comment, for example:
/* This is a comment / / C-style comments can span as many lines as you like, as shown in this example */
- One-line comments of C++ style. These comments begin with // and continue up to the next line break:
// This is a one-line comment
- One-line comments with the HTML comment-opening sequence (<!--). Note that the JavaScript interpreter ignores the closing characters of HTML comments (-->). Consider this example:
<!-- This is treated as a one-line JS comment <!-- It works just like a comment beginning with // <!-- --> This is also a one-line JS comment <!-- --> because JS ignores the closing characters <!-- --> of HTML-style comments
Multiple-line C-style comments - Also supported in *.php, & *.css files
One-line comments of C++ style - Also supported in *.php files
One-line comments with the HTML comment-opening sequence - Also supported in *.html files
There is no ONE "STANDARD Procedure" for comments. There are a few different options.. Which style you use depends very much upon the kind of file/code you are using it in..