Strings are movie scripts — we write, edit, and transform them! 🎬✨
🎯 Missions
Make 3 different movie title transformations today!
Use ALL 4 string tricks: .length, .toUpperCase(), .toLowerCase(), .includes()
Solve all 5 studio challenges — no hints!
● ● ● script.jsJavaScript
1
movie screenLIVE
Click ▶ Run to see your movie script output…
🎬 Studio Puzzle Step 1 of 5
Create a movieTitle variable and print its .length!
💡 Hint:Declare: var movieTitle = "The Amazing Adventure"; then console.log(movieTitle.length);
🎬 String Lab
In Lesson 12 you taught your code to make decisions with if/else. Today at the 🎬 Movie Studio, you'll learn to work with text — called strings in JavaScript! Strings are words, sentences, movie titles, actor names — any text wrapped in quotes. You'll measure them, shout them, whisper them, and search inside them. Let's turn your code into a text wizard!
🎬 String Toolkit
"Hello".length→ 5 (counts characters)
"hello".toUpperCase()→ "HELLO" (all caps)
"HELLO".toLowerCase()→ "hello" (all lowercase)
"Hello".includes("ell")→ true (check if text contains)
`Hello ${name}!`→ template literal with variable!
📝Strings are text wrapped in quotes: "Hello", 'Movie'
📏.length tells you how many characters a string has
🔊.toUpperCase() shouts it! .toLowerCase() whispers it
🔍.includes() checks if a word is inside another string
🔤Template literals use backticks ` and ${var} to insert variables!
🎉 Text Wizard!
You just mastered the secret art of string manipulation! Your code can now measure text, change its case, search inside it, and build sentences with variables. Every webpage, every app, every game uses these tricks to handle text.
📖 What you learned
string.length — count characters in a string
string.toUpperCase() / .toLowerCase() — change case
string.includes("word") — search inside a string (true/false)
`Hello ${name}!` — template literals insert variables into text
Strings are surrounded by " " or ' ' quotes
👉 Tomorrow: Array Adventure — store lists of things and pick items by position! 📋