First of all, there is a change in code as there is one extra parenthesis closed.
After correcting that the output of the code will be 14.
As the lastIndexOf() function will provide the last index...
Type: Posts; User: Khushi16M
First of all, there is a change in code as there is one extra parenthesis closed.
After correcting that the output of the code will be 14.
As the lastIndexOf() function will provide the last index...