JavaScript Demo
JavaScript / HTML/ CSS Code
Output
Index of element "1" by lastIndexOf
Index of element "1" by lastIndexOf