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:
- Single line comments
- 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
*/
- Sass interpreter igonres the comments for output
- Single line comments are given after //
- Multiline comments are given within /* and */