About 16,900,000 results
Open links in new tab
  1. What is the preferred method of commenting JavaScript objects …

    The use of the triple comment in the first example is actually used for external XML documentation tools and (in Visual Studio) intellisense support. Its still a valid comment, but its …

  2. What is the correct way of code comments in JavaScript

    Comments in JavaScript are divided into two types: Single line comments or Multi-line comments: the first is Single line comments start with // Example : let a = 25; // Declare x, give it the value …

  3. commenting out code blocks in javascript - Stack Overflow

    Aug 4, 2012 · Javascript multiline comments, also known as block comments, start with a forward slash followed by an asterisk (/*) and end with an asterisk followed by a forward slash (*/). …

  4. how to implement regions/code collapse in javascript

    Dec 25, 2011 · How can you implement regions a.k.a. code collapse for JavaScript in Visual Studio? If there are hundreds of lines in javascript, it'll be more understandable using code …

  5. javascript - Is it possible to have a comment inside a es6 Template ...

    In that case, it might be more useful to capture the array, joining on the fly as use dictates, or to use a template literal and differently comment your implementation, like ghostDoc style. It …

  6. What does the '@' symbol do in JavaScript multiline comments?

    May 30, 2019 · In short, the comment is documenting what a function or method does and it has slightly special syntax - it is a block comment that starts with /** instead of merely /* to …

  7. javascript - How to comment out a block of code that already has ...

    Oct 4, 2016 · As a seasoned developer it amazes me some languages do not have the capacity to comment out code that has comments. I am using Twig at the moment and there is nothing …

  8. How should I comment object structure in JavaScript?

    I am using the following syntax to comment my code, /* * @param variableName {variableType} Description * @return {returnType} Description */ But I now don't know how to comment my …

  9. javascript - Are HTML comments inside script tags a best practice ...

    Commenting scripts in JavaScript The JavaScript engine allows the string "<!--" to occur at the start of a SCRIPT element, and ignores further characters until the end of the line. JavaScript …

  10. javascript - What's the correct way to write comments in attributes ...

    Jun 13, 2014 · For Javascript, the right way to write comments is // Comment or /* Comment */, while for CSS, comments are written as /* Comment */. What is the right way to write …

Refresh