https://blog.repithwin.com/how-to-use-the-for-loop-in-javascript/