lastIndexOf() in JavaScript

<script language="JavaScript">
    <!--
    var myString = new String("Hello World, here I am!");
    document.write(myString.lastIndexOf("e") + '<br>');

    document.write(myString.lastIndexOf("l", 3));

    document.close();

    -->

    </script>