Introduction
Comments help explain what your code does in simple words. Documentation tells others how to use your code easily.
When you want to explain why a piece of code exists.
When you want to remind yourself what a tricky part of code does.
When you want to help others understand how to use your code.
When you want to temporarily stop a line of code from running.
When you write a method and want to describe its purpose and inputs.