[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[[["`trim()` removes leading and trailing whitespace characters (spaces, tabs, newlines, carriage returns) from a string."],["The function returns a new string without modifying the original string."],["Internal whitespace characters within the string are preserved."]]],["The `trim()` method removes leading and trailing whitespace from a string. It operates on a string (specified as `this: string`) and returns a new string with whitespace characters like tabs, newlines, and carriage returns removed from the beginning and end. Whitespace within the string remains unchanged. Examples in JavaScript and Python demonstrate trimming strings, showing the output after applying `trim()`.\n"]]