I'm having a difficult time finding out why this code doesn't work. Specifically, why I can't span the variable, and then add to it a class? Of course, I succeed in adding the class if it's just text, and not a variable.:
var fruit = 'bananas';
var paragraph = $('<div></div>');
paragraph.html('I like ' + '<span class="features">'fruit'</span>');
$(".features").css("color","yellow");
+on either side offruit