← Quiz: CSS Variables and Animations: all 10 questions
Quiz: CSS Variables and Animations · Question 3 of 10
What is a key difference between CSS custom properties and Sass variables?
What is a key difference between CSS custom properties and Sass variables?
- A.Sass variables work at run time in the browser
- B.CSS custom properties are live in the browser: they cascade and can be changed by JavaScript
- C.CSS custom properties cannot hold colours
- D.There is no difference
Answer & explanation
Correct answer: CSS custom properties are live in the browser: they cascade and can be changed by JavaScript
Sass variables disappear at compile time; CSS variables exist in the page.
Can you get the rest right without peeking?
Take the timed Quiz: CSS Variables and Animations quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →