Home »
MCQs »
SASS MCQs
Which Sass function is used to extract the characters from the given string?
21. Which Sass function is used to extract the characters from the given string?
- str-slice(string, start, end)
- slice(string, start, end)
- stringslice(string, start, end)
- str-extract(string, start, end)
Answer: A) str-slice(string, start, end)
Explanation:
The str-slice(string, start, end) function is used to extract the characters from the given string.
Example:
str-slice("IncludeHelp", 3, 5)
Result: "clude"