Start your All-Access Pass to unlock this challenge
Challenge 1 / 3
Let's imagine we have these two boolean variables: collapsed
and darkMode
and we want to change the width and color of an element based on the
state of these. What is the correct way to accomplish this using a style
attribute?
Skip challenges and go to theNext Chapter