How do I debug code?

  • 0
    Hello!
    I'm a relative newbie, when writing code, all debugging boils down to printing the result of a function to the console and comparing it (IN A HEAD) with the expected result
    And something tells me that there are more civilized ways))
    Please advise any articles on this topic.
    And I really want to know, when it comes to adults, smart and experienced programmers, do they generally output to the console for such purposes?
    JavaScript Anonymous, Sep 3, 2019

  • 1 Answers
  • 0
    For Firefox - dock .

    For Chrome - dock .
    Anonymous

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