I apologize for not being clear i’m still learning all the terminology. I’m trying to figure out why when I use word[-1] in my if statement my result in the console is ‘0,’ but when I use the word[word.length-1] I get the correct answer of 12. 12 being the number of sentences in the array. Is it safe to assume that because the result in the console is ‘0,’ my word[-1] is not pointing to the last character of any of the elements that are being passed in. And because of that my sentenceCount isn’t counting any of the periods or exclamation marks.
I thought that using word[-1] would point to the last character of the element being passed in.
Not sure if this cleared up anything, regardless thanks for trying to help!
and also, you should be able to argue for everything you write, so what’s the argument for that it would? if you aren’t be able to find documentation to back something up then it’s probably not good enough to use either