Curriculum / Intermediate / Lesson 11

Strings & Methods

Working with text — methods you'll use every day.

11 of 30
intermediate 📖 5 min read 🎯 3 questions

What are Strings?

Strings are sequences of characters used to represent text. In JavaScript, strings are immutable — once created, they cannot be changed, but you can create new strings from them.

💡 Key insight String methods don't modify the original string — they return a new string. This is because strings are immutable in JavaScript.

Common String Properties and Methods

Common Mistakes

Quick Quiz

1. Which method splits a string into an array?

2. Which method removes whitespace from both ends of a string?

3. What does "hello".toUpperCase() return?

Summary

Back to curriculum