I really like that comparison!
August 10th, 2017
Sass variables = const
CSS custom properties = let
Also on Twitter
I had a rough genus of a post on this, hopefully I’ll get to it soon.
just that its wrong tho.
Isn’t sass variables more like time traveling let’s?
But Sass variables can be reassigned, right?
SASS Variables are only “const” if you always use a !default statement otherwise there a let … wait is CSS6 out or what ?
I love the web 😪
I thought it was more like sass variables are ‘let’s, and CSS custom properties are ‘var’s