Javascript String Question 14

Introduction

What is the output of the following code?


let testString = "this is a test from java2s.com.";

console.log( testString.lastIndexOf("is"));

console.log( testString.lastIndexOf("is", 27) );


5
5



PreviousNext

Related