SCSS Simplified + Interview Theory Revise (Day-9)

 Date: July 2, 2025

Time Spent: 07:46:00

SCSS – Write Smarter Stylesheets!

Today’s learning session was all about making styling easier, smarter, and scalable — thanks to SCSS, the CSS preprocessor that makes a developer’s life so much simpler.

Instead of repeating styles or cluttering large CSS files, SCSS brings in features that traditional CSS lacks — like variables, nesting, and functions — all while compiling down to plain CSS behind the scenes.


🧪 What I Practiced in SCSS:

  • Variables: Saved common values like colors and font-sizes

  • Nesting: Organized styles better by writing parent-child relationships directly

  • Mixins: Created reusable blocks for padding, shadows, etc.

  • Functions: Used custom and built-in SCSS functions for cleaner logic

  • Partials and Imports: Broke my styles into smaller manageable files

 SCSS in Interviews – Key Questions & Answers

 1. What is SCSS?
 2. SCSS vs CSS – What’s the difference?
 3. What are mixins and how are they useful?


 Frontend Interview Topics Revisited

Besides SCSS, I also revised some key frontend interview questions:

🔹 CSS

  • Specificity: How styles are prioritized when multiple rules match

  • Box model: Content → Padding → Border → Margin

  • Flex vs Grid: One-dimensional vs two-dimensional layout

🔹 JavaScript

  • Hoisting: Variables and functions are moved to the top of their scope before execution

  • Closures: Functions that remember their outer variables

  • Async/Await: Modern way to handle asynchronous operations more cleanly than Promises

🔹 React

  • Props vs State

  • Hooks like useEffect, useMemo

  • Controlled vs Uncontrolled Components


 Gracias:

I’m grateful I finally took the time to dig into SCSS properly. It genuinely speeds up styling and helps keep the code clean, especially in big projects.
Also, reviewing frontend interview questions refreshed many concepts I thought I knew — repetition really is the key.

Excited to use SCSS in my next React project and keep improving!

~ Sanya

Comments

Popular posts from this blog

Revising GitHub CLI commands (Day1)

JavaScript Deep Dive + React Review (Day-5)

Starting the GitHub User Search App (Day - 2)