Can someone tell me what is the difference between these two codes? Aside from the fact one has a variable one does not? Why is one in this case better than the other?
var $target = $('ol li:nth-child(4)');
(FYI: I don't know if I wrote the second code correctly I'm just assuming it would make the li tag fade out).