Front End Web Developer Question:

Download Job Interview Questions and Answers PDF

Tell us have you used Sass? What's good about it?

Front End Web Developer Interview Question
Front End Web Developer Interview Question

Answer:

Every web project starts with everything neat, all CSS is organized in blocks or different CSS files and you know where everything is, right?
Right, until your project gets bigger, deadlines get tight, more developers come on board and someday you notice a strange behaviour in some elements of the page. When you inspect their styles you spot lots of css overrides coming from everywhere. This is the moment you realise how messy CSS can be.

Sass is the modern way of doing CSS and can save many lines of code in your stylesheets. This is possible because Sass works with variables, nested syntax and mathematical operations.
In my opinion one of the nicest features of sass is the possibility to write a selector just once and put all styles for that inside it. Do you need a more specific selector under an existing one? Just nest the specifics into the generic one.

Download Front End Web Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know what is Three.js & its important features?Tell us what are the advantages of using JavaScript?