3.variables need help


#1


https://www.codecademy.com/courses/web-beginner-en-GfjC6/0/3?curriculum_id=50a3fad8c7a770b5fd0007a1

Uncaught SyntaxError: Invalid or unexpected token
What am I missing?????

<!DOCTYPE html>
<html>
	<head>
		<title>Simplify, Simplify</title>
        <script type='text/javascript' src='script.js'></script>
	</head>
	<body>
        <div> Remember!
            <ul>
                <li>
                    <ol>
                        <li>Start with the function keyword</li>
                        <li>Inputs go between ()</li>
                        <li>Actions go between {}</li>
                        <li id="duh">jQuery is for chumps!</li>
                    </ol>
                </li>
                <li>Inputs are separated by commas.</li>
                <li>Inputs can include other functions!</li>
            </ul>
        </div>   
	</body>
</html>


// Write your jQuery code on line 3!
$(document).ready(function() {
var $target = #duh;
    $target.fadeOut('fast');
});


#2

when you want to select something, you need to use $("selector"):

var $target = $("li")

the code above will select list element.


#3

There's your critter. Do you not know what to write there? Is that your question?


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.