Coding | This is mind boggling coding



Why does the Block 1 returns NaN but Block 2 works just fine ?? 📷:/ If the spread operator spreads the array and return a new then then second block should return NaN too shouldn't it ?