Originally Posted by triko
But in my inizial post i write arrayPhrase = ["Yesterday.....];
This is an array!!! I would use an array!!!
That would then be an array containing ONE element which is a string. Then arrayPhrase will be the entire string and arrayPhrase will be beyond the end of the array.
Using array notation to reference characters in a string has been recently introduced as an alternative to using charAt but there are still lots of browsers in use that don't support it.
Helping others to solve their computer problem at http://www.felgall.com/