I looking forward to your feedback and comments
All results will be in the console.
In task 3, I found two possible solutions, but something tells me that both of them are not too appropriate for this task))
Nevertheless, what do you think about both solutions, is it acceptable to use them?
Code link:
https://codepen.io/collection/dbMoPp
Task link: