Learning JavaScript? Download my free JavaScript Handbook 🔥

Return a new string with removed white space from the end of the original string

'Testing'.trimEnd() //'Testing'
' Testing'.trimEnd() //' Testing'
' Testing '.trimEnd() //' Testing'
'Testing '.trimEnd() //'Testing'

Edit this page

Here's my latest YouTube video. I talk about why I think that dogs are a great help for developers working remotely: