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.

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

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

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

    <script src="app.js"></script>
const $hiddenItems = $('li:hidden').show();

1 Answer

Steven Parker
Steven Parker
194,902 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.