What goes in the blank?
// strip whitespace from both ends const clean = raw.____();
Answer: trim
trim() removes leading and trailing whitespace in JavaScript.
Play Problem Solving ▸
// strip whitespace from both ends const clean = raw.____();
Answer: trim