$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #238

What goes in the blank?

// strip whitespace from both ends
const clean = raw.____();

Answer: trim (also accepted: trim, trim())

trim() removes leading and trailing whitespace in JavaScript.
Play Problem Solving ▸