Which of the following is a JavaScript string method for extracting a section of a string and returning a new string?
A. slice()
B. replace()
C. concat()
D. None of the above
Answer:A
Which of the following is a JavaScript string method for extracting a section of a string and returning a new string?
A. slice() B. replace() C. concat() D. None of the above