Unit 3 first question how to solve?


#1

this is what i have so far.

(document).ready(function()
    
 var $h1 = $('<p>"hello"</p>');
)};

#2

The exercise does not ask us to include the .ready() wrapper. Just a line that defines the variable.

Since the instructions ask for an H1 element, as the variable name implies, we should be using <h1></h1> instead of paragraph element.

We do not quote strings in HTML elements. Only the outer quotes are needed in a selector.

var $h1 = $('<h1>Hello</h1>');

#3

thank you. i seem to be bad at reading directions.