Directions for this exercise is wrong


#1

Look at my text please.
If I follow your directions it will be two names in hits array.
Not only mine. "Vladimir" will be also there. But without last character :smiley: (myName.length === 7 !="Vladimir".length)
The first character is same for both of names. It is "V".
Please fix up logic of your program's direction!

var text ="Hey! My name is Valeria.\
I have a boyfiend. He's\
name is Vladimir. We've \
been together sinse I was\
16. I had been studing at\
school when we met each\
other. We are great couple.";

var myName = "Valeria";


#2

@devace19968,
It is exactly the purpose of the exercise, to discover the flaw in the logic !!!!


#3

:smile:
Oh, I get it!