https://medium.com/@Projeto.Tech/javascript-b%C3%A1sico-la%C3%A7os-de-repeti%C3%A7%C3%A3o-f316db3a47a3