string.lastIndexOf(searchValue[, fromIndex])
MDN says that fromIndex default value is equal to the string.length, however, I really think it is string.length-1
But it doesn’t matter what I think… I need someone to confirm what is the default value of fromIndex
Here is what they say:
“It can be any integer between 0 and the length of the string. The default value is the length of the string.”
According to ECMAScript 5, it will be the
lengthof the String.