x
1
2
<html>
3
<body>
4
5
<h2>JavaScript Arrays</h2>
6
7
<script>
8
9
let courses = ['HTML', 'CSS', 'JavaScript', 'MYSQL','PHP','MYSQL'];
10
document.write("<b>" + courses.lastIndexOf('MYSQL',3) + "</b>");
11
/* Return index number 2*/
12
13
</script>
14
15
</body>
16
</html>