Question: Given the following CSS and HTML codes below, how could you apply the success class to the feedback div?

  1. `$('.feedback').hasClass('.success');`
  2. `$.css('.feedback', '.success')`;
  3. `$('.feedback').addClass('success');`
  4. `$('.feedback').css('.success');`

Answer: The correct answer of the above question is Option C:`$('.feedback').addClass('success');`