#Exercise 4


#1


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

It popped up 'Oops, try again. Did you create variable called $div.?' even though i have written proper code.

$(document).ready(function(){
    var $div = $('div');
});


#2

$(document).ready(function(){
    var $div = $('div');
});

As per provided instructions ->

No need to use $(document).ready() or any additional code!


#3

Thankyou.! :slight_smile: It works.!


#4

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