Your task is to implement the constructor, read
and unshift
function on a Dynamic Array.
You may use brackets to access values in your data like data[i]
but no other built-in
JavaScript array methods. You cannot use unshift to implement your unshift
.
- Clone the starter repo
- Install all packages by typing
npm install
- Read through the test specs to understand the task
- Run specs with
npm test
- Implement the DynamicArray constructor,
read
andunshift
methods until tests are green