Skip to content

Comments in VG Language

Comments are used to add explanatory notes or disable parts of the code. VG Language supports single-line and multi-line comments.

Single-Line Comments

A single-line comment begins with ## and continues to the end of the line:

## This is a single-line comment
var x = 10;  ## Variable declaration

/# This is a
multi-line comment
spanning multiple lines
#/

var y = 20;