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...