Help with for loops? L3 - searching text for your name


No error message in the code box, just the a mseeage popping up asking if my for loop iterates until it hits text.length

 var text =  "belh gin fnsao gnsaod fnao bleb bleb fnai bleb afiusbn bleb"
 var myName = "bleb"
 var hits = []

for (var i = 0; i < text.legth; i++) {


Hi in your for loop you wrote text.legth instead of text.length