Javascript Create Map From Array Javascript Length Method In Javascript