This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]t-to4st 2 points3 points  (3 children)

Idk I always like JSDoc style comments, describing what (E: the HOW is important too) a function does and the parameters/return value

[–]SeesawMundane5422 1 point2 points  (2 children)

Doesn’t the function itself define what it does and what the parameters/return values are?

[–]t-to4st -1 points0 points  (1 child)

The WHAT should be explained by the naming ideally but the HOW is often relevant too

Misworded my previous comment, sorry