Home »
MCQs »
SASS MCQs
Which Sass function is used to get the string with insert inserted at the specified index position?
19. Which Sass function is used to get the string with insert inserted at the specified index position?
- insert(string, insert, index)
- str-insert(string, insert, index)
- string-insert(string, insert, index)
- strinsert(string, insert, index)
Answer: B) str-insert(string, insert, index)
Explanation:
The str-insert(string, insert, index) function is used to get the string with insert inserted at the specified index position.
Example:
str-insert("IncludeHelp", " Hello ", 1)
Result: "Hello IncludeHelp"