Gabriele Ferro Home

Objects and Basic Data Structures

Day30: 22 August 2020

Few days ago, I encountered some difficulties with my fifth OpenClassRooms project where I have to build a basic e-commerce website.

So I had to revise the notions regarding ES6, the promises, the classes and I was "more confused than persuaded" as we say in Italy. That's why I went back to freeCodeCamp again.

Someday, everything will make perfect sense. So for now, laugh at the confusion, smile through the tears, be strong and keep reminding your self that everything happens for a reason.

Unknown

The section dealing with basic data structures was precisely the next category I needed to complete and was the one that suited me.


Colored drawers.

Data Structures are like drawers, a cupboard or a wardrobe.

We can use a Data Structure to store different objects and keep them organized, easy to retrieve, and manipulate.

The easiest Data Structure is the array. It is like a line of drawers, where the first drawer has a number ZERO label on it.

We can manipulate the array with several methods that allow us to:

https://therichpost.com/wp-content/uploads/2020/04/92952978_650048448900253_4435610458283573248_n.jpg

While Objects are... objects?

But what is the difference between the two?

This dev.to article explains the difference very clearly.

**Today’s Progress:**

Completed the Basic Data Structure section of freeCodeCamp JavaScript Algorithms and Data Structures Certification.

**Thoughts:**

Should I rewrite my fifth project using Objects instead of classes?

**Link to tweet:**

[twitter-follow screen_name='20Gabriele20']

June 2024
MTWTFSS
 12
3456789
10111213141516
17181920212223
24252627282930

Archives

Gabriele Ferro Home
Copyright © Ferro Gabriele. All rights reserved.