paint-brush
Build an Array from Scratch in Javascriptby@vibhorthakral
2,059 reads
2,059 reads

Build an Array from Scratch in Javascript

by Vibhor Thakral4mApril 1st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this post, we are going to dig a little deeper into understanding Arrays by building our own array from scratch. Arrays in JavaScript are just Objects with integer-based keys that act as indexes and that’s what we aim to build here. We will start by creating a class called NewArray and as soon as we create the class we want to give it certain information, two in our case: length and the data that needs to be stored in the array. If you want to implement an array in a different language, some things might work differently and you will need to figure out how to get that working.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Build an Array from Scratch in Javascript
Vibhor Thakral HackerNoon profile picture
Vibhor Thakral

Vibhor Thakral

@vibhorthakral

L O A D I N G
. . . comments & more!

About Author

Vibhor Thakral HackerNoon profile picture
Vibhor Thakral@vibhorthakral

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Y-squared
Starbugs
Coffee-web
Starbugs