DEV Community

Do Cuong
Do Cuong

Posted on

30/10

30/10
TOP - Foundation: 93%
Object Basics

Completed the last 3 tasks of object basics exercises in the foundation repo:

03 - fibonacci was pretty tough

04 - getTheTittles was easy, no diff

05 - findTheOldest was tough, but I think not as tough as fibonacci

Learn about ??= at the findTheOldest task solution, pretty neat trick.
I used sort() to sort the array and get the [0] index to get the oldest. The solution was using reduce() to get the oldest though.
Seeing reduce() use for sorting was pretty cool.

Finally finished Object basics lesson.
Only Project: Calculator now.

Almost done with Foundation, it was a long and tough journey, about 4 months.

I learned a lot in this time.

Top comments (0)