Loop Check ?

Loop Check ?

Correct me if this is wrong way to write a condition ?

  1.  {
  2.             $("body").addClass("");}
  3.         else {
  4.             $("body").removeClass("");
  5.             }
  6.         };