⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

Commenting in JavaScript

In JavaScript, we can use comments to document code or to temporarily disable parts of a program. Comments are visible only in the source code and are not executed. There are two ways to comment: single-line comments with two slashes (//) and multi-line comments with an asterisk and slash (/* */). Good practice is to use comments to describe the purpose of the code and important implementation details.

EXAMPLE
RESULT