0
What is the meaning of myarr. length -1?
How should we use it?
4 ответов
+ 3
One less than the length of the myarr array.
+ 2
Length is a final variable applicable for arrays. It helps to get the size of the array. "myarr" must be an array. And that - 1reduces the size of array by 1.
If you want to get number of characters in a string than you can use length().
+ 1
means array length - 1
Example:
if your array has length = 5
if you use method (.length) - 1
means = 4
0
I think it can be used
to delete a letter from word.
Mean it is part of code for backspace button.