Level 3

Join Strings

Level 3 · Chapter 12

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 3–5

Split a big problem into smaller parts.

Code 1B-AP-11Read the official text

Also practised: 1B-AP-15

Common Core State Standards for Mathematics

Operations & Algebraic Thinking · Grade 4

Use the four operations to solve stories.

Code 4.OA.A.3Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will build and inspect text strings using string operators.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-11 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
🎯 I canbuild and inspect text strings using string operators
🧩 New blocks3 blocks
📝 New words7 words
⏱ Lesson time~40 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students forget to add a space inside the join block — words stick together (e.g., 'HelloAlex' instead of 'Hello Alex').
  • Students may think letter positions start at 0 — clarify that in Scratch, position 1 is the FIRST character.

🎯 Differentiation

🐢 Struggling: Provide a printed strip of the word 'SCRATCH' with boxes around each letter, numbered 1-7. Students count positions with their finger before using the letter-of block.

🚀 Advanced: Challenge them to build a monogram: extract the first letter of the first name and first letter of the last name (two ask blocks), then join them together.

💡 During the lesson

  • Warm-UpWrite "SCRATCH" on the board. Point to each letter and say its position number: S=1, C=2, R=3, A=4, T=5, C=6, H=7. Ask students: "What is the letter at position 3?" (R) Do two more examples with students' names. This physical warmup makes the abstract letter () of () block immediately intuitive. Pulling one letter out of a word is called extract 🪝.
  • Try ItRun each Try live on the projector before students touch computers. For Try 1, ask: "What will the cat say?" (HelloSam — with NO space before the name, because the greeting has no space!) Make a deliberate error first, then fix it — this pre-teaches the most common bug.
    Each Try changes one thing. Ask: "What changed?" (Try 1 changes the greeting; Try 2 changes the position; Try 3 changes the word.) Students see how each operator works on its own and together.
  • PlanAsk: "Which script comes first — the ask, or the say?" (Ask first — answer must exist before we use it.) Have students sketch the steps on paper before touching the computer. This 2-minute sketch prevents the most common ordering errors.
  • BuildStep 3 uses nested join — two join blocks, one inside the other. This is the hardest step. Slow down here: build the INNER join first (length of (answer) + [ letters!]), then wrap the outer join around it. Walk the room at this step — many students will need individual help with the nesting.