How to do 2 checks in one condition correctly?

  • 0
    if(target.classList.contains('add-section-circle') target.classList.contains('check')) {};

    what is the correct way to do 2 checks in one condition at once? (the example above is not working)
    JavaScript Lily Hart, Mar 10, 2019

  • 1 Answers
  • 0
    & amp; & amp; or ||, depending on the task.
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!