What is a difference between @import and @include keyword in Sass?
Experience Level: Junior
Tags: Sass
Answer
The @import keyword is used to include partials (smaller Sass files that are prefixed by _underscore character) into a main file.
The @include keyword is used to insert processed css styles from mixin body into a selector.
Related General job interview questions
How do you add a new dependency to a file package.json?
npm JuniorWhat is a difference between installing a package locally and globally?
npm JuniorHow can dependency injection be used in views and how can it be helpful?
.NET CoreASP.NET Core MediorWhat is a difference between a List and Dictionary?
.NETBig OC#Data Structures JuniorCould you describe your regular day at your current role? What does it look like?
General Junior