All Products
Search
Document Center

Comments

Last Updated: Feb 04, 2021

You can write comments on your SJS code the same way as you do on JavaScript code, as shown in the following code snippet:

  1. // page.sjs
  2. // Method 1: This is a single-line comment.
  3. /*
  4. Method 2: This is a multiple-line comment.
  5. All the content in between is part of the comment.
  6. */
  7. let h = 'hello';
  8. const w = ' alipay';