tracks

Sign in Sign up
1/7
Search Text for Your Name
What you'll be building

In this project, you'll be writing a short program that checks a block of text for your name.

Specifically, it will check the text for the first letter of your name, then push (add) the number of characters equal to your name's length to an array. By inspecting the array, you'll be able to see if your name was mentioned!

Once you've got the hang of loops, arrays, and if statements, we'll talk about ways this project could be improved.

Instructions

Some of this code will be new to you, but don't worry—we'll go through it step-by-step. Ready? Click Save & Submit Code to begin!

script.js
Back to Editor

Sign in