[Suggestion] Mention that #{$varName} is used to refer to variable in loop


#1



https://www.codecademy.com/en/courses/learn-sass/lessons/functions-and-operations/exercises/each-loops-in-sass

It might be worth mentioning that the syntax to refer to a for-loop variable is #{$varName}. I was confused for a second when doing the exercise in the above link, wondering why there is a . and # in front of the variable name and found out that the # is part of the syntax to refer to the variable, and . is used to declare that the CSS is to be applied to class.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.