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?

  1. str-slice(string, start, end)
  2. slice(string, start, end)
  3. stringslice(string, start, end)
  4. 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"

Comments and Discussions!

Load comments ↻






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