Build an Array from Scratch in Javascript

Written by vibhorthakral | Published 2020/04/01
Tech Story Tags: javascript | programming | computer-science | javascript-arrays | data-structures | learning-to-code | tutorial-for-beginners | learn-to-code

TLDR 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.via the TL;DR App

no story

Published by HackerNoon on 2020/04/01