https://mysteryweevil.medium.com/mastering-loop-control-statements-in-javascript-simplifying-your-code-15e7ea21da10