1

Array is not a Vector JavaScript does not have vectors, it uses Array and Object that can both behave like vectors (grows and shrinks). Arrays can also be sparse [hash map] or dense [flat sequential array]. Objects are sparse. Objects do not have a length property As you have not defined what you mean by vector one must make an assumption in regard to ...


Only top voted, non community-wiki answers of a minimum length are eligible