Skip to content

nemoinho/broken-length-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Broken length JS

Oh now, Array.length is broken, how can we know the amount of anything, now?

This project is a quiz that forces you to think outside the box. In fact the property .length is arguably one of the most important features of javascript at all. However, in our Scenario the length-method is broken and will always return another value, but rarely the correct one.

Your task is the development of a method which will return the correct length of an array without the usage of .length. To identify a correct solution I’ve defined a bunch of tests, which can be used to check your solution.

Just implement the function in index.js and execute the tests to check your implementation.

npm test

About

A small code-kata to check the length of an array without .length

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published