JavaScript jQuery Basics Working with jQuery Collections Working with jQuery-Specific Selectors

Unexpected AST node type passed to processExpressionStatement method: VariableDeclaration

Please correct this. I am not able to go forward.

index.html
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
    <link rel="stylesheet" href="style.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
    <h2>Star Trek Characters</h2>

    <ul class="character-list">
        <li>Captain Jean Luc Picard</li>
        <li>Data</li>
        <li>Worf</li>
        <li>Dr. Crusher</li>
    </ul>

    <div>I am supposed to stay hidden!</div>    

    <script
    src="jquery-3.2.1.min.js"></script>
    <script src="app.js"></script>
</body>
</html>
app.js
const $hiddenItems = $('li:hidden').show();

1 Answer

Steven Parker
Steven Parker
173,889 Points

The instructions did not ask for a new variable to be created. The return value from the "show" method does not need to be saved.