Because it's slower - it has to call the array constructor. The array literal notation is faster and also easier to read. Why is arr = [] faster than arr ...
確定! 回上一頁