Or perhaps even better:
let iterations = 3 // We need to iterate 3 times for the value to stabilize
let iterations = 3 // We need to iterate 3 times for the value to stabilize
-
With a good name, we could probably do away with the comment entirely:
let numberOfIterations = 3
-
It’s a fairly exhaustive article (but kind of a long read).
Documentation is an important topic.
https://medium.com/chrismarshallny/leaving-a-legacy-1c2ddb0c...