Comments | Sass

Sass Comments

Saas Comments

Comments in Sass

Saas does not executes Comments, like other programming languages they are just for the memory or description for the developer about line or lines of code. Comments lead developers to understand the code when revisiting or mainting the code for change. Sass supports two types of comments:

  1. Single line comments
  2. Multiline comments

Single line comments in Sass

Single line comments are written after //. Whatever is written after // is ignored by the Sass interpreter

Multiline comments in Sass

Multiline comments are written within /* and */. Whatever is written within /* and */ is ignored by the Sass interpreter

//$var1:3; This statement to be ignored /* These lines are ignored because this is within Multiline comments */
  1. Sass interpreter igonres the comments for output
  2. Single line comments are given after //
  3. Multiline comments are given within /* and */