Click the button to display the last position of the element "Apple":

Note:The lastIndexOf method was introduced in JavaScript 1.6, and does not work in Internet Explorer 8 and earlier versions.