To me, line 9, in human language, means "if the index value of the last dot is less than 2 greater than the @'s index value." Is that correct?
And line 10, to me, means "if the index value of the last dot is within the last two spots of the array." Is that correct?
atpos<1 || /*the @ cannot be the first character*/
alert("Not a valid e-mail address");