Hey everybody, here is my code:
/*jshint multistr:true */
var text = "John is my name don't wear it out John";
var myName = "John";
var hits = ;
for (var i = 0; i < text.lenth; i++);
From what I can see the syntax is exactly correct but I keep getting the error "Oops, try again. Does your 'for' loop iterate until it hits text.length?"
It's a bit frustrating.. Can anybody give me a clue?
EDIT: Omg that's embarrassing, I misspelled "length" as "lenth".. How do I delete this thread?