TypeError: .shift() is not a function + .pop() is not a function

From the manual translation section of my crib sheet

Python
Using multiplication to create a larger array, e.g. [0, 1] * 10

JS
Array(10).fill([0,1]).flat(); dvbridges

2 Likes