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?

  1. insert(string, insert, index)
  2. str-insert(string, insert, index)
  3. string-insert(string, insert, index)
  4. 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"

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.