JSFiddle - React, Tailwind, and code Playground by Espesen November 18, 2012 JavaScript var str = "kokeilutesti"; alert(str.indexOf("testi"));