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

how can i solve this?

You've just learned about the next() and prev() methods. Use one of them to traverse from Wade Christensen to James McAvoy in the list of students.

how can i solve that?

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
$('li').eq(2).prev(2);
Jamison Habermann
Jamison Habermann
11,353 Points

The .prev() method in jQuery does not accept any arguments. Instead, you chain an additional .prev().

$('li'').eq(2).prev().prev();

Thank you very much