You can write comments on your SJS code the same way as you do on JavaScript code, as shown in the following code snippet:
// page.sjs
// Method 1: This is a single-line comment.
/*
Method 2: This is a multiple-line comment.
All the content in between is part of the comment.
*/
let h = 'hello';
const w = ' alipay';