Skip to content

Glossary: JavaScript Basics

trim / toUpperCase / toLowerCase

Also written: trim, toUpperCase, toLowerCase

String methods that return a new string: `trim` removes spaces at both ends, and `toUpperCase` and `toLowerCase` change the case. Strings can't be changed in place.

Where the book teaches it

Related terms

MethodString