Run
Online Code Editor
var web="Learn JavaScript on Javatpoint"; document.write(web.indexOf("Java",7));