79761302

Date: 2025-09-10 21:26:42
Score: 0.5
Natty:
Report link

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#using_map_on_sparse_arrays

The array you created with Array(3) is a sparse array where all elements are empty, and map doesn't call the callback function on the empty elements, so map passes through the array and returns the array unchanged. This is why your code doesn't work

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Craig White