🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Sass variables work at run time in the browser
  2. B.CSS custom properties are live in the browser: they cascade and can be changed by JavaScript
  3. C.CSS custom properties cannot hold colours
  4. 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 →