JavaScript jQuery Basics Understanding jQuery Events and DOM Traversal DOM Traversal with jQuery

what am I missing?

im missing something?

index.html
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
  <h2>Student List</h2>

  <ul class="student-list">
    <li>James McAvoy</li>
    <li>Alena Holligan</li>
    <li>Wade Christensen</li>
    <li>Matt Krzyzynski</li>
  </ul>

  <script src="jquery-3.2.1.min.js"></script>
  <script src="app.js"></script>
</body>
</html>
app.js
$('.student-list').eq(3);

1 Answer

Dehn Hunsworth
Dehn Hunsworth
7,189 Points

Your selection of this list might work but believe they are looking for this as the selector:

$('li')

and remember when selecting items from an array that the count starts at 0. your selecting the last of the students with your selection.

thanks dehn