Slicing can best be described as
1 answer:
Answer:
Option 4 : Pulling out groups of characters from a string.
Explanation:
- Slicing can be defined as choosing a specific part from the string and presenting it another string.
- Hence slicing() is a method used to extract required parts from the string.
- Syntax for method slice() is as follows:
string.slice(start, end)
- Where start and end are parameters for determining the part of the string to be extracted. These parameters work as an index to actual string.
For example:
Extract the characters from position 3 to 8:
var str = "Hello world!";
var res = str.slice(3, 8);
You might be interested in
Answer:
D.netiquette
hope it is helpful to you
Answer:??
Explanation:what is that suppose to mean?
please give me a brainiest if you don't mind
Answer:
i would but im not big brain
Explanation:
In the game the Vikings speak icelandic