Comments:

Syntax and values

# begins a comment that continues to the end of its physical line:

# This is a whole-line comment.
let score = 10  # This is an end-of-line comment.

There are no block comments and no special documentation-comment syntax.

Syntax and values · Built-ins · Programming guides