Home »
MCQs »
SASS MCQs
Which is the correct syntax to declare a variable 'myfonts' assigning the two font names?
4. Which is the correct syntax to declare a variable "myfonts" assigning the two font names?
- $myfonts: Helvetica, sans-serif;
- $myfonts: Helvetica, and sans-serif;
- $myfonts: "Helvetica, sans-serif";
- $myfonts: "Helvetica+sans-serif";
Answer: A) $myfonts: Helvetica, sans-serif;
Explanation:
The correct syntax to declare a variable "myfonts" assigning the two font names is,
$myfonts: Helvetica, sans-serif;