Why is it not recognizing my variable?


#1

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

The error message reads:
Oops, try again. Did you create a variable called $h1?


$(document).ready(function(){

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

});


#2

this is jquery, no need to use the var keyword


#3

Thank you! @stetim94

You are awesome!


#4