chore(js): Clarify that the assignment in while loop check is intentional
Merge pull request #7529 from ewinslow/js-assignment-intentional

chore(js): Clarify that the assignment in while loop check is intentional