TLDR explains what a piece of code does
FWIW, when I'm doing a code review, these are the <i>exact</i> kind of comments that I would tell a committer to remove.<p>That is, it's like it generates these kinds of comments:<p><pre><code>    // initializes the variable x and sets it to 5
    let x = 5;

    // adds 2 to the variable x and sets that to a new variable y
    let y = x + 2;
</code></pre>
That is, IMO the whole purpose of comments should be to tell you things that <i>aren't</i> readily apparent just by looking at the code, e.g. "this looks wonky but we had to do it specifically to work around a bug in library X".<p>Perhaps could be useful for people learning to program, but otherwise people should learn how to read code as code, not "translate" it to a verbose English sentence in their head.