Apply the class "btn-like" to the $(".btn")


I don't understand what I need to do. I've added the .toggleClass() and don't know what to do next or if the .toggleClass() I added is even correct or not. Can someone give me the code?

PS I didn't know in which category I should post this, so I randomly chose this one.

var main = function() {
  $(".btn").click(function() {




Hi @detail900,

Here's the error message:

Apply the class “btn-like” to the $(".btn")

And here's your code:


Can you spot the difference now?

Also, this is the correct subcategory for questions on that exercise :slight_smile:


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