CodeZettaInterview Hub

SCSS · Mixins · Fresh / Intern · Comparison

Mixin vs function vs placeholder (%extend) — differences?

Short Interview Answer

Functions return values; mixins emit CSS; placeholders share declarations via @extend with selector merging trade-offs.

Detailed Explanation

Prefer mixins for parametric CSS. @extend can create odd selector groups — use carefully.

Did you know this answer?