Which of the following is a JavaScript string method for removing whitespace from the beginning and end of a string?
A. trim()
B. slice()
C. replace()
D. None of the above
Answer:A
Which of the following is a JavaScript string method for removing whitespace from the beginning and end of a string?
A. trim() B. slice() C. replace() D. None of the above