JavaScript Associate — Easy
Key points
- `trim()` eliminates leading and trailing spaces
- It does not alter the content within the string
- Useful for validating user input
Ready to go further?
Related questions
JavaScript Associate — Easy
Key points
Ready to go further?
Related questions