MCQs > IT & Programming > JavaScript > How can you remove spaces, tabs and line terminator characters around the string? String is defined like this: let string = 'hey'

JavaScript MCQs

How can you remove  spaces, tabs and line terminator characters around the string? String is defined like this:

let string = "hey"

Answer

Correct Answer:

string = string.trim();


Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it