Question · JavaScript and React course · Module 7: Styling and Animations
Nesting Selectors in SCSS
What does the & operator mean in nested SCSS selectors?
Answer options
- Creates a new SCSS variable with the parent name
- Adds a new descendant selector to the current element
- Refers to the parent selector, e.g. &:hover creates .button:hover
- Imports styles from an external SCSS file
You can check the correct answer by solving this task in the CodeWorlds game.