Challenge - 5 Problems
SASS Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Why was SASS created?
Which of the following best explains why SASS was created?
Attempts:
2 left
💡 Hint
Think about what CSS lacks that makes writing large stylesheets difficult.
✗ Incorrect
SASS was created to extend CSS with features like variables, nesting, and functions. This helps developers write cleaner and more manageable stylesheets.
🧠 Conceptual
intermediate2:00remaining
What problem does SASS solve in CSS?
Which problem in CSS does SASS primarily address?
Attempts:
2 left
💡 Hint
Think about how SASS helps reduce repeated code.
✗ Incorrect
CSS does not have variables or reusable blocks, so SASS introduces these features to reduce repetition and make styles easier to update.
📝 Syntax
advanced2:00remaining
SASS Variable Usage
What is the correct way to declare and use a variable in SASS?
SASS
$primary-color: #3498db; .button { background-color: ???; }
Attempts:
2 left
💡 Hint
SASS variables start with a special symbol and are used directly by name.
✗ Incorrect
In SASS, variables start with a dollar sign ($) and are used by writing their name with the $ symbol.
❓ layout
advanced2:00remaining
Nesting in SASS
What is the output CSS of this SASS code?
.nav {
ul {
margin: 0;
}
}Attempts:
2 left
💡 Hint
Nesting in SASS combines selectors by placing the nested selector inside the parent.
✗ Incorrect
SASS nesting compiles to combined selectors where the nested selector is appended to the parent selector.
❓ accessibility
expert3:00remaining
SASS and Accessibility: Color Variables
How can using SASS variables improve accessibility in a website's color scheme?
Attempts:
2 left
💡 Hint
Think about how changing one variable affects all uses of that color.
✗ Incorrect
Using variables for colors lets developers update colors everywhere by changing one value, helping maintain consistent and accessible contrast.