https://javascript.plainenglish.io/day-14-can-you-refactor-this-code-using-modern-javascript-array-methods-931e2c0cc8b0