News

Why this happened? When Array.prototype.fill function is called on the first line, complier will create an empty array having length of 3 first. After then, matrix1 is filled by the reference of the ...
You have to be aware when you create an empty 2D array in Javascript.