String Manipulation Methods

What is the primary use case for the trim() method?
const text = '   Hello World   ';
const cleaned = text.trim();
Next Question (6/20)