From the course: Mastering Web Developer Interview Code

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Can you build a Sass mixin?

Can you build a Sass mixin?

- [Instructor] In the 2017 state of JavaScript survey, the Sass language outperformed CSS in terms of the amount of people who would prefer to use it on a project, instead of something like CSS. So if you're interviewing for a job today it's something you need to be comfortable with. In this episode, we'll take a look at one of the common things you do in Sass. And that is how to build a Mixin. Sass of course stands for Syntactically Awesome Style Sheets. It's a way to write CSS that is more flexible, and allows you to use a number of features that then convert to CSS via a processor. Mixins are Sass versions of functions, and they feel a lot like JavaScript functions, but because they're built with Sass within CSS, the syntax is a little bit different. Just like functions they can take a number of arguments in order to make their execution more flexible. And one nice feature of Mixins is that they can also be initialized…

Contents