so you wanna know the deference between arrays and objects ?

aziz sassi
1 min readDec 30, 2020

im gonna explain it as im explaining to a 6 years old child

arrays are like cups or buckets or containers that has stuff in it when you need an element from it you call it by it’s number which we call “index of the array ” so whenever we call that element inside that array we don't call it by it’s name but by it’s number !
let’s give an example ! let’s say we have a ice cream container and each ice cream has it’s number so when we want to pick vanilla ice cream we call it by it’s number for example 4

and object are like arrays but a little different ! how’s that ? let’s go back to the ice cream example , when it comes to object we can’t call it by it’s name but we call it by it’s key word like the label of the ice cream

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

aziz sassi
aziz sassi

Written by aziz sassi

👋 Hey! I'm Aziz, a passionate software developer from Tunisia. Let's explore the world of programming together! 🚀💻 #TechEnthusiast

No responses yet

Write a response